org.jrdf.graph.local.mem
Class URIReferenceImpl

java.lang.Object
  extended by org.jrdf.graph.AbstractURIReference
      extended by org.jrdf.graph.local.mem.URIReferenceImpl
All Implemented Interfaces:
Serializable, LocalizedNode, Node, ObjectNode, PredicateNode, SubjectNode, TypedNodeVisitable, URIReference

public class URIReferenceImpl
extends AbstractURIReference
implements LocalizedNode, Serializable

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: 1823 $
Author:
Paul Gearon
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jrdf.graph.AbstractURIReference
uri
 
Constructor Summary
URIReferenceImpl(URI newUri, boolean validate, Long newId)
          Constructor for use by GraphElementFactory only.
URIReferenceImpl(URI newUri, Long newId)
          Constructor for use by GraphElementFactory only.
 
Method Summary
 Long getId()
          Retrieves an internal identifier for this node.
 
Methods inherited from class org.jrdf.graph.AbstractURIReference
accept, equals, getURI, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jrdf.graph.TypedNodeVisitable
accept
 

Constructor Detail

URIReferenceImpl

public URIReferenceImpl(URI newUri,
                        Long newId)
Constructor for use by GraphElementFactory only.

Parameters:
newUri - The newUri of this node.
newId - The internal identifier for this node.

URIReferenceImpl

public URIReferenceImpl(URI newUri,
                        boolean validate,
                        Long newId)
Constructor for use by GraphElementFactory only.

Parameters:
newUri - The uri of this node.
validate - whether to enforce valid RDF URIs.
newId - The internal identifier for this node.
Method Detail

getId

public Long getId()
Retrieves an internal identifier for this node.

Specified by:
getId in interface LocalizedNode
Returns:
A numeric identifier for this node.