org.coode.owl.rdf.model
Class RDFLiteralNode
java.lang.Object
  
org.coode.owl.rdf.model.RDFNode
      
org.coode.owl.rdf.model.RDFLiteralNode
public class RDFLiteralNode
- extends RDFNode
 
Author: Matthew Horridge
 The University Of Manchester
 Bio-Health Informatics Group
 Date: 06-Dec-2006
 
 
| Methods inherited from class java.lang.Object | 
getClass, notify, notifyAll, wait, wait, wait | 
 
RDFLiteralNode
public RDFLiteralNode(java.lang.String literal)
RDFLiteralNode
public RDFLiteralNode(java.lang.String literal,
                      java.net.URI datatype)
RDFLiteralNode
public RDFLiteralNode(java.lang.String literal,
                      java.lang.String lang)
getURI
public java.net.URI getURI()
- Description copied from class: 
RDFNode 
- Gets the URI of the resource.
- Specified by:
 getURI in class RDFNode
 
- Returns:
 - The URI or 
null if this is an anonymous resource. 
 
 
isAnonymous
public boolean isAnonymous()
- Description copied from class: 
RDFNode 
- Determines if this node is a resource and is anonymous.
- Specified by:
 isAnonymous in class RDFNode
 
- Returns:
 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.
 
 
getLiteral
public java.lang.String getLiteral()
 
getLang
public java.lang.String getLang()
 
getDatatype
public java.net.URI getDatatype()
 
isTyped
public boolean isTyped()
 
isLiteral
public boolean isLiteral()
- Specified by:
 isLiteral in class RDFNode
 
 
toString
public java.lang.String toString()
- Overrides:
 toString in class java.lang.Object
 
 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equals in class java.lang.Object
 
 
hashCode
public int hashCode()
- Overrides:
 hashCode in class java.lang.Object