org.openrdf.sail.rdbms.model
Class RdbmsBNode

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.RdbmsBNode
All Implemented Interfaces:
Serializable, BNode, Resource, Value

public class RdbmsBNode
extends RdbmsResource
implements BNode

Wraps a BNodeImpl providing an internal id and version.

Author:
James Leigh
See Also:
Serialized Form

Constructor Summary
RdbmsBNode(BNode bnode)
           
RdbmsBNode(Number id, Integer version, BNode bnode)
           
 
Method Summary
 boolean equals(Object o)
          Compares a blank node object to another object.
 String getID()
          retrieves this blank node's identifier.
 int hashCode()
          The hash code of a blank node is defined as the hash code of its identifier: id.hashCode().
 String stringValue()
          Returns the String-value of a Value object.
 String toString()
           
 
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

RdbmsBNode

public RdbmsBNode(BNode bnode)

RdbmsBNode

public RdbmsBNode(Number id,
                  Integer version,
                  BNode bnode)
Method Detail

getID

public String getID()
Description copied from interface: BNode
retrieves this blank node's identifier.

Specified by:
getID in interface BNode
Returns:
A blank node identifier.

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()
Overrides:
toString in class Object

equals

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

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

hashCode

public int hashCode()
Description copied from interface: BNode
The hash code of a blank node is defined as the hash code of its identifier: id.hashCode().

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


Copyright © 2001-2012 Aduna. All Rights Reserved.