org.jrdf.graph
Interface URIReference

All Superinterfaces:
Node, ObjectNode, PredicateNode, Serializable, SubjectNode, TypedNodeVisitable
All Known Implementing Classes:
AbstractURIReference

public interface URIReference
extends SubjectNode, PredicateNode, ObjectNode, TypedNodeVisitable

RDF URI reference - resource node. Some RDF resources are properties. It's not always possible to say whether a resource is a property or not until it's used as a predicate, because we don't always have access to an RDF Schema that defines the property. A URI Reference can be any part of an RDF Triple: subject, predicate or object.

Version:
$Revision: 1.1 $
Author:
Simon Raboczi, Andrew Newman

Method Summary
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 URI getURI()
          The URI identifiying this resource.
 int hashCode()
          Returns a hash-code value for this URI Reference.
 
Methods inherited from interface org.jrdf.graph.TypedNodeVisitable
accept
 

Method Detail

getURI

public URI getURI()
The URI identifiying this resource.

Returns:
the URI identifying this resource.

hashCode

public int hashCode()
Returns a hash-code value for this URI Reference. This is the hash code of the URI.

Returns:
a hash-code value for this literal.

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one. A URI Reference is equal to another URI Reference if their URIs are equal to one another, character by character.

Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.