public class OWLLiteralImplBoolean extends OWLObjectImpl implements OWLLiteral
Constructor and Description |
---|
OWLLiteralImplBoolean(boolean literal) |
Modifier and Type | Method and Description |
---|---|
OWLDatatype |
getDatatype()
Gets the
OWLDatatype which types this literal. |
String |
getLiteral()
Gets the lexical value of this literal.
|
int |
initHashCode() |
boolean |
isBoolean()
Determines if this literal is typed with a datatype that has an IRI that is
"http://www.w3.org/2001/XMLSchema#"boolean . |
boolean |
parseBoolean()
Parses the lexical value of this literal into a boolean.
|
annotationPropertiesInSignature, anonymousIndividuals, classesInSignature, compareTo, containsEntityInSignature, dataPropertiesInSignature, datatypesInSignature, equals, hashCode, individualsInSignature, nestedClassExpressions, objectPropertiesInSignature, signature, toString
accept, accept, accept, accept, accept, accept, asLiteral, components, getLang, hashIndex, hasLang, hasLang, isDouble, isFloat, isInteger, isLiteral, isRDFPlainLiteral, parseDouble, parseFloat, parseInteger, typeIndex
annotationValue
asAnonymousIndividual, asIRI
getNestedClassExpressions, hashIteration, hasSharedStructure, isAnonymousExpression, isAxiom, isBottomEntity, isIndividual, isIRI, isOntology, isTopEntity, nestedClassExpressions
compareTo
getSignature, signature, unsortedSignature
containsEntityInSignature
anonymousIndividuals, getAnonymousIndividuals
classesInSignature, getClassesInSignature
getObjectPropertiesInSignature, objectPropertiesInSignature
dataPropertiesInSignature, getDataPropertiesInSignature
getIndividualsInSignature, individualsInSignature
datatypesInSignature, getDatatypesInSignature
annotationPropertiesInSignature, getAnnotationPropertiesInSignature
componentsAnnotationsFirst, componentsWithoutAnnotations
isAnonymous, isNamed
anonymousIndividualValue, ifAnonymousIndividual, ifAnonymousIndividualOrElse, ifIri, ifIriOrElse, ifLiteral, ifLiteralOrElse, ifValue, iriValue, literalValue, map, map, mapAnonymousIndividual, mapAnonymousIndividualOrElse, mapAnonymousIndividualOrElseGet, mapIri, mapIriOrElse, mapIriOrElseGet, mapLiteral, mapLiteralOrElse, mapLiteralOrElseGet, mapValue, when
addAnonymousIndividualsToSet, addSignatureEntitiesToSet
public OWLLiteralImplBoolean(boolean literal)
literal
- literal valuepublic int initHashCode()
initHashCode
in interface OWLLiteral
initHashCode
in interface OWLObject
public String getLiteral()
OWLLiteral
rdf:PlainLiteral
then the abbreviated lexical form will be returned. That is, the language tag is not
included.getLiteral
in interface OWLLiteral
rdf:PlainLiteral
then
the return values are as follows: If the literal is of the form "abc@"^^rdf:PlainLiteral
then the return value will be "abc" (without the language tag
included). If the literal is of the form "abc@langTag"^^rdf:PlainLiteral
then
the return value will be "abc" (without the language tag included).public boolean isBoolean()
OWLLiteral
"http://www.w3.org/2001/XMLSchema#"boolean
.isBoolean
in interface OWLLiteral
true
if this literal is typed with
"http://www.w3.org/2001/XMLSchema#"boolean
, i.e. this literal represents a
boolean, otherwise false
.public boolean parseBoolean()
OWLLiteral
"http://www.w3.org/2001/XMLSchema#"boolean
).parseBoolean
in interface OWLLiteral
public OWLDatatype getDatatype()
OWLLiteral
OWLDatatype
which types this literal.getDatatype
in interface OWLLiteral
OWLDatatype
that types this literal. Note that for strings with language
tag (previously considered to be untyped literals) the datatype will be
rdf:PlainLiteral. The return value is never null
.Copyright © 2020 The University of Manchester. All rights reserved.