|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyAccessor
Encapsulates the standard methods of modifying a property on a DAML value.
Method Summary | |
---|---|
void |
add(RDFNode value)
Add a value to the encapsulated property. |
int |
count()
Answer the number of values that the encapsulated property has in the RDF model. |
RDFNode |
get()
Answer a general value of the encapsulated property. |
NodeIterator |
getAll()
Answer an iteration over the DAML values that this property has in the RDF model. |
DAMLCommon |
getDAMLValue()
Answer a value of the encapsulated property, converted to a DAML common value |
DAMLList |
getList()
Answer the value of the encapsulated property, presented as a DAML list. |
Property |
getProperty()
Answer the property that this accessor works on |
boolean |
hasValue(RDFNode value)
Answer true if the encapsulated property has the given value as one of its values. |
void |
remove(RDFNode value)
Remove a value from the encapsulated property. |
Method Detail |
---|
Property getProperty()
Answer the property that this accessor works on
int count()
Answer the number of values that the encapsulated property has in the RDF model.
NodeIterator getAll()
Answer an iteration over the DAML values that this property has in the RDF model.
Note: In Jena 1, this method took a paramter closed
,
to control whether the transitive closure of the class and property hierarchies was
considered. Computing these entailments is now handled by the reaoner attached to the
DAML or Ontology model, and is not controlled by a method parameter at the API level.
Accordingly, this parameter has been removed. See the documentation for details on
controlling the operation of the reasoners.
RDFNode get()
Answer a general 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. See also getDAMLValue()
.
DAMLList getList()
Answer the value of the encapsulated property, presented as a DAML list. If it has no values, answer
null. If it has one value, answer that value (as a list). Otherwise, answer an undetermined
member of the set of values. See also getDAMLValue()
.
ConversionException
- if the value is not a listDAMLCommon getDAMLValue()
Answer a value of the encapsulated property, converted to a DAML common value
void add(RDFNode value)
Add a value to the encapsulated property.
value
- The value to be added.void remove(RDFNode value)
Remove a value from the encapsulated property.
value
- The value to be removed.boolean hasValue(RDFNode value)
Answer true if the encapsulated property has the given value as one of its values.
value
- A value to test for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |