|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EnumeratedClass
Encapsulates a class description representing a closed enumeration of individuals.
Method Summary | |
---|---|
void |
addOneOf(java.util.Iterator individuals)
Add each individual from the given iteratation to the enumeration that defines the class extension of this class. |
void |
addOneOf(Resource res)
Add an individual to the enumeration that defines the class extension of this class. |
RDFList |
getOneOf()
Answer a list of individuals that defines the extension of this class. |
boolean |
hasOneOf(Resource res)
Answer true if the given individual is one of the enumerated individuals in the class extension of this class. |
ExtendedIterator |
listOneOf()
Answer an iterator over all of the individuals that are declared to be the class extension for this class. |
void |
removeOneOf(Resource res)
Remove the statement that this enumeration includes res among its members. |
void |
setOneOf(RDFList en)
Assert that this class is exactly the enumeration of the given individuals. |
Methods inherited from interface com.hp.hpl.jena.rdf.model.Resource |
---|
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getModel, getNameSpace, getNode, getProperty, getRequiredProperty, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, listProperties, listProperties, removeAll, removeProperties, toString |
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFNode |
---|
as, canAs, inModel, isAnon, isLiteral, isResource, isURIResource, visitWith |
Methods inherited from interface com.hp.hpl.jena.graph.FrontsNode |
---|
asNode |
Method Detail |
---|
void setOneOf(RDFList en)
Assert that this class is exactly the enumeration of the given individuals. Any existing
statements for oneOf
will be removed.
en
- A list of individuals that defines the class extension for this class
OntProfileException
- If the Profile.ONE_OF()
property is not supported in the current language profile.void addOneOf(Resource res)
Add an individual to the enumeration that defines the class extension of this class.
res
- An individual to add to the enumeration
OntProfileException
- If the Profile.ONE_OF()
property is not supported in the current language profile.void addOneOf(java.util.Iterator individuals)
Add each individual from the given iteratation to the enumeration that defines the class extension of this class.
individuals
- An iterator over individuals
OntProfileException
- If the Profile.ONE_OF()
property is not supported in the current language profile.RDFList getOneOf()
Answer a list of individuals that defines the extension of this class.
OntProfileException
- If the Profile.ONE_OF()
property is not supported in the current language profile.ExtendedIterator listOneOf()
Answer an iterator over all of the individuals that are declared to be the class extension for
this class. Each element of the iterator will be an OntResource
.
OntProfileException
- If the Profile.ONE_OF()
property is not supported in the current language profile.boolean hasOneOf(Resource res)
Answer true if the given individual is one of the enumerated individuals in the class extension of this class.
res
- An individual to test
OntProfileException
- If the Profile.ONE_OF()
property is not supported in the current language profile.void removeOneOf(Resource res)
Remove the statement that this enumeration includes res
among its members. If this statement
is not true of the current model, nothing happens.
res
- A resource that may be declared to be part of this enumeration, and which is
no longer one of the enumeration values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |