public class OWLLiteralImpl extends OWLObjectImpl implements OWLLiteral
OWLLiteral that uses compression of strings. See
also OWLLiteralImplNoCompression| Constructor and Description |
|---|
OWLLiteralImpl(String literal,
String lang,
OWLDatatype datatype) |
| Modifier and Type | Method and Description |
|---|---|
OWLDatatype |
getDatatype() |
String |
getLang() |
String |
getLiteral() |
boolean |
hasLang() |
boolean |
hasLang(String lang) |
boolean |
isBoolean() |
boolean |
isDouble() |
boolean |
isFloat() |
boolean |
isInteger() |
boolean |
isRDFPlainLiteral() |
boolean |
parseBoolean() |
double |
parseDouble() |
float |
parseFloat() |
int |
parseInteger() |
annotationPropertiesInSignature, anonymousIndividuals, classesInSignature, compareTo, containsEntityInSignature, dataPropertiesInSignature, datatypesInSignature, equals, hashCode, individualsInSignature, nestedClassExpressions, objectPropertiesInSignature, signature, toStringaccept, accept, accept, accept, accept, accept, asLiteral, components, hashIndex, typeIndexasAnonymousIndividual, asIRIgetNestedClassExpressions, hasSharedStructure, isAnonymousExpression, isAxiom, isBottomEntity, isIndividual, isIRI, isOntology, isTopEntity, nestedClassExpressionscompareTogetSignature, signaturecontainsEntityInSignatureanonymousIndividuals, getAnonymousIndividualsclassesInSignature, getClassesInSignaturegetObjectPropertiesInSignature, objectPropertiesInSignaturedataPropertiesInSignature, getDataPropertiesInSignaturegetIndividualsInSignature, individualsInSignaturedatatypesInSignature, getDatatypesInSignatureannotationPropertiesInSignature, getAnnotationPropertiesInSignaturecomponentsAnnotationsFirst, componentsWithoutAnnotationsisAnonymousaddAnonymousIndividualsToSet, addSignatureEntitiesToSetpublic OWLLiteralImpl(String literal, @Nullable String lang, @Nullable OWLDatatype datatype)
literal - the lexical formlang - the language; can be null or an empty string, in which case
datatype can be any datatype but not nulldatatype - the datatype; if lang is null or the empty string, it can be null
or it MUST be RDFPlainLiteralpublic String getLiteral()
getLiteral in interface OWLLiteralpublic boolean hasLang()
hasLang in interface OWLLiteralpublic boolean isRDFPlainLiteral()
isRDFPlainLiteral in interface OWLLiteralpublic boolean isInteger()
isInteger in interface OWLLiteralpublic boolean isBoolean()
isBoolean in interface OWLLiteralpublic boolean isDouble()
isDouble in interface OWLLiteralpublic boolean isFloat()
isFloat in interface OWLLiteralpublic int parseInteger()
parseInteger in interface OWLLiteralpublic boolean parseBoolean()
parseBoolean in interface OWLLiteralpublic double parseDouble()
parseDouble in interface OWLLiteralpublic float parseFloat()
parseFloat in interface OWLLiteralpublic String getLang()
getLang in interface HasLanggetLang in interface OWLLiteralpublic boolean hasLang(@Nullable String lang)
hasLang in interface OWLLiteralpublic OWLDatatype getDatatype()
getDatatype in interface OWLLiteralCopyright © 2017 The University of Manchester. All Rights Reserved.