|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LiteralAccessor
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(java.lang.String value)
Add a value to the encapsulated property. |
Literal |
getValue()
Answer the value of the encapsulated property. |
boolean |
hasValue(java.lang.String value)
Answer true if the encapsulated property has the given value as one of its values. |
void |
removeValue(java.lang.String value)
Remove a value from the encapsulated property. |
Methods inherited from interface com.hp.hpl.jena.ontology.daml.PropertyAccessor |
---|
add, count, get, getAll, getDAMLValue, getList, getProperty, hasValue, remove |
Method Detail |
---|
Literal getValue()
Answer the value of the encapsulated property. If it has no values, answer null. If it has one value, answer that value. Otherwise, answer an undetermined member of the set of values.
void addValue(java.lang.String value)
Add a value to the encapsulated property.
value
- The value to be added, as a string.void removeValue(java.lang.String value)
Remove a value from the encapsulated property.
value
- The value to be removed, as a string.boolean hasValue(java.lang.String value)
Answer true if the encapsulated property has the given value as one of its values.
value
- A String value to test for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |