|
|||||||||||
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 ValueObject
public Resource getSubject()
ValueObject
getSubject
in interface ValueObject
public Resource getResource()
ValueObject
getResource
in interface ValueObject
public String getValue()
ValueObject
getValue
in interface ValueObject
public String getLanguage()
ValueObject
getLanguage
in interface ValueObject
public void setValue(String value) throws RDFException
ValueObject
setValue
in interface ValueObject
value
- The new value
RDFException
- thrown in case of exception while updating the
object.public void setValue(String value, String language) throws RDFException
ValueObject
Literal
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 ValueObject
value
- 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 ValueObject
RDFException
public Property getPredicate() throws RDFException
getPredicate
in interface ValueObject
RDFException
public boolean isDummy()
ValueObject
isDummy
in interface ValueObject
public ValueObject duplicate() throws RDFException
duplicate
in interface ValueObject
Statement
a (structural)duplicate of this object, otherwise null.
RDFException
- thrown in case of exception while duplicating
the Statement
ValueObject.duplicate()
public void remove() throws RDFException
ValueObject
remove
in interface ValueObject
RDFException
- thrown in case of exception while removing fact
from the RDF-model.public void removeValueAndPossibleConstraints() throws RDFException
#ValueObjectimpl
.
removeValueAndPossibleConstraints
in interface ValueObject
RDFException
- thrown in case of exception while removing fact
from the RDF-model.ValueObject.removeValueAndPossibleConstraints()
public void setEdited(boolean edited)
setEdited
in interface ValueObject
public void setValid(boolean valid)
ValueObject
setValid
in interface ValueObject
public boolean isEdited()
isEdited
in interface ValueObject
public boolean isValid()
isValid
in interface ValueObject
public int isOk()
ValueObject
isOk
in interface ValueObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |