de.hedenus.rdf
Class URIRefNode

java.lang.Object
  extended by de.hedenus.rdf.RDFNode
      extended by de.hedenus.rdf.URIRefNode
All Implemented Interfaces:
GraphElement, Node, URIReference, java.io.Serializable, java.lang.Comparable

public class URIRefNode
extends RDFNode
implements URIReference, java.io.Serializable

A RDF URI-reference node.

Author:
Michael Hedenus
See Also:
Serialized Form

Constructor Summary
protected URIRefNode(java.lang.String uri, java.lang.String id)
           
 
Method Summary
 java.lang.String about()
          Returns the this node's subject identifier.
 boolean equals(java.lang.Object obj)
          Two Resources are equal if their URIs are equal.
 java.lang.String getURI()
          Returns the URI this resource referes to.
 int hashCode()
           
 java.lang.String label()
          Returns a label used to visually tag the graph element.
 
Methods inherited from class de.hedenus.rdf.RDFNode
compareTo, id, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URIRefNode

protected URIRefNode(java.lang.String uri,
                     java.lang.String id)
Method Detail

getURI

public java.lang.String getURI()
Returns the URI this resource referes to.

Specified by:
getURI in interface URIReference

equals

public boolean equals(java.lang.Object obj)
Two Resources are equal if their URIs are equal.

Overrides:
equals in class RDFNode

hashCode

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

about

public java.lang.String about()
Description copied from class: RDFNode
Returns the this node's subject identifier.

Specified by:
about in class RDFNode

label

public java.lang.String label()
Description copied from interface: GraphElement
Returns a label used to visually tag the graph element.

Specified by:
label in interface GraphElement
Specified by:
label in class RDFNode