public class OWL2DatatypeImpl extends Object implements OWLDatatype
Type | Property and Description |
---|---|
OWLAnnotationProperty |
asOWLAnnotation
A convenience method that obtains this entity as an OWLAnnotationProperty (in order to avoid
explicit casting).
|
OWLDataProperty |
asOWLData
A convenience method that obtains this entity as an OWLDataProperty (in order to avoid
explicit casting).
|
OWLObjectProperty |
asOWLObject
A convenience method that obtains this entity as an OWLObjectProperty (in order to avoid
explicit casting).
|
boolean |
isOWLAnnotation
Gets the value of the property oWLAnnotationProperty.
|
boolean |
isOWLData
Gets the value of the property oWLDataProperty.
|
boolean |
isOWLObject
Gets the value of the property oWLObjectProperty.
|
Constructor and Description |
---|
OWL2DatatypeImpl(OWL2Datatype owl2Datatype)
Creates an instance of
OWLDatatypeImplForOWL2Datatype for the
specified OWL2Datatype . |
Modifier and Type | Method and Description |
---|---|
void |
accept(OWLDataRangeVisitor visitor) |
<O> O |
accept(OWLDataRangeVisitorEx<O> visitor) |
void |
accept(OWLDataVisitor visitor) |
<O> O |
accept(OWLDataVisitorEx<O> visitor) |
void |
accept(OWLEntityVisitor visitor) |
<O> O |
accept(OWLEntityVisitorEx<O> visitor) |
void |
accept(OWLNamedObjectVisitor visitor)
Accepts a visitor
|
<O> O |
accept(OWLNamedObjectVisitorEx<O> visitor)
Accepts a visitor
|
void |
accept(OWLObjectVisitor visitor)
Accepts a visitor
|
<O> O |
accept(OWLObjectVisitorEx<O> visitor)
Accepts a 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).
|
int |
compareTo(OWLObject o) |
boolean |
containsEntityInSignature(OWLEntity owlEntity)
Determines if the signature of this object contains the specified entity.
|
boolean |
equals(Object obj) |
Set<OWLAnnotationProperty> |
getAnnotationPropertiesInSignature()
A convenience method that obtains the annotation properties that are in
the signature of this object
|
Set<OWLAnonymousIndividual> |
getAnonymousIndividuals()
Gets the anonymous individuals occurring in this object.
|
OWL2Datatype |
getBuiltInDatatype()
Gets the built in datatype information if this datatype is a built in
datatype.
|
Set<OWLClass> |
getClassesInSignature()
Gets the classes in the signature of this object.
|
Set<OWLDataProperty> |
getDataPropertiesInSignature()
A convenience method that obtains the data properties that are in the
signature of this object
|
DataRangeType |
getDataRangeType()
Gets the type of this data range
|
Set<OWLDatatype> |
getDatatypesInSignature()
A convenience method that obtains the datatypes that are in the signature
of this object
|
EntityType<?> |
getEntityType()
Gets the entity type for this entity
|
Set<OWLNamedIndividual> |
getIndividualsInSignature()
A convenience method that obtains the individuals that are in the
signature of this object
|
IRI |
getIRI()
Gets the IRI of this object
|
Set<OWLClassExpression> |
getNestedClassExpressions()
Gets all of the nested (includes top level) class expressions (anonymous and named) that are
used in this object.
|
Set<OWLObjectProperty> |
getObjectPropertiesInSignature()
A convenience method that obtains the object properties that are in the
signature of this object
|
Set<OWLEntity> |
getSignature()
Gets the signature of this object.
|
int |
hashCode() |
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()
Gets the value of the property oWLAnnotationProperty.
|
boolean |
isOWLClass()
A convenience method that determines if this entity is an OWLClass
|
boolean |
isOWLDataProperty()
Gets the value of the property 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()
Gets the value of the property 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
|
String |
toString() |
String |
toStringID() |
isAnonymous
isIndividual, isIRI
isNamed
public boolean isOWLObjectProperty
isOWLObjectProperty
in interface OWLEntity
true
if this entity is an OWLObjectProperty, otherwise false
public OWLObjectProperty asOWLObjectProperty
asOWLObjectProperty
in interface OWLEntity
public boolean isOWLDataProperty
isOWLDataProperty
in interface OWLEntity
true
if this entity is an OWLDataProperty, otherwise false
public OWLDataProperty asOWLDataProperty
asOWLDataProperty
in interface OWLEntity
public boolean isOWLAnnotationProperty
isOWLAnnotationProperty
in interface OWLEntity
true
if this entity is an OWLAnnotationProperty, otherwise false
public OWLAnnotationProperty asOWLAnnotationProperty
asOWLAnnotationProperty
in interface OWLEntity
public OWL2DatatypeImpl(@Nonnull OWL2Datatype owl2Datatype)
OWLDatatypeImplForOWL2Datatype
for the
specified OWL2Datatype
.owl2Datatype
- The datatype. Not null
.NullPointerException
- if owl2Datatype
is null
.public OWL2Datatype getBuiltInDatatype()
OWLDatatype
true
getBuiltInDatatype
in interface OWLDatatype
public boolean isString()
OWLDatatype
xsd:string
isString
in interface OWLDatatype
true
if this datatype has the IRI xsd:string
,
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 isFloat()
OWLDatatype
xsd:float
isFloat
in interface OWLDatatype
true
if this datatype has the IRI xsd:float
,
otherwise false
.public boolean isDouble()
OWLDatatype
xsd:double
isDouble
in interface OWLDatatype
true
if this datatype has the IRI xsd:double
,
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 isRDFPlainLiteral()
OWLDatatype
rdf:PlainLiteral
isRDFPlainLiteral
in interface OWLDatatype
true
if this datatype has the IRI
rdf:PlainLiteral
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
@Nonnull public OWLDatatype asOWLDatatype()
OWLDataRange
asOWLDatatype
in interface OWLDataRange
asOWLDatatype
in interface OWLEntity
OWLDatatype
public DataRangeType getDataRangeType()
OWLDataRange
getDataRangeType
in interface OWLDataRange
public void accept(OWLDataVisitor visitor)
accept
in interface OWLDataRange
visitor
- visitorpublic <O> O accept(OWLDataVisitorEx<O> visitor)
accept
in interface OWLDataRange
O
- visitor return typevisitor
- visitorpublic void accept(OWLDataRangeVisitor visitor)
accept
in interface OWLDataRange
visitor
- visitorpublic <O> O accept(OWLDataRangeVisitorEx<O> visitor)
accept
in interface OWLDataRange
O
- visitor return typevisitor
- visitorpublic EntityType<?> getEntityType()
OWLEntity
getEntityType
in interface OWLEntity
public boolean isType(EntityType<?> entityType)
OWLEntity
public boolean isBuiltIn()
OWLEntity
public boolean isOWLClass()
OWLEntity
isOWLClass
in interface OWLEntity
true
if this entity is an OWLClass, otherwise false
public OWLClass asOWLClass()
OWLEntity
asOWLClass
in interface OWLEntity
public boolean isOWLObjectProperty()
isOWLObjectProperty
in interface OWLEntity
true
if this entity is an OWLObjectProperty, otherwise false
public OWLObjectProperty asOWLObjectProperty()
OWLEntity
asOWLObjectProperty
in interface OWLEntity
public boolean isOWLDataProperty()
isOWLDataProperty
in interface OWLEntity
true
if this entity is an OWLDataProperty, otherwise false
public OWLDataProperty asOWLDataProperty()
OWLEntity
asOWLDataProperty
in interface OWLEntity
public boolean isOWLNamedIndividual()
OWLEntity
isOWLNamedIndividual
in interface OWLEntity
true
if this entity is an OWLNamedIndividual, otherwise false
public OWLNamedIndividual asOWLNamedIndividual()
OWLEntity
asOWLNamedIndividual
in interface OWLEntity
public boolean isOWLDatatype()
OWLEntity
isOWLDatatype
in interface OWLEntity
true
if this entity is an OWLDatatype, otherwise false
public boolean isOWLAnnotationProperty()
isOWLAnnotationProperty
in interface OWLEntity
true
if this entity is an OWLAnnotationProperty, otherwise false
public OWLAnnotationProperty asOWLAnnotationProperty()
OWLEntity
asOWLAnnotationProperty
in interface OWLEntity
public String toStringID()
toStringID
in interface OWLEntity
#toString()
representation of the IRIpublic String toString()
public void accept(OWLEntityVisitor visitor)
public <O> O accept(OWLEntityVisitorEx<O> visitor)
public IRI getIRI()
OWLNamedObject
getIRI
in interface HasIRI
getIRI
in interface OWLNamedObject
public void accept(OWLNamedObjectVisitor visitor)
OWLNamedObject
accept
in interface OWLNamedObject
visitor
- The visitorpublic void accept(OWLObjectVisitor visitor)
OWLObject
public <O> O accept(OWLObjectVisitorEx<O> visitor)
OWLObject
public <O> O accept(OWLNamedObjectVisitorEx<O> visitor)
OWLNamedObject
accept
in interface OWLNamedObject
O
- visitor return typevisitor
- The visitorpublic Set<OWLEntity> getSignature()
HasSignature
getSignature
in interface HasSignature
public boolean containsEntityInSignature(OWLEntity owlEntity)
HasContainsEntityInSignature
containsEntityInSignature
in interface HasContainsEntityInSignature
owlEntity
- The entitytrue
if the signature of this object contains
owlEntity
, otherwise false
public Set<OWLAnonymousIndividual> getAnonymousIndividuals()
HasAnonymousIndividuals
getAnonymousIndividuals
in interface HasAnonymousIndividuals
public Set<OWLClass> getClassesInSignature()
HasClassesInSignature
getClassesInSignature
in interface HasClassesInSignature
public Set<OWLDataProperty> getDataPropertiesInSignature()
HasDataPropertiesInSignature
getDataPropertiesInSignature
in interface HasDataPropertiesInSignature
public Set<OWLObjectProperty> getObjectPropertiesInSignature()
HasObjectPropertiesInSignature
getObjectPropertiesInSignature
in interface HasObjectPropertiesInSignature
public Set<OWLAnnotationProperty> getAnnotationPropertiesInSignature()
HasAnnotationPropertiesInSignature
getAnnotationPropertiesInSignature
in interface HasAnnotationPropertiesInSignature
public Set<OWLNamedIndividual> getIndividualsInSignature()
HasIndividualsInSignature
getIndividualsInSignature
in interface HasIndividualsInSignature
public Set<OWLDatatype> getDatatypesInSignature()
HasDatatypesInSignature
getDatatypesInSignature
in interface HasDatatypesInSignature
public Set<OWLClassExpression> getNestedClassExpressions()
OWLObject
getNestedClassExpressions
in interface OWLObject
OWLClassExpression
s that represent the
nested class expressions used in this object.public boolean isTopEntity()
OWLObject
isTopEntity
in interface OWLObject
true
if this object corresponds to one of the above entities.public boolean isBottomEntity()
OWLObject
isBottomEntity
in interface OWLObject
true
if this object corresponds to one of the above entities.public int compareTo(OWLObject o)
compareTo
in interface Comparable<OWLObject>
Copyright © 2020 The University of Manchester. All rights reserved.