|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OWLConstant
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 24-Oct-2006
Represents a literal (typed or untyped).
Method Summary | ||
---|---|---|
void |
accept(OWLDataVisitor visitor)
|
|
|
accept(OWLDataVisitorEx<O> visitor)
|
|
OWLTypedConstant |
asOWLTypedConstant()
If this constant is a typed constant (i.e. |
|
OWLUntypedConstant |
asOWLUntypedConstant()
If this constant is an untyped constant (i.e. |
|
java.lang.String |
getLiteral()
Gets the string literal that this constant represents. |
|
boolean |
isTyped()
Determines if this constant is typed (i.e. |
Methods inherited from interface org.semanticweb.owl.model.OWLObject |
---|
accept, accept |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
java.lang.String getLiteral()
boolean isTyped()
OWLTypedConstant
)
true
if the constant is typed, or
false
if the constant is untyped.OWLTypedConstant asOWLTypedConstant()
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.
OWLUntypedConstant asOWLUntypedConstant()
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.
void accept(OWLDataVisitor visitor)
<O> O accept(OWLDataVisitorEx<O> visitor)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |