|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BooleanClassDescription
Encapsulates a class description formed from a boolean combination of other class descriptions (ie union, intersection or complement).
Method Summary | |
---|---|
void |
addOperand(Resource cls)
Add a class the operands of this boolean expression. |
void |
addOperands(Iterator<? extends Resource> classes)
Add all of the classes from the given iterator to the operands of this boolean expression. |
RDFList |
getOperands()
Answer the list of operands for this Boolean class expression. |
boolean |
hasOperand(Resource cls)
Answer true if this Boolean class expression has the given class as an operand. |
com.hp.hpl.jena.util.iterator.ExtendedIterator<? extends OntClass> |
listOperands()
Answer an iterator over all of the classes that are the operands of this Boolean class expression. |
Property |
operator()
Answer the property that is used to construct this boolean expression, for example Profile.UNION_OF() . |
void |
removeOperand(Resource res)
Remove the given resource from the operands of this class expression. |
void |
setOperands(RDFList operands)
Assert that the operands for this boolean class expression are the classes in the given list. |
Methods inherited from interface com.hp.hpl.jena.rdf.model.Resource |
---|
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getPropertyResourceValue, getRequiredProperty, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, removeAll, removeProperties, toString |
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFNode |
---|
as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isURIResource, visitWith |
Methods inherited from interface com.hp.hpl.jena.graph.FrontsNode |
---|
asNode |
Method Detail |
---|
void setOperands(RDFList operands)
Assert that the operands for this boolean class expression are the classes in the given list. Any existing statements for the operator will be removed.
operands
- The list of operands to this expression.
OntProfileException
- If the operand property is not supported in the current language profile.void addOperand(Resource cls)
Add a class the operands of this boolean expression.
cls
- A class that will be added to the operands of this Boolean expression
OntProfileException
- If the operand property is not supported in the current language profile.void addOperands(Iterator<? extends Resource> classes)
Add all of the classes from the given iterator to the operands of this boolean expression.
classes
- A iterator over classes that will be added to the operands of this Boolean expression
OntProfileException
- If the operand property is not supported in the current language profile.RDFList getOperands()
Answer the list of operands for this Boolean class expression.
OntProfileException
- If the operand property is not supported in the current language profile.com.hp.hpl.jena.util.iterator.ExtendedIterator<? extends OntClass> listOperands()
Answer an iterator over all of the classes that are the operands of this
Boolean class expression. Each element of the iterator will be an OntClass
.
OntProfileException
- If the operand property is not supported in the current language profile.boolean hasOperand(Resource cls)
Answer true if this Boolean class expression has the given class as an operand.
cls
- A class to test
OntProfileException
- If the operand property is not supported in the current language profile.void removeOperand(Resource res)
Remove the given resource from the operands of this class expression.
res
- An resource to be removed from the operands of this class expressionProperty operator()
Answer the property that is used to construct this boolean expression, for example
Profile.UNION_OF()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |