org.openrdf.sail.rdbms.model
Class RdbmsURI

java.lang.Object
  extended by org.openrdf.sail.rdbms.model.RdbmsValue
      extended by org.openrdf.sail.rdbms.model.RdbmsResource
          extended by org.openrdf.sail.rdbms.model.RdbmsURI
All Implemented Interfaces:
Serializable, Resource, URI, Value

public class RdbmsURI
extends RdbmsResource
implements URI

Wraps a URIImpl providing an internal id and version.

Author:
James Leigh
See Also:
Serialized Form

Constructor Summary
RdbmsURI(Number id, Integer version, URI uri)
           
RdbmsURI(URI uri)
           
 
Method Summary
 boolean equals(Object o)
          Compares a URI object to another object.
 String getLocalName()
          Gets the local name of this URI.
 String getNamespace()
          Gets the namespace of this URI.
 int hashCode()
          The hash code of a URI is defined as the hash code of its String-representation: toString().hashCode.
 String stringValue()
          Returns the String-value of a Value object.
 String toString()
          Returns the String-representation of this URI.
 
Methods inherited from class org.openrdf.sail.rdbms.model.RdbmsValue
getInternalId, getVersion, isExpired, setInternalId, setVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RdbmsURI

public RdbmsURI(URI uri)

RdbmsURI

public RdbmsURI(Number id,
                Integer version,
                URI uri)
Method Detail

getLocalName

public String getLocalName()
Description copied from interface: URI
Gets the local name of this URI. The local name is defined as per the algorithm described in the class documentation.

Specified by:
getLocalName in interface URI
Returns:
The URI's local name.

getNamespace

public String getNamespace()
Description copied from interface: URI
Gets the namespace of this URI. The namespace is defined as per the algorithm described in the class documentation.

Specified by:
getNamespace in interface URI
Returns:
The URI's namespace.

stringValue

public String stringValue()
Description copied from interface: Value
Returns the String-value of a Value object. This returns either a Literal's label, a URI's URI or a BNode's ID.

Specified by:
stringValue in interface Value

toString

public String toString()
Description copied from interface: URI
Returns the String-representation of this URI.

Specified by:
toString in interface URI
Overrides:
toString in class Object
Returns:
The String-representation of this URI.

equals

public boolean equals(Object o)
Description copied from interface: URI
Compares a URI object to another object.

Specified by:
equals in interface URI
Overrides:
equals in class Object
Parameters:
o - The object to compare this URI to.
Returns:
true if the other object is an instance of URI and their String-representations are equal, false otherwise.

hashCode

public int hashCode()
Description copied from interface: URI
The hash code of a URI is defined as the hash code of its String-representation: toString().hashCode.

Specified by:
hashCode in interface URI
Overrides:
hashCode in class Object
Returns:
A hash code for the URI.


Copyright © 2001-2009 Aduna. All Rights Reserved.