|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Encapsulates the standard methods of modifying a property on a DAML object, where
the value of the property is an RDF literal (as opposed to another DAML value,
see PropertyAccessor
.
Method Summary | |
void |
addValue(Literal value)
Add a value to the encapsulated property. |
void |
addValue(java.lang.String value)
Add a value to the encapsulated property. |
Literal |
getValue()
Answer the a value of the encapsulated property. |
NodeIterator |
getValues()
Answer an iteration over the literal values that this property has in the RDF model. |
boolean |
hasValue(Literal value)
Answer true if the encapsulated property has the given value as one of its values. |
boolean |
hasValue(java.lang.String value)
Answer true if the encapsulated property has the given value as one of its values. |
void |
removeValue(Literal value)
Remove a value from the encapsulated property. |
void |
removeValue(java.lang.String value)
Remove a value from the encapsulated property. |
Methods inherited from interface com.hp.hpl.jena.daml.PropertyAccessor |
add, count, get, getAll, getDAMLValue, getProperty, hasValue, remove |
Method Detail |
public NodeIterator getValues()
public Literal getValue()
public void addValue(java.lang.String value)
value
- The value to be added, as a string.public void addValue(Literal value)
value
- The value to be added, as an RDF literal.public void removeValue(java.lang.String value)
value
- The value to be removed, as a string.public void removeValue(Literal value)
value
- The value to be removed, as a literal.public boolean hasValue(java.lang.String value)
value
- A DAML value to test forpublic boolean hasValue(Literal value)
value
- A DAML value to test for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |