org.jrdf.graph
Interface BlankNode

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

public interface BlankNode
extends SubjectNode, ObjectNode, TypedNodeVisitable

RDF blank node. Note that blank nodes are deliberately devoid of indentifying attributes. Blank nodes, can either be subjects or objects.

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

Method Summary
 boolean equals(Object obj)
          While the internal structure of a BlankNode is not defined equality between two nodes should be able to be determined.
 int hashCode()
          Returns a hash-code value for this BlankNode.
 
Methods inherited from interface org.jrdf.graph.TypedNodeVisitable
accept
 

Method Detail

hashCode

public int hashCode()
Returns a hash-code value for this BlankNode. While the implementation is not defined, if there is a blank node identifier then it should be the hash code generated from this. Hash code generation should follow the normal contract.

Returns:
a hash-code value for this blank node.

equals

public boolean equals(Object obj)
While the internal structure of a BlankNode is not defined equality between two nodes should be able to be determined. In some representations this equality would be defined by a blank node identifier.

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