public class OWLLiteralImplNoCompression extends OWLObjectImpl implements OWLLiteral
NO_ANNOTATIONS, OWL_THING| Constructor and Description |
|---|
OWLLiteralImplNoCompression(byte[] bytes,
String lang,
OWLDatatype datatype) |
OWLLiteralImplNoCompression(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) |
protected int |
compareObjectOfSameType(OWLObject object) |
boolean |
equals(Object obj) |
OWLDatatype |
getDatatype() |
String |
getLang() |
String |
getLiteral() |
int |
hashCode() |
boolean |
hasLang() |
boolean |
hasLang(String l) |
boolean |
isBoolean() |
boolean |
isDouble() |
boolean |
isFloat() |
boolean |
isInteger() |
boolean |
isRDFPlainLiteral() |
boolean |
parseBoolean() |
double |
parseDouble() |
float |
parseFloat() |
int |
parseInteger() |
compareLists, compareSets, compareTo, getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntity, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntitycompareTopublic OWLLiteralImplNoCompression(String literal, String lang, 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 OWLLiteralImplNoCompression(byte[] bytes,
String lang,
OWLDatatype datatype)
bytes - lang - datatype - public String getLiteral()
getLiteral in interface OWLLiteralpublic boolean hasLang()
hasLang in interface OWLLiteralpublic int parseInteger()
throws NumberFormatException
parseInteger in interface OWLLiteralNumberFormatExceptionpublic 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 boolean parseBoolean()
throws NumberFormatException
parseBoolean in interface OWLLiteralNumberFormatExceptionpublic double parseDouble()
throws NumberFormatException
parseDouble in interface OWLLiteralNumberFormatExceptionpublic float parseFloat()
throws NumberFormatException
parseFloat in interface OWLLiteralNumberFormatExceptionpublic String getLang()
getLang in interface OWLLiteralpublic boolean hasLang(String l)
hasLang in interface OWLLiteralpublic OWLDatatype getDatatype()
getDatatype in interface OWLLiteralpublic int hashCode()
hashCode in class OWLObjectImplpublic boolean equals(Object obj)
equals in class OWLObjectImplpublic 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 OWLAnnotationValueprotected int compareObjectOfSameType(OWLObject object)
compareObjectOfSameType in class OWLObjectImplpublic void accept(OWLObjectVisitor visitor)
public <O> O accept(OWLObjectVisitorEx<O> visitor)
Copyright © 2013 CSIRO HRPPC. All Rights Reserved.