vanted.validation
Class MyNodes

java.lang.Object
  extended by vanted.validation.MyNodes

public class MyNodes
extends java.lang.Object

The Class MyNodes is a helper class for node validation.

Author:
Kevin Pucknat

Constructor Summary
MyNodes(org.graffiti.graph.Node source, org.graffiti.graph.Node target)
          Instantiates a new my nodes.
 
Method Summary
 void addNode(org.graffiti.graph.Node source, org.graffiti.graph.Node target)
          Adds the nodes.
 boolean contains(org.graffiti.graph.Node node)
          Checks if MyNodes contains this node.
 boolean contains(org.graffiti.graph.Node source, org.graffiti.graph.Node target)
          Checks if MyNodes contains this source and target node.
 org.graffiti.graph.Node getSourceNode()
          Gets the source node.
 org.graffiti.graph.Node getTargetNode()
          Gets the target node.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyNodes

public MyNodes(org.graffiti.graph.Node source,
               org.graffiti.graph.Node target)
Instantiates a new my nodes.

Parameters:
source - the source
target - the target
Method Detail

addNode

public void addNode(org.graffiti.graph.Node source,
                    org.graffiti.graph.Node target)
Adds the nodes.

Parameters:
source - the source
target - the target

getSourceNode

public org.graffiti.graph.Node getSourceNode()
Gets the source node.

Returns:
the source node

getTargetNode

public org.graffiti.graph.Node getTargetNode()
Gets the target node.

Returns:
the target node

contains

public boolean contains(org.graffiti.graph.Node node)
Checks if MyNodes contains this node.

Parameters:
node - the node
Returns:
true, if successful

contains

public boolean contains(org.graffiti.graph.Node source,
                        org.graffiti.graph.Node target)
Checks if MyNodes contains this source and target node.

Parameters:
source - the source
target - the target
Returns:
true, if successful