public class OWLLiteralImpl extends OWLObjectImplWithoutEntityAndAnonCaching 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 |
|---|---|
void |
accept(OWLAnnotationValueVisitor visitor) |
<O> O |
accept(OWLAnnotationValueVisitorEx<O> visitor) |
void |
accept(OWLDataVisitor visitor) |
<O> O |
accept(OWLDataVisitorEx<O> visitor) |
void |
accept(OWLObjectVisitor visitor) |
<O> O |
accept(OWLObjectVisitorEx<O> visitor) |
void |
addAnonymousIndividualsToSet(Set<OWLAnonymousIndividual> anons) |
void |
addSignatureEntitiesToSet(Set<OWLEntity> entities) |
com.google.common.base.Optional<OWLAnonymousIndividual> |
asAnonymousIndividual() |
com.google.common.base.Optional<IRI> |
asIRI() |
com.google.common.base.Optional<OWLLiteral> |
asLiteral() |
boolean |
equals(Object obj) |
OWLDatatype |
getDatatype() |
String |
getLang() |
String |
getLiteral() |
int |
hashCode() |
boolean |
hasLang() |
boolean |
hasLang(String lang) |
boolean |
isBoolean() |
boolean |
isDouble() |
boolean |
isFloat() |
boolean |
isInteger() |
boolean |
isRDFPlainLiteral() |
boolean |
parseBoolean() |
double |
parseDouble() |
float |
parseFloat() |
int |
parseInteger() |
compareTo, containsEntityInSignature, getAnnotationPropertiesInSignature, getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntity, toStringisLiteralgetNestedClassExpressions, isBottomEntity, isIndividual, isIRI, isTopEntity, toStringcompareTogetSignaturecontainsEntityInSignaturegetAnonymousIndividualsgetClassesInSignaturegetObjectPropertiesInSignaturegetDataPropertiesInSignaturegetIndividualsInSignaturegetDatatypesInSignaturegetAnnotationPropertiesInSignatureisAnonymous, isNamedpublic OWLLiteralImpl(@Nonnull String literal, @Nullable String lang, @Nullable OWLDatatype datatype)
literal - the lexical formlang - the language tag; 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 void addSignatureEntitiesToSet(Set<OWLEntity> entities)
addSignatureEntitiesToSet in interface HasIncrementalSignatureGenerationSupportentities - entity set where entities will be addedpublic void addAnonymousIndividualsToSet(Set<OWLAnonymousIndividual> anons)
addAnonymousIndividualsToSet in interface HasIncrementalSignatureGenerationSupportanons - anonymous individuals set where individuals will be addedpublic String getLiteral()
getLiteral in interface OWLLiteralpublic boolean isRDFPlainLiteral()
isRDFPlainLiteral in interface OWLLiteralpublic boolean hasLang()
hasLang in interface OWLLiteralpublic boolean isInteger()
isInteger in interface OWLLiteralpublic int parseInteger()
parseInteger in interface OWLLiteralpublic boolean isBoolean()
isBoolean in interface OWLLiteralpublic boolean parseBoolean()
parseBoolean in interface OWLLiteralpublic boolean isDouble()
isDouble in interface OWLLiteralpublic double parseDouble()
parseDouble in interface OWLLiteralpublic boolean isFloat()
isFloat in interface OWLLiteralpublic float parseFloat()
parseFloat in interface OWLLiteralpublic String getLang()
getLang in interface HasLanggetLang in interface OWLLiteralpublic boolean hasLang(String lang)
hasLang in interface OWLLiteralpublic OWLDatatype getDatatype()
getDatatype in interface OWLLiteralpublic int hashCode()
hashCode in class OWLObjectImplWithoutEntityAndAnonCachingpublic boolean equals(Object obj)
equals in class OWLObjectImplWithoutEntityAndAnonCachingpublic void accept(OWLDataVisitor visitor)
accept in interface OWLLiteralpublic <O> O accept(OWLDataVisitorEx<O> visitor)
accept in interface OWLLiteralpublic void accept(OWLAnnotationValueVisitor visitor)
accept in interface OWLAnnotationValuepublic <O> O accept(OWLAnnotationValueVisitorEx<O> visitor)
accept in interface OWLAnnotationValuepublic void accept(OWLObjectVisitor visitor)
public <O> O accept(OWLObjectVisitorEx<O> visitor)
public com.google.common.base.Optional<IRI> asIRI()
asIRI in interface OWLAnnotationValuepublic com.google.common.base.Optional<OWLAnonymousIndividual> asAnonymousIndividual()
asAnonymousIndividual in interface OWLAnnotationValuepublic com.google.common.base.Optional<OWLLiteral> asLiteral()
asLiteral in interface OWLAnnotationValueCopyright © 2020 The University of Manchester. All rights reserved.