|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.manchester.cs.owl.OWLObjectImpl
uk.ac.manchester.cs.owl.OWLConstantImpl
uk.ac.manchester.cs.owl.OWLUntypedConstantImpl
public class OWLUntypedConstantImpl
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 26-Oct-2006
Constructor Summary | |
---|---|
OWLUntypedConstantImpl(OWLDataFactory dataFactory,
java.lang.String literal,
java.lang.String lang)
|
Method Summary | ||
---|---|---|
void |
accept(OWLDataVisitor visitor)
|
|
|
accept(OWLDataVisitorEx<O> visitor)
|
|
void |
accept(OWLObjectVisitor visitor)
|
|
|
accept(OWLObjectVisitorEx<O> visitor)
|
|
OWLTypedConstant |
asOWLTypedConstant()
If this constant is a typed constant (i.e. |
|
OWLUntypedConstant |
asOWLUntypedConstant()
If this constant is an untyped constant (i.e. |
|
boolean |
equals(java.lang.Object obj)
|
|
java.lang.String |
getLang()
Gets the language tag (if present) |
|
boolean |
hasLang()
Language tags on untyped constants are optional. |
|
boolean |
hasLang(java.lang.String lang)
Determines if this constant has a specific language tag. |
|
boolean |
isTyped()
Determines if this constant is typed (i.e. |
Methods inherited from class uk.ac.manchester.cs.owl.OWLConstantImpl |
---|
getLiteral |
Methods inherited from class uk.ac.manchester.cs.owl.OWLObjectImpl |
---|
compareTo, getOWLDataFactory, getSignature, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.semanticweb.owl.model.OWLConstant |
---|
getLiteral |
Methods inherited from interface org.semanticweb.owl.model.OWLObject |
---|
getSignature |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public OWLUntypedConstantImpl(OWLDataFactory dataFactory, java.lang.String literal, java.lang.String lang)
Method Detail |
---|
public java.lang.String getLang()
OWLUntypedConstant
getLang
in interface OWLUntypedConstant
String
which represents the langauge tag,
or null
if there is no language tagpublic boolean hasLang()
OWLUntypedConstant
hasLang
in interface OWLUntypedConstant
true
if there is a language tag, or
false
if there is not a langauge tag.public boolean hasLang(java.lang.String lang)
OWLUntypedConstant
hasLang
in interface OWLUntypedConstant
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()
OWLConstant
OWLTypedConstant
)
isTyped
in interface OWLConstant
true
if the constant is typed, or
false
if the constant is untyped.public OWLTypedConstant asOWLTypedConstant()
OWLConstant
isTyped
method returns true
then this method obtains this constant as a typed
constant. If isTyped
returns false
because
this constant is not a typed constant then calling this method will
cause an OWLRuntimeException
to be thrown.
asOWLTypedConstant
in interface OWLConstant
public OWLUntypedConstant asOWLUntypedConstant()
OWLConstant
isTyped
method returns false
then this method obtains this constant as
an untyped constant. If the isTyped
method returns true
because this method is a typed constant, then calling this method will cause
an OWLRuntimeException
to be thrown.
asOWLUntypedConstant
in interface OWLConstant
public boolean equals(java.lang.Object obj)
equals
in class OWLConstantImpl
public void accept(OWLDataVisitor visitor)
accept
in interface OWLConstant
public void accept(OWLObjectVisitor visitor)
accept
in interface OWLObject
public <O> O accept(OWLDataVisitorEx<O> visitor)
accept
in interface OWLConstant
public <O> O accept(OWLObjectVisitorEx<O> visitor)
accept
in interface OWLObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |