1
|
1 package org.mpi.openmind.repository.services.utils;
|
|
2
|
|
3 import org.mpi.openmind.repository.bo.Attribute;
|
|
4 import org.mpi.openmind.repository.bo.Entity;
|
|
5
|
|
6 public class AttributeResultEntry {
|
|
7 public Attribute attribute;
|
|
8 public Entity entity;
|
|
9
|
|
10
|
|
11 @Override
|
|
12 public String toString(){
|
|
13 String s;
|
|
14 if(entity != null){
|
|
15 s = "entity[id="+ entity.getId() + ", ownValue=" + entity.getOwnValue() + "]";
|
|
16 }else{
|
|
17 s = "entity[null]";
|
|
18 }
|
|
19 if(attribute != null){
|
|
20 s += ", attribute[id=" + attribute.getId() + ", name="+ attribute.getObjectClass() + ", value= " + attribute.getOwnValue() + "]";
|
|
21 }else{
|
|
22 s += "attribute[null]";
|
|
23 }
|
|
24 return "AttributeResultEntry= " + s;
|
|
25 }
|
|
26 }
|