org.jrdf.graph
Class AnyNode

java.lang.Object
  extended by org.jrdf.graph.AnyNode
All Implemented Interfaces:
Serializable, Node, ObjectNode, TypedNodeVisitable

public final class AnyNode
extends Object
implements ObjectNode, Serializable

A node which represents any node (subject, predicate or object) - unconstrained. Shouldn't be needed unless the positional information (subject, predicate, or object) is lost or you want an object to represent all three positions in one object. The former, should probably be avoided if possible.

Version:
$Id: AnyNode.java 1804 2008-01-04 05:42:41Z newmana $
Author:
Andrew Newman, Tom Adams
See Also:
Serialized Form

Field Summary
static AnyNode ANY_NODE
          The any node constant - represents an unconstrained object node.
 
Method Summary
 void accept(TypedNodeVisitor visitor)
          Accept a call from a TypedNodeVisitor.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ANY_NODE

public static final AnyNode ANY_NODE
The any node constant - represents an unconstrained object node.

Method Detail

toString

public String toString()
Overrides:
toString in class Object

accept

public void accept(TypedNodeVisitor visitor)
Description copied from interface: TypedNodeVisitable
Accept a call from a TypedNodeVisitor.

Specified by:
accept in interface TypedNodeVisitable
Parameters:
visitor - the object doing the visiting.