|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Should be renamed to Value. Wrapper for a fact in a value model.
Method Summary | |
ValueObject |
duplicate()
Creates an (structural)duplicate of this object, all values are set to default. |
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()
Removes the fact from the RDF-model by calling the remove() and
then all other constraints from the value-node in the case it is a
resource. |
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. |
Method Detail |
public RDFNode getNode()
public Resource getSubject()
public Resource getResource()
public String getValue()
public String getLanguage()
public void setValue(String value) throws RDFException
value
- The new value
RDFException
- thrown in case of exception while updating the
object.public void setValue(String value, String language) throws RDFException
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.
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
RDFException
public Property getPredicate() throws RDFException
RDFException
public ValueObject duplicate() throws RDFException
ValueObject
that wrapps facts in form of Statements
Statement
a (structural)duplicate of this object, otherwise null.
RDFException
- thrown in case of exception while duplicating
the Statement
public void remove() throws RDFException
RDFException
- thrown in case of exception while removing fact
from the RDF-model.public void removeValueAndPossibleConstraints() throws RDFException
remove()
and
then all other constraints from the value-node in the case it is a
resource.
RDFException
- thrown in case of exception while removing fact
from the RDF-model.public boolean isEdited()
public boolean isValid()
public int isOk()
public void setValid(boolean valid)
public boolean isDummy()
public void setEdited(boolean edited)
RDFException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |