Package org.semanticweb.owlapi.model
Interface OWLObjectHasSelf
- All Superinterfaces:
AsOWLClass
,Comparable<OWLObject>
,HasAnnotationPropertiesInSignature
,HasAnonymousIndividuals
,HasClassesInSignature
,HasComponents
,HasContainsEntityInSignature
,HasDataPropertiesInSignature
,HasDatatypesInSignature
,HasHashIndex
,HasIndex
,HasIndividualsInSignature
,HasObjectPropertiesInSignature
,HasProperty<OWLObjectPropertyExpression>
,HasSignature
,IsAnonymous
,OWLAnonymousClassExpression
,OWLClassExpression
,OWLObject
,OWLObjectRestriction
,OWLPropertyRange
,OWLRestriction
,Serializable
,SWRLPredicate
- All Known Implementing Classes:
OWLObjectHasSelfImpl
Represents an ObjectHasSelf
class expression in the OWL 2 Specification.
- Since:
- 2.0.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
accept
(OWLClassExpressionVisitor visitor) Accepts a visit from anOWLExpressionVisitor
.default <O> O
accept
(OWLClassExpressionVisitorEx<O> visitor) default void
accept
(OWLObjectVisitor visitor) Accepts a visitordefault <O> O
accept
(OWLObjectVisitorEx<O> visitor) Accepts a visitordefault Stream
<?> default ClassExpressionType
Gets the class expression type for this class expression.Gets the property/properties that the restriction acts along depending on R being a scalar or collection type.default int
default int
default int
Methods inherited from interface org.semanticweb.owlapi.model.AsOWLClass
asOWLClass, isOWLClass
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.semanticweb.owlapi.model.HasAnnotationPropertiesInSignature
annotationPropertiesInSignature, getAnnotationPropertiesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasAnonymousIndividuals
anonymousIndividuals, getAnonymousIndividuals
Methods inherited from interface org.semanticweb.owlapi.model.HasClassesInSignature
classesInSignature, getClassesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasComponents
componentsAnnotationsFirst, componentsWithoutAnnotations
Methods inherited from interface org.semanticweb.owlapi.model.HasContainsEntityInSignature
containsEntityInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasDataPropertiesInSignature
dataPropertiesInSignature, getDataPropertiesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasDatatypesInSignature
datatypesInSignature, getDatatypesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasIndividualsInSignature
getIndividualsInSignature, individualsInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasObjectPropertiesInSignature
getObjectPropertiesInSignature, objectPropertiesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasSignature
getSignature, signature, unsortedSignature
Methods inherited from interface org.semanticweb.owlapi.model.IsAnonymous
isAnonymous, isNamed
Methods inherited from interface org.semanticweb.owlapi.model.OWLClassExpression
asConjunctSet, asDisjunctSet, conjunctSet, containsConjunct, disjunctSet, getComplementNNF, getNNF, getObjectComplementOf, isClassExpressionLiteral, isOWLNothing, isOWLThing
Methods inherited from interface org.semanticweb.owlapi.model.OWLObject
getNestedClassExpressions, hasSharedStructure, isAnonymousExpression, isAxiom, isBottomEntity, isIndividual, isIRI, isOntology, isTopEntity, nestedClassExpressions
Methods inherited from interface org.semanticweb.owlapi.model.OWLObjectRestriction
isObjectRestriction
Methods inherited from interface org.semanticweb.owlapi.model.OWLRestriction
isDataRestriction
-
Method Details
-
components
- Specified by:
components
in interfaceHasComponents
- Returns:
- components as a stream. The stream is ordered (by visit order) but not sorted. Implementations that override components() must ensure the order is compatible with equals() and hashCode().
-
initHashCode
default int initHashCode()- Specified by:
initHashCode
in interfaceOWLObject
- Returns:
- hash code for the object; called on first use, cached by OWLObjectImpl in the default implementation.
-
hashIndex
default int hashIndex()- Specified by:
hashIndex
in interfaceHasHashIndex
- Returns:
- index for this type. This is not a hashcode for instances, rather a hashcode for the types.
-
typeIndex
default int typeIndex() -
getClassExpressionType
Description copied from interface:OWLClassExpression
Gets the class expression type for this class expression.- Specified by:
getClassExpressionType
in interfaceOWLClassExpression
- Returns:
- The class expression type
-
accept
Description copied from interface:OWLObject
Accepts a visitor -
accept
Description copied from interface:OWLObject
Accepts a visitor -
accept
Description copied from interface:OWLClassExpression
Accepts a visit from anOWLExpressionVisitor
.- Specified by:
accept
in interfaceOWLClassExpression
- Parameters:
visitor
- The visitor that wants to visit
-
accept
- Specified by:
accept
in interfaceOWLClassExpression
- Type Parameters:
O
- visitor return type- Parameters:
visitor
- visitor- Returns:
- visitor return value
-
getProperty
OWLObjectPropertyExpression getProperty()Description copied from interface:OWLObjectRestriction
Gets the property/properties that the restriction acts along depending on R being a scalar or collection type.- Specified by:
getProperty
in interfaceHasProperty<OWLObjectPropertyExpression>
- Specified by:
getProperty
in interfaceOWLObjectRestriction
- Specified by:
getProperty
in interfaceOWLRestriction
- Returns:
- property being restricted
-