org.jrdf.graph
Interface BlankNode

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

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

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.

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

equals

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.

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.