org.jrdf.graph
Interface URIReference

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

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: 1045 $
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

URI getURI()
The URI identifiying this resource.

Returns:
the URI identifying this resource.

hashCode

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

Overrides:
hashCode in class Object
Returns:
a hash-code value for this literal.

equals

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.

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