|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectse.kmr.scam.editor.util.PredicateValueObject
Should be renamed to Value. Wrapper for a fact in a value model.
| Constructor Summary | |
PredicateValueObject(ValueObject vO,
Resource variable)
|
|
| Method Summary | |
ValueObject |
duplicate()
If predicate is set to something this copies the binding tree. |
String |
getLanguage()
Gets the literalLanguage attribute of the ValueObject object |
RDFNode |
getNode()
Gets the node attribute of the ValueObject object |
Property |
getPredicate()
|
Resource |
getResource()
Gets the resource attribute of the ValueObject object |
Resource |
getSubject()
Gets the subject attribute of the ValueObject object |
String |
getValue()
Gets the language attribute of the value, if such exists. |
boolean |
isDummy()
Tells wether a valueobject is empty, i.e. set to a dummy value. |
boolean |
isEdited()
|
int |
isOk()
OBS OBS OBS, THIS FUNCTION IS UNUSED AND I CAN'T FIGURE IT'S FUNCTION. |
boolean |
isValid()
|
void |
remove()
Removes the fact from the RDF-model |
void |
removeValueAndPossibleConstraints()
Observe that this function removes the statement as well ass all properties around the predicate since it is bound to the current variable, i.e. |
void |
setEdited(boolean edited)
|
void |
setPredicate(Property newPredicate)
|
void |
setValid(boolean valid)
Used for validation of values in forms. |
void |
setValue(String value)
Sets the literal value of the fact. |
void |
setValue(String value,
String language)
Sets the value of the fact. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PredicateValueObject(ValueObject vO,
Resource variable)
| Method Detail |
public RDFNode getNode()
ValueObject
getNode in interface ValueObjectpublic Resource getSubject()
ValueObject
getSubject in interface ValueObjectpublic Resource getResource()
ValueObject
getResource in interface ValueObjectpublic String getValue()
ValueObject
getValue in interface ValueObjectpublic String getLanguage()
ValueObject
getLanguage in interface ValueObject
public void setValue(String value)
throws RDFException
ValueObject
setValue in interface ValueObjectvalue - The new value
RDFException - thrown in case of exception while updating the
object.
public void setValue(String value,
String language)
throws RDFException
ValueObjectLiteral
the value will be set with a language attribute. (The language attribute
will only set if the language argument is non-null)Resource will the
language argument have no effect.
setValue in interface ValueObjectvalue - The new valuelanguage - The new language value
RDFException - thrown if the value is null, the
object represents a root node or in case of exception while updating
the data model.
public void setPredicate(Property newPredicate)
throws RDFException
setPredicate in interface ValueObjectRDFException
public Property getPredicate()
throws RDFException
getPredicate in interface ValueObjectRDFExceptionpublic boolean isDummy()
ValueObject
isDummy in interface ValueObject
public ValueObject duplicate()
throws RDFException
duplicate in interface ValueObjectStatement
a (structural)duplicate of this object, otherwise null.
RDFException - thrown in case of exception while duplicating
the StatementValueObject.duplicate()
public void remove()
throws RDFException
ValueObject
remove in interface ValueObjectRDFException - thrown in case of exception while removing fact
from the RDF-model.
public void removeValueAndPossibleConstraints()
throws RDFException
#ValueObjectimpl.
removeValueAndPossibleConstraints in interface ValueObjectRDFException - thrown in case of exception while removing fact
from the RDF-model.ValueObject.removeValueAndPossibleConstraints()public void setEdited(boolean edited)
setEdited in interface ValueObjectpublic void setValid(boolean valid)
ValueObject
setValid in interface ValueObjectpublic boolean isEdited()
isEdited in interface ValueObjectpublic boolean isValid()
isValid in interface ValueObjectpublic int isOk()
ValueObject
isOk in interface ValueObject
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||