|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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(java.util.Iterator 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. |
ExtendedIterator |
listOperands()
Answer an iterator over all of the clases 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, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getModel, getNameSpace, getNode, getProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeAll, removeProperties, toString |
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFNode |
as, asNode, canAs, inModel, visitWith |
Method Detail |
public 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.public 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.public void addOperands(java.util.Iterator 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.public 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.public ExtendedIterator listOperands()
Answer an iterator over all of the clases 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.public 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.public 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 expressionpublic Property 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 |