public class OWLLiteralImplDouble extends OWLObjectImpl implements OWLLiteral
| Constructor and Description |
|---|
OWLLiteralImplDouble(double 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 |
isDouble()
Determines if this literal is typed with a datatype that has an IRI that is
"http://www.w3.org/2001/XMLSchema#"double. |
double |
parseDouble()
Parses the lexical value of this literal into a double.
|
annotationPropertiesInSignature, anonymousIndividuals, classesInSignature, compareTo, containsEntityInSignature, dataPropertiesInSignature, datatypesInSignature, equals, hashCode, individualsInSignature, nestedClassExpressions, objectPropertiesInSignature, signature, toStringaccept, accept, accept, accept, accept, accept, asLiteral, components, getLang, hashIndex, hasLang, hasLang, isBoolean, isFloat, isInteger, isLiteral, isRDFPlainLiteral, parseBoolean, parseFloat, parseInteger, typeIndexannotationValueasAnonymousIndividual, asIRIgetNestedClassExpressions, hashIteration, hasSharedStructure, isAnonymousExpression, isAxiom, isBottomEntity, isIndividual, isIRI, isOntology, isTopEntity, nestedClassExpressionscompareTogetSignature, signature, unsortedSignaturecontainsEntityInSignatureanonymousIndividuals, getAnonymousIndividualsclassesInSignature, getClassesInSignaturegetObjectPropertiesInSignature, objectPropertiesInSignaturedataPropertiesInSignature, getDataPropertiesInSignaturegetIndividualsInSignature, individualsInSignaturedatatypesInSignature, getDatatypesInSignatureannotationPropertiesInSignature, getAnnotationPropertiesInSignaturecomponentsAnnotationsFirst, componentsWithoutAnnotationsisAnonymous, isNamedanonymousIndividualValue, ifAnonymousIndividual, ifAnonymousIndividualOrElse, ifIri, ifIriOrElse, ifLiteral, ifLiteralOrElse, ifValue, iriValue, literalValue, map, map, mapAnonymousIndividual, mapAnonymousIndividualOrElse, mapAnonymousIndividualOrElseGet, mapIri, mapIriOrElse, mapIriOrElseGet, mapLiteral, mapLiteralOrElse, mapLiteralOrElseGet, mapValue, whenaddAnonymousIndividualsToSet, addSignatureEntitiesToSetpublic OWLLiteralImplDouble(double literal)
literal - literal valuepublic int initHashCode()
initHashCode in interface OWLLiteralinitHashCode in interface OWLObjectpublic String getLiteral()
OWLLiteralrdf:PlainLiteral
then the abbreviated lexical form will be returned. That is, the language tag is not
included.getLiteral in interface OWLLiteralrdf: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 isDouble()
OWLLiteral"http://www.w3.org/2001/XMLSchema#"double.isDouble in interface OWLLiteraltrue if this literal is typed with
"http://www.w3.org/2001/XMLSchema#"double, i.e. this literal represents a
double, otherwise false.public double parseDouble()
OWLLiteral"http://www.w3.org/2001/XMLSchema#"double).parseDouble in interface OWLLiteralpublic OWLDatatype getDatatype()
OWLLiteralOWLDatatype which types this literal.getDatatype in interface OWLLiteralOWLDatatype 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 © 2019 The University of Manchester. All rights reserved.