|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hp.hpl.jena.daml.common.PropertyAccessorImpl | +--com.hp.hpl.jena.daml.common.LiteralAccessorImpl
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
.
Constructor Summary | |
LiteralAccessorImpl(Property property,
DAMLCommon val)
Construct a new accessor for literal values of the given property. |
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 class com.hp.hpl.jena.daml.common.PropertyAccessorImpl |
add, count, get, getAll, getDAMLValue, getProperty, hasValue, remove |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hp.hpl.jena.daml.PropertyAccessor |
add, count, get, getAll, getDAMLValue, getProperty, hasValue, remove |
Constructor Detail |
public LiteralAccessorImpl(Property property, DAMLCommon val)
property
- The property that this accessor works onval
- The DAML value that has this propertyMethod Detail |
public NodeIterator getValues()
getValues
in interface LiteralAccessor
public Literal getValue()
getValue
in interface LiteralAccessor
public void addValue(java.lang.String value)
addValue
in interface LiteralAccessor
value
- The value to be added, as a string.public void addValue(Literal value)
addValue
in interface LiteralAccessor
value
- The value to be added, as an RDF literal.public void removeValue(java.lang.String value)
removeValue
in interface LiteralAccessor
value
- The value to be removed, as a string.public void removeValue(Literal value)
removeValue
in interface LiteralAccessor
value
- The value to be removed, as a literal.public boolean hasValue(java.lang.String value)
hasValue
in interface LiteralAccessor
value
- A DAML value to test forpublic boolean hasValue(Literal value)
hasValue
in interface LiteralAccessor
value
- A DAML value to test for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |