|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl uk.ac.manchester.cs.owl.owlapi.OWLDatatypeImpl
public class OWLDatatypeImpl
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 26-Oct-2006
Constructor Summary | |
---|---|
OWLDatatypeImpl(OWLDataFactory dataFactory,
IRI iri)
|
Method Summary | ||
---|---|---|
void |
accept(OWLDataRangeVisitor visitor)
|
|
|
accept(OWLDataRangeVisitorEx<O> visitor)
|
|
void |
accept(OWLDataVisitor visitor)
|
|
|
accept(OWLDataVisitorEx<O> visitor)
|
|
void |
accept(OWLEntityVisitor visitor)
|
|
|
accept(OWLEntityVisitorEx<O> visitor)
|
|
void |
accept(OWLNamedObjectVisitor visitor)
|
|
void |
accept(OWLObjectVisitor visitor)
|
|
|
accept(OWLObjectVisitorEx<O> visitor)
|
|
OWLAnnotationProperty |
asOWLAnnotationProperty()
A convenience method that obtains this entity as an OWLAnnotationProperty (in order to avoid explicit casting). |
|
OWLClass |
asOWLClass()
A convenience method that obtains this entity as an OWLClass (in order to avoid explicit casting). |
|
OWLDataProperty |
asOWLDataProperty()
A convenience method that obtains this entity as an OWLDataProperty (in order to avoid explicit casting). |
|
OWLDatatype |
asOWLDatatype()
If this data range is a datatype then this method may be used to obtain it as a datatype (rather than using an explicit cast). |
|
OWLNamedIndividual |
asOWLNamedIndividual()
A convenience method that obtains this entity as an OWLNamedIndividual (in order to avoid explicit casting). |
|
OWLObjectProperty |
asOWLObjectProperty()
A convenience method that obtains this entity as an OWLObjectProperty (in order to avoid explicit casting). |
|
protected int |
compareObjectOfSameType(OWLObject object)
|
|
boolean |
equals(java.lang.Object obj)
|
|
java.util.Set<OWLAnnotationAssertionAxiom> |
getAnnotationAssertionAxioms(OWLOntology ontology)
|
|
java.util.Set<OWLAnnotation> |
getAnnotations(OWLOntology ontology)
Gets the annotations for this entity. |
|
java.util.Set<OWLAnnotation> |
getAnnotations(OWLOntology ontology,
OWLAnnotationProperty annotationProperty)
Obtains the annotations on this entity where the annotation has the specified URI. |
|
OWL2Datatype |
getBuiltInDatatype()
Gets the built in datatype information if this datatype is a built in datatype. |
|
DataRangeType |
getDataRangeType()
Gets the type of this data range |
|
EntityType |
getEntityType()
Gets the entity type for this entity |
|
IRI |
getIRI()
Gets the IRI of this object |
|
|
getOWLEntity(EntityType<E> entityType)
Gets an entity that has the same IRI as this entity but is of the specified type. |
|
java.util.Set<OWLAxiom> |
getReferencingAxioms(OWLOntology ontology)
Gets the axioms in the specified ontology that contain this entity in their signature. |
|
java.util.Set<OWLAxiom> |
getReferencingAxioms(OWLOntology ontology,
boolean includeImports)
Gets the axioms in the specified ontology and possibly its imports closure that contain this entity in their signature. |
|
java.net.URI |
getURI()
|
|
boolean |
isBoolean()
Determines if this datatype has the IRI xsd:boolean |
|
boolean |
isBottomEntity()
Determines if this object is either, owl:Nothing (the bottom class), owl:bottomObjectProperty (the bottom object property) , owl:bottomDataProperty (the bottom data property). |
|
boolean |
isBuiltIn()
Determines if this entity is a built in entity. |
|
boolean |
isDatatype()
Determines if this data range is a datatype (int, float, ...) |
|
boolean |
isDouble()
Determines if this datatype has the IRI xsd:double |
|
boolean |
isFloat()
Determines if this datatype has the IRI xsd:float |
|
boolean |
isInteger()
Determines if this datatype has the IRI xsd:integer |
|
boolean |
isOWLAnnotationProperty()
A convenience method that determines if this entity is an OWLAnnotationProperty |
|
boolean |
isOWLClass()
A convenience method that determines if this entity is an OWLClass |
|
boolean |
isOWLDataProperty()
A convenience method that determines if this entity is an OWLDataProperty |
|
boolean |
isOWLDatatype()
A convenience method that determines if this entity is an OWLDatatype |
|
boolean |
isOWLNamedIndividual()
A convenience method that determines if this entity is an OWLNamedIndividual |
|
boolean |
isOWLObjectProperty()
A convenience method that determines if this entity is an OWLObjectProperty |
|
boolean |
isRDFPlainLiteral()
Determines if this datatype has the IRI rdf:PlainLiteral |
|
boolean |
isString()
Determines if this datatype has the IRI xsd:string |
|
boolean |
isTopDatatype()
Determines if this data range is the top data type. |
|
boolean |
isTopEntity()
Determines if this object is either, owl:Thing (the top class), owl:topObjectProperty (the top object property) , owl:topDataProperty (the top data property) or rdfs:Literal (the top datatype). |
|
boolean |
isType(EntityType entityType)
Tests to see if this entity is of the specified type |
|
java.lang.String |
toStringID()
Returns a string representation that can be used as the ID of this entity. |
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl |
---|
compareSets, compareTo, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getOWLDataFactory, getSignature, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OWLDatatypeImpl(OWLDataFactory dataFactory, IRI iri)
Method Detail |
---|
public boolean isTopEntity()
OWLObject
isTopEntity
in interface OWLObject
isTopEntity
in class OWLObjectImpl
true
if this object corresponds to one of the above entities.public boolean isBottomEntity()
OWLObject
isBottomEntity
in interface OWLObject
isBottomEntity
in class OWLObjectImpl
true
if this object corresponds to one of the above entities.public boolean isRDFPlainLiteral()
rdf:PlainLiteral
isRDFPlainLiteral
in interface OWLDatatype
true
if this datatype has the IRI rdf:PlainLiteral
otherwise false
public EntityType getEntityType()
getEntityType
in interface OWLEntity
public <E extends OWLEntity> E getOWLEntity(EntityType<E> entityType)
getOWLEntity
in interface OWLEntity
entityType
- The type of the entity to obtain. This entity is not affected in any way.
public boolean isType(EntityType entityType)
isType
in interface OWLEntity
entityType
- The entity type
true
if this entity is of the specified type, otherwise false
.public java.lang.String toStringID()
toStringID
in interface OWLEntity
public IRI getIRI()
OWLNamedObject
getIRI
in interface OWLNamedObject
public boolean isBuiltIn()
OWLEntity
isBuiltIn
in interface OWLEntity
true
if this entity is a built in entity, or false
if this entity is not a builtin entity.public DataRangeType getDataRangeType()
OWLDataRange
getDataRangeType
in interface OWLDataRange
public OWL2Datatype getBuiltInDatatype()
OWLDatatype
true
getBuiltInDatatype
in interface OWLDatatype
public boolean isDouble()
OWLDatatype
xsd:double
isDouble
in interface OWLDatatype
true
if this datatype has the IRI xsd:double
, otherwise false
.public boolean isFloat()
OWLDatatype
xsd:float
isFloat
in interface OWLDatatype
true
if this datatype has the IRI xsd:float
, otherwise false
.public boolean isInteger()
OWLDatatype
xsd:integer
isInteger
in interface OWLDatatype
true
if this datatype has the IRI xsd:integer
, otherwise false
.public boolean isString()
OWLDatatype
xsd:string
isString
in interface OWLDatatype
true
if this datatype has the IRI xsd:string
, otherwise false
.public boolean isBoolean()
OWLDatatype
xsd:boolean
isBoolean
in interface OWLDatatype
true
if this datatype has the IRI xsd:boolean
, otherwise false
.public boolean isDatatype()
OWLDataRange
isDatatype
in interface OWLDataRange
true
if this datarange is a datatype, or
false
if it is not a datatype and is some other
data range such as a data range restriction, data oneOf or
data complementOf.public boolean isTopDatatype()
OWLDataRange
isTopDatatype
in interface OWLDataRange
true
if this data range is the top datatype otherwise
false
public java.net.URI getURI()
public boolean equals(java.lang.Object obj)
equals
in class OWLObjectImpl
public java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology)
OWLEntity
getAnnotations
in interface OWLEntity
ontology
- The ontology to be examined for annotation assertion axioms
public java.util.Set<OWLAnnotationAssertionAxiom> getAnnotationAssertionAxioms(OWLOntology ontology)
getAnnotationAssertionAxioms
in interface OWLEntity
public java.util.Set<OWLAnnotation> getAnnotations(OWLOntology ontology, OWLAnnotationProperty annotationProperty)
OWLEntity
getAnnotations
in interface OWLEntity
ontology
- The ontology to examine for annotation axiomsannotationProperty
- The annotation property
OWLAnnotation
objects that have the specified
URI.public OWLClass asOWLClass()
OWLEntity
asOWLClass
in interface OWLEntity
public OWLDataProperty asOWLDataProperty()
OWLEntity
asOWLDataProperty
in interface OWLEntity
public OWLDatatype asOWLDatatype()
OWLDataRange
asOWLDatatype
in interface OWLDataRange
asOWLDatatype
in interface OWLEntity
OWLDatatype
public OWLNamedIndividual asOWLNamedIndividual()
OWLEntity
asOWLNamedIndividual
in interface OWLEntity
public OWLObjectProperty asOWLObjectProperty()
OWLEntity
asOWLObjectProperty
in interface OWLEntity
public boolean isOWLClass()
OWLEntity
isOWLClass
in interface OWLEntity
true
if this entity is an OWLClass, otherwise false
public boolean isOWLDataProperty()
OWLEntity
isOWLDataProperty
in interface OWLEntity
true
if this entity is an OWLDataProperty, otherwise false
public boolean isOWLDatatype()
OWLEntity
isOWLDatatype
in interface OWLEntity
true
if this entity is an OWLDatatype, otherwise false
public boolean isOWLNamedIndividual()
OWLEntity
isOWLNamedIndividual
in interface OWLEntity
true
if this entity is an OWLNamedIndividual, otherwise false
public boolean isOWLObjectProperty()
OWLEntity
isOWLObjectProperty
in interface OWLEntity
true
if this entity is an OWLObjectProperty, otherwise false
public OWLAnnotationProperty asOWLAnnotationProperty()
OWLEntity
asOWLAnnotationProperty
in interface OWLEntity
public boolean isOWLAnnotationProperty()
OWLEntity
isOWLAnnotationProperty
in interface OWLEntity
true
if this entity is an OWLAnnotationProperty, otherwise false
public void accept(OWLEntityVisitor visitor)
accept
in interface OWLEntity
public void accept(OWLDataVisitor visitor)
accept
in interface OWLDataRange
public void accept(OWLObjectVisitor visitor)
accept
in interface OWLObject
public void accept(OWLNamedObjectVisitor visitor)
accept
in interface OWLNamedObject
public <O> O accept(OWLEntityVisitorEx<O> visitor)
accept
in interface OWLEntity
public <O> O accept(OWLDataVisitorEx<O> visitor)
accept
in interface OWLDataRange
public <O> O accept(OWLObjectVisitorEx<O> visitor)
accept
in interface OWLObject
public void accept(OWLDataRangeVisitor visitor)
accept
in interface OWLDataRange
public <O> O accept(OWLDataRangeVisitorEx<O> visitor)
accept
in interface OWLDataRange
protected int compareObjectOfSameType(OWLObject object)
compareObjectOfSameType
in class OWLObjectImpl
public java.util.Set<OWLAxiom> getReferencingAxioms(OWLOntology ontology)
OWLEntity
getReferencingAxioms
in interface OWLEntity
ontology
- The ontology that will be searched for axioms
public java.util.Set<OWLAxiom> getReferencingAxioms(OWLOntology ontology, boolean includeImports)
OWLEntity
getReferencingAxioms
in interface OWLEntity
ontology
- The ontology that will be searched for axiomsincludeImports
- If true
then axioms in the imports closure will also be returned, if
false
then only the axioms in the specified ontology will be returned.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |