com.googlecode.sarasvati.load
Class GraphValidatorAdapter

java.lang.Object
  extended by com.googlecode.sarasvati.load.GraphValidatorAdapter
All Implemented Interfaces:
GraphValidator

public class GraphValidatorAdapter
extends Object
implements GraphValidator

Provides a base for creating GraphValidator implementations in cases where not all methods will be overridden. Provides default, do-nothing implementations of all methods.

Author:
Paul Lorenz

Constructor Summary
GraphValidatorAdapter()
           
 
Method Summary
 void validateArc(Arc arc)
          Does nothing.
 void validateArcDefinition(ArcDefinition arcDefinition)
          Does nothing.
 void validateExternalArcDefinition(ExternalArcDefinition xmlExternalArc)
          Does nothing.
 void validateExternalDefinition(ExternalDefinition externalDefinition)
          Does nothing.
 void validateGraph(Graph graph)
          Does nothing.
 void validateNode(Node node)
          Does nothing.
 void validateNodeDefinition(NodeDefinition nodeDefinition)
          Does nothing.
 void validateProcessDefinition(ProcessDefinition processDefinition)
          Does nothing.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphValidatorAdapter

public GraphValidatorAdapter()
Method Detail

validateArc

public void validateArc(Arc arc)
                 throws SarasvatiLoadException
Does nothing. Override in a subclass to do user constraint checking

Specified by:
validateArc in interface GraphValidator
Parameters:
arc - The Arc to be validated.
Throws:
SarasvatiLoadException

validateGraph

public void validateGraph(Graph graph)
                   throws SarasvatiLoadException
Does nothing. Override in a subclass to do user constraint checking

Specified by:
validateGraph in interface GraphValidator
Parameters:
graph - The Graph to be validated.
Throws:
SarasvatiLoadException

validateNode

public void validateNode(Node node)
                  throws SarasvatiLoadException
Does nothing. Override in a subclass to do user constraint checking

Specified by:
validateNode in interface GraphValidator
Parameters:
node - The Node to be validated.
Throws:
SarasvatiLoadException

validateArcDefinition

public void validateArcDefinition(ArcDefinition arcDefinition)
                           throws SarasvatiLoadException
Does nothing. Override in a subclass to do user constraint checking

Specified by:
validateArcDefinition in interface GraphValidator
Parameters:
arcDefinition - The XmlArc to be validated.
Throws:
SarasvatiLoadException

validateExternalDefinition

public void validateExternalDefinition(ExternalDefinition externalDefinition)
                                throws SarasvatiLoadException
Does nothing. Override in a subclass to do user constraint checking

Specified by:
validateExternalDefinition in interface GraphValidator
Parameters:
externalDefinition - The XmlExternal to be validated.
Throws:
SarasvatiLoadException

validateExternalArcDefinition

public void validateExternalArcDefinition(ExternalArcDefinition xmlExternalArc)
                                   throws SarasvatiLoadException
Does nothing. Override in a subclass to do user constraint checking

Specified by:
validateExternalArcDefinition in interface GraphValidator
Parameters:
xmlExternalArc - The XmlExternalArc to be validated.
Throws:
SarasvatiLoadException

validateNodeDefinition

public void validateNodeDefinition(NodeDefinition nodeDefinition)
                            throws SarasvatiLoadException
Does nothing. Override in a subclass to do user constraint checking

Specified by:
validateNodeDefinition in interface GraphValidator
Parameters:
nodeDefinition - The XmlNode to be validated.
Throws:
SarasvatiLoadException

validateProcessDefinition

public void validateProcessDefinition(ProcessDefinition processDefinition)
                               throws SarasvatiLoadException
Does nothing. Override in a subclass to do user constraint checking

Specified by:
validateProcessDefinition in interface GraphValidator
Parameters:
processDefinition - The XmlProcessDefinition to be validated.
Throws:
SarasvatiLoadException