|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
uk.ac.manchester.cs.owl.owlapi.OWLLiteralImpl
uk.ac.manchester.cs.owl.owlapi.OWLStringLiteralImpl
public class OWLStringLiteralImpl
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 26-Oct-2006
Constructor Summary | |
---|---|
OWLStringLiteralImpl(OWLDataFactory dataFactory,
java.lang.String literal,
java.lang.String lang)
|
Method Summary | ||
---|---|---|
void |
accept(OWLAnnotationValueVisitor visitor)
|
|
|
accept(OWLAnnotationValueVisitorEx<O> visitor)
|
|
void |
accept(OWLDataVisitor visitor)
|
|
|
accept(OWLDataVisitorEx<O> visitor)
|
|
void |
accept(OWLObjectVisitor visitor)
|
|
|
accept(OWLObjectVisitorEx<O> visitor)
|
|
OWLTypedLiteral |
asOWLStringLiteral()
If this literal is a typed (i.e. |
|
OWLStringLiteral |
asRDFTextLiteral()
If this literal is an RDFTextLiteral (i.e. |
|
protected int |
compareObjectOfSameType(OWLObject object)
|
|
boolean |
equals(java.lang.Object obj)
|
|
java.lang.String |
getLang()
Gets the language tag (if present) |
|
boolean |
hasLang()
|
|
boolean |
hasLang(java.lang.String lang)
Determines if this constant has a specific language tag. |
|
boolean |
isTyped()
Determines if this literal is typed (i.e. |
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLLiteralImpl |
---|
getLiteral, hashCode |
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl |
---|
compareSets, compareTo, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getObjectPropertiesInSignature, getOWLDataFactory, getSignature, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.semanticweb.owlapi.model.OWLLiteral |
---|
getLiteral |
Constructor Detail |
---|
public OWLStringLiteralImpl(OWLDataFactory dataFactory, java.lang.String literal, java.lang.String lang)
Method Detail |
---|
public java.lang.String getLang()
OWLStringLiteral
getLang
in interface OWLStringLiteral
String
which represents the langauge tag,
or null
if there is no language tagpublic boolean hasLang()
public boolean hasLang(java.lang.String lang)
OWLStringLiteral
hasLang
in interface OWLStringLiteral
lang
- The specific lang to test for.
true
if this constant has the specified
langauge tag, or false
if this constant does not
have a language tag or if this constant has a language tag that
is not equal to the specified language tag.public boolean isTyped()
OWLLiteral
OWLTypedLiteral
)
isTyped
in interface OWLLiteral
true
if the literal is typed, otherwise false
false
public OWLTypedLiteral asOWLStringLiteral()
OWLLiteral
isTyped
method returns true
then this method obtains this literal as a typed
literal. If isTyped
returns false
then calling this method will
cause an OWLRuntimeException
to be thrown.
asOWLStringLiteral
in interface OWLLiteral
public OWLStringLiteral asRDFTextLiteral()
OWLLiteral
isTyped
method returns false
then this method obtains this literal as
an RDFTextLiteral. If the isTyped
method returns true
because this method is a typed literal, then calling this method will cause
an OWLRuntimeException
to be thrown.
asRDFTextLiteral
in interface OWLLiteral
public boolean equals(java.lang.Object obj)
equals
in class OWLLiteralImpl
public void accept(OWLAnnotationValueVisitor visitor)
accept
in interface OWLAnnotationValue
public <O> O accept(OWLAnnotationValueVisitorEx<O> visitor)
accept
in interface OWLAnnotationValue
public void accept(OWLDataVisitor visitor)
accept
in interface OWLLiteral
public void accept(OWLObjectVisitor visitor)
accept
in interface OWLObject
public <O> O accept(OWLDataVisitorEx<O> visitor)
accept
in interface OWLLiteral
public <O> O accept(OWLObjectVisitorEx<O> visitor)
accept
in interface OWLObject
protected int compareObjectOfSameType(OWLObject object)
compareObjectOfSameType
in class OWLObjectImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |