org.jrdf.graph.global.molecule
Class NodePatternImpl

java.lang.Object
  extended by org.jrdf.graph.global.molecule.NodePatternImpl
All Implemented Interfaces:
NodePattern, Node, ObjectNode, PredicateNode, SubjectNode, TypedNodeVisitable

public class NodePatternImpl
extends Object
implements NodePattern


Constructor Summary
NodePatternImpl()
           
NodePatternImpl(Node newNode)
           
 
Method Summary
 void accept(TypedNodeVisitor visitor)
          Accept a call from a TypedNodeVisitor.
 boolean equals(Object pattern)
           
 int hashCode()
           
 boolean isAnyNode()
           
 boolean isAnyNode(Node existingNode)
           
 boolean matches(Node nodeToMatch)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodePatternImpl

public NodePatternImpl()

NodePatternImpl

public NodePatternImpl(Node newNode)
Method Detail

hashCode

public int hashCode()
Specified by:
hashCode in interface NodePattern
Overrides:
hashCode in class Object

matches

public boolean matches(Node nodeToMatch)
Specified by:
matches in interface NodePattern

isAnyNode

public boolean isAnyNode()
Specified by:
isAnyNode in interface NodePattern

isAnyNode

public boolean isAnyNode(Node existingNode)
Specified by:
isAnyNode in interface NodePattern

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.

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object pattern)
Specified by:
equals in interface NodePattern
Overrides:
equals in class Object