public class ComplementClassImpl extends OntClassImpl implements ComplementClass
Implementation of a node representing a complement class description.
| Modifier and Type | Field and Description |
|---|---|
static Implementation |
factory
A factory for generating ComplementClass facets from nodes in enhanced graphs.
|
KNOWN_LANGUAGESrdfNodeFactory| Constructor and Description |
|---|
ComplementClassImpl(Node n,
EnhGraph g)
Construct a complement class node represented by the given node in the given graph.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
OntClass |
getOperand()
Answer the class that the class described by this class description
is a complement of.
|
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<? 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 |
setOperand(Resource cls)
Set the class that the class represented by this class expression is
a complement of.
|
void |
setOperands(RDFList operands)
Assert that the operands for this boolean class expression are the classes
in the given list.
|
addDisjointWith, addEquivalentClass, addSubClass, addSuperClass, asComplementClass, asEnumeratedClass, asIntersectionClass, asRestriction, asUnionClass, convertToComplementClass, convertToEnumeratedClass, convertToIntersectionClass, convertToRestriction, convertToUnionClass, createIndividual, createIndividual, dropIndividual, getDisjointWith, getEquivalentClass, getSubClass, getSuperClass, hasDeclaredProperty, hasEquivalentClass, hasSubClass, hasSubClass, hasSubClass, hasSuperClass, hasSuperClass, hasSuperClass, isComplementClass, isDisjointWith, isEnumeratedClass, isHierarchyRoot, isIntersectionClass, isRestriction, isUnionClass, listDeclaredProperties, listDeclaredProperties, listDisjointWith, listEquivalentClasses, listInstances, listInstances, listSubClasses, listSubClasses, listSuperClasses, listSuperClasses, removeDisjointWith, removeEquivalentClass, removeSubClass, removeSuperClass, setDisjointWith, setEquivalentClass, setSubClass, setSuperClassaddComment, addComment, addDifferentFrom, addIsDefinedBy, addLabel, addLabel, addRDFType, addSameAs, addSeeAlso, addVersionInfo, asAllDifferent, asAnnotationProperty, asClass, asDataRange, asDatatypeProperty, asIndividual, asObjectProperty, asOntology, asProperty, getCardinality, getComment, getDifferentFrom, getIsDefinedBy, getLabel, getOntModel, getProfile, getPropertyValue, getRDFType, getRDFType, getSameAs, getSeeAlso, getVersionInfo, hasComment, hasComment, hasLabel, hasLabel, hasRDFType, hasRDFType, hasRDFType, hasSeeAlso, hasVersionInfo, isAllDifferent, isAnnotationProperty, isClass, isDataRange, isDatatypeProperty, isDefinedBy, isDifferentFrom, isIndividual, isObjectProperty, isOntLanguageTerm, isOntology, isProperty, isSameAs, listComments, listDifferentFrom, listIsDefinedBy, listLabels, listPropertyValues, listRDFTypes, listSameAs, listSeeAlso, listVersionInfo, remove, removeComment, removeComment, removeDefinedBy, removeDifferentFrom, removeLabel, removeLabel, removeProperty, removeRDFType, removeSameAs, removeSeeAlso, removeVersionInfo, setComment, setDifferentFrom, setIsDefinedBy, setLabel, setPropertyValue, setRDFType, setSameAs, setSeeAlso, setVersionInfoabort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, asLiteral, asResource, begin, commit, getId, getLocalName, getModel, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, toString, visitWithas, asNode, canAs, equals, getGraph, hashCode, isAnon, isLiteral, isResource, isStmtResource, isURIResource, isValid, viewAsaddView, supportsaddDisjointWith, addEquivalentClass, addSubClass, addSuperClass, asComplementClass, asEnumeratedClass, asIntersectionClass, asRestriction, asUnionClass, convertToComplementClass, convertToEnumeratedClass, convertToIntersectionClass, convertToRestriction, convertToUnionClass, createIndividual, createIndividual, dropIndividual, getDisjointWith, getEquivalentClass, getSubClass, getSuperClass, hasDeclaredProperty, hasEquivalentClass, hasSubClass, hasSubClass, hasSubClass, hasSuperClass, hasSuperClass, hasSuperClass, isComplementClass, isDisjointWith, isEnumeratedClass, isHierarchyRoot, isIntersectionClass, isRestriction, isUnionClass, listDeclaredProperties, listDeclaredProperties, listDisjointWith, listEquivalentClasses, listInstances, listInstances, listSubClasses, listSubClasses, listSuperClasses, listSuperClasses, removeDisjointWith, removeEquivalentClass, removeSubClass, removeSuperClass, setDisjointWith, setEquivalentClass, setSubClass, setSuperClassaddComment, addComment, addDifferentFrom, addIsDefinedBy, addLabel, addLabel, addRDFType, addSameAs, addSeeAlso, addVersionInfo, asAllDifferent, asAnnotationProperty, asClass, asDataRange, asDatatypeProperty, asIndividual, asObjectProperty, asOntology, asProperty, getCardinality, getComment, getDifferentFrom, getIsDefinedBy, getLabel, getOntModel, getProfile, getPropertyValue, getRDFType, getRDFType, getSameAs, getSeeAlso, getVersionInfo, hasComment, hasComment, hasLabel, hasLabel, hasRDFType, hasRDFType, hasRDFType, hasSeeAlso, hasVersionInfo, isAllDifferent, isAnnotationProperty, isClass, isDataRange, isDatatypeProperty, isDefinedBy, isDifferentFrom, isIndividual, isObjectProperty, isOntLanguageTerm, isOntology, isProperty, isSameAs, listComments, listDifferentFrom, listIsDefinedBy, listLabels, listPropertyValues, listRDFTypes, listSameAs, listSeeAlso, listVersionInfo, remove, removeComment, removeComment, removeDefinedBy, removeDifferentFrom, removeLabel, removeLabel, removeProperty, removeRDFType, removeSameAs, removeSeeAlso, removeVersionInfo, setComment, setDifferentFrom, setIsDefinedBy, setLabel, setPropertyValue, setRDFType, setSameAs, setSeeAlso, setVersionInfoabort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, toStringas, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, isURIResource, visitWithasNodepublic static Implementation factory
as() instead.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.
setOperands in interface BooleanClassDescriptionoperands - The list of operands to this expression.UnsupportedOperationException - since a complement expression takes only a single argument.public void setOperand(Resource cls)
Set the class that the class represented by this class expression is
a complement of. Any existing value for complementOf will
be replaced.
setOperand in interface ComplementClasscls - The class that this class is a complement of.public void addOperand(Resource cls)
Add a class the operands of this boolean expression.
addOperand in interface BooleanClassDescriptioncls - A class that will be added to the operands of this Boolean expressionUnsupportedOperationException - since a complement expression takes only
a single argument.public void addOperands(Iterator<? extends Resource> classes)
Add all of the classes from the given iterator to the operands of this boolean expression.
addOperands in interface BooleanClassDescriptionclasses - A iterator over classes that will be added to the operands of this Boolean expressionUnsupportedOperationException - since a complement expression takes only
a single argument.public RDFList getOperands()
Answer the list of operands for this Boolean class expression.
getOperands in interface BooleanClassDescriptionProfileException - If the operand property is not supported in the current language profile.public 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.
listOperands in interface BooleanClassDescriptionProfileException - 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.
hasOperand in interface BooleanClassDescriptioncls - A class to testProfileException - If the operand property is not supported in the current language profile.public OntClass getOperand()
Answer the class that the class described by this class description is a complement of.
getOperand in interface ComplementClasspublic void removeOperand(Resource res)
Remove the given resource from the operands of this class expression.
removeOperand in interface BooleanClassDescriptionres - 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().
operator in interface BooleanClassDescriptionProfile.COMPLEMENT_OF()Licenced under the Apache License, Version 2.0