|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kmr.scam.editor.util.PredefinedObject
Wrapper for a fact in a value model.
Constructor Summary | |
PredefinedObject()
|
|
PredefinedObject(RDFNode node,
boolean literalValue)
Constructor for the ValueObject object Objects from this constructor should only be used for static values, this since the RDFNode can not be updated. |
Method Summary | |
int |
compareTo(Object o)
|
boolean |
equals(Object o)
To be consistent with how standard compare work with the result from toString to sort PredefinedObjects. |
RDFNode |
getDescription()
Gets the description attribute of the ValueObject object |
String |
getLabel()
|
String |
getLabel(String lang)
Gets the value attribute in a given language of the PredefinedObject object |
Map |
getLabels()
|
RDFNode |
getNode()
|
String |
getValue()
Gets the value attribute of the PredefinedObject object |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PredefinedObject()
public PredefinedObject(RDFNode node, boolean literalValue)
ValueObjct(Statement
statement)
.
node
- the node that represents the fact.literalValue
- true if a literal value is requested.Method Detail |
public RDFNode getNode()
public String getValue()
public String getLabel()
public String getLabel(String lang)
lang
- get value in this language
public Map getLabels()
public RDFNode getDescription()
public String toString()
public boolean equals(Object o)
Object.equals(Object)
public int compareTo(Object o)
compareTo
in interface Comparable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |