org.coode.owlapi.rdf.model
Class RDFResourceNode

java.lang.Object
  extended by org.coode.owlapi.rdf.model.RDFNode
      extended by org.coode.owlapi.rdf.model.RDFResourceNode

public class RDFResourceNode
extends RDFNode

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 06-Dec-2006


Constructor Summary
RDFResourceNode(int anonId)
          Constructs an anonymous node, which has the specified ID.
RDFResourceNode(IRI iri)
          Constructs a named resource (i.e.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 IRI getIRI()
          Gets the URI of the resource.
 int hashCode()
           
 boolean isAnonymous()
          Determines if this node is a resource and is anonymous.
 boolean isLiteral()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RDFResourceNode

public RDFResourceNode(IRI iri)
Constructs a named resource (i.e. a resource with a URI).


RDFResourceNode

public RDFResourceNode(int anonId)
Constructs an anonymous node, which has the specified ID.

Parameters:
anonId - The id of the node
Method Detail

getIRI

public IRI getIRI()
Description copied from class: RDFNode
Gets the URI of the resource.

Specified by:
getIRI in class RDFNode
Returns:
The URI or null if this is an anonymous resource.

isLiteral

public boolean isLiteral()
Specified by:
isLiteral in class RDFNode

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.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object