public class OWL2DatatypeImpl extends Object implements OWLDatatype
asOWLDataProperty, isOWLDataProperty
asOWLAnnotationProperty, isOWLAnnotationProperty
asOWLObjectProperty, isOWLObjectProperty
Constructor and Description |
---|
OWL2DatatypeImpl(OWL2Datatype owl2Datatype)
Creates an instance of
OWLDatatypeImplForOWL2Datatype for the specified
OWL2Datatype . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(OWLObject o) |
boolean |
containsEntityInSignature(OWLEntity owlEntity)
Determines if the signature of this object contains the specified entity.
|
Stream<OWLDatatype> |
datatypesInSignature() |
boolean |
equals(Object obj) |
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.
|
IRI |
getIRI()
Gets the IRI of this object.
|
int |
hashCode() |
boolean |
isBoolean()
Determines if this datatype has the IRI
xsd:boolean . |
boolean |
isBuiltIn()
Determines if this entity is a built in entity.
|
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 |
isOWLDatatype()
A convenience method that determines if this entity is an OWLDatatype.
|
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).
|
Stream<OWLEntity> |
signature() |
String |
toString() |
String |
toStringID() |
accept, accept, accept, accept, accept, accept, accept, accept, accept, accept, getEntityType, hashIndex, typeIndex
components, initHashCode
isAnonymous, isType
getNestedClassExpressions, hashIteration, hasSharedStructure, isAnonymousExpression, isAxiom, isBottomEntity, isIndividual, isIRI, isOntology, nestedClassExpressions
getSignature, unsortedSignature
anonymousIndividuals, getAnonymousIndividuals
classesInSignature, getClassesInSignature
getObjectPropertiesInSignature, objectPropertiesInSignature
dataPropertiesInSignature, getDataPropertiesInSignature
getIndividualsInSignature, individualsInSignature
getDatatypesInSignature
annotationPropertiesInSignature, getAnnotationPropertiesInSignature
componentsAnnotationsFirst, componentsWithoutAnnotations
isNamed
asOWLClass, isOWLClass
asOWLDataProperty, isOWLDataProperty
asOWLDatatype
asOWLAnnotationProperty, isOWLAnnotationProperty
asOWLNamedIndividual, isOWLNamedIndividual
asOWLObjectProperty, isOWLObjectProperty
public OWL2DatatypeImpl(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 isTopDatatype()
OWLDataRange
isTopDatatype
in interface OWLDataRange
true
if this data range is the top datatype otherwise false
public DataRangeType getDataRangeType()
OWLDataRange
getDataRangeType
in interface OWLDataRange
getDataRangeType
in interface OWLDatatype
public boolean isBuiltIn()
OWLEntity
public boolean isOWLDatatype()
AsOWLDatatype
isOWLDatatype
in interface AsOWLDatatype
true
if this entity is an OWLDatatype, otherwise false
public String toStringID()
toStringID
in interface OWLEntity
toString()
representation of the IRIpublic Stream<OWLEntity> signature()
signature
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 Stream<OWLDatatype> datatypesInSignature()
datatypesInSignature
in interface HasDatatypesInSignature
public boolean isTopEntity()
OWLObject
isTopEntity
in interface OWLObject
true
if this object corresponds to one of the above entities.public int compareTo(@Nullable OWLObject o)
compareTo
in interface Comparable<OWLObject>
Copyright © 2020 The University of Manchester. All rights reserved.