|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.coode.owlapi.rdf.model.RDFNode org.coode.owlapi.rdf.model.RDFLiteralNode
public class RDFLiteralNode
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 06-Dec-2006
Constructor Summary | |
---|---|
RDFLiteralNode(java.lang.String literal,
IRI datatype)
|
|
RDFLiteralNode(java.lang.String literal,
java.lang.String lang)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
IRI |
getDatatype()
Gets the datatype, or null if there is no datatype |
IRI |
getIRI()
Gets the URI of the resource. |
java.lang.String |
getLang()
Gets the lang |
java.lang.String |
getLiteral()
Gets the lexical form of this literal. |
int |
hashCode()
|
boolean |
isAnonymous()
Determines if this node is a resource and is anonymous. |
boolean |
isLiteral()
|
boolean |
isTyped()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RDFLiteralNode(java.lang.String literal, IRI datatype)
public RDFLiteralNode(java.lang.String literal, java.lang.String lang)
Method Detail |
---|
public IRI getIRI()
RDFNode
getIRI
in class RDFNode
null
if this is an anonymous resource.public boolean isAnonymous()
RDFNode
isAnonymous
in class RDFNode
true
if this is a resource node (i.e.
isLiteral
returns false
) and the
node is anonymous, or false
if this is a
resource node and is not anonymous.public java.lang.String getLiteral()
public java.lang.String getLang()
null
if there is no langpublic IRI getDatatype()
null
if there is no datatype
public boolean isTyped()
public boolean isLiteral()
isLiteral
in class RDFNode
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |