org.jrdf.graph.global.molecule
Class NodePatternImpl
java.lang.Object
org.jrdf.graph.global.molecule.NodePatternImpl
- All Implemented Interfaces:
- NodePattern, Node, ObjectNode, PredicateNode, SubjectNode, TypedNodeVisitable
public class NodePatternImpl
- extends Object
- implements NodePattern
NodePatternImpl
public NodePatternImpl()
NodePatternImpl
public NodePatternImpl(Node newNode)
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