|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphValidator
Interface containing methods which are invoked as part of the graph loading process. The methods may throw exceptions if the graph violates some user constraint.
Method Summary | |
---|---|
void |
validateArc(Arc arc)
Allows user validation of each Arc in the loaded Graph . |
void |
validateArcDefinition(ArcDefinition arcDefinition)
Allows user validation of each XmlArc in the XmlProcessDefinition being loaded. |
void |
validateExternalArcDefinition(ExternalArcDefinition externalArcDefinition)
Allows user validation of each XmlExternalArc in the XmlProcessDefinition being loaded. |
void |
validateExternalDefinition(ExternalDefinition externalDefinition)
Allows user validation of each XmlExternal in the XmlProcessDefinition being loaded. |
void |
validateGraph(Graph graph)
Allows user validation of the loaded Graph , before it is added to the GraphRepository . |
void |
validateNode(Node node)
Allows user validation of each Node in the loaded Graph . |
void |
validateNodeDefinition(NodeDefinition nodeDefinition)
Allows user validation of each XmlNode in the XmlProcessDefinition being loaded. |
void |
validateProcessDefinition(ProcessDefinition processDefinition)
Allows user validation of the xml process definition. |
Method Detail |
---|
void validateProcessDefinition(ProcessDefinition processDefinition) throws SarasvatiLoadException
Graph
construction begins.
If a user constraint is violated, a SarasvatiLoadException
should be thrown.
processDefinition
- The XmlProcessDefinition
to be validated.
SarasvatiLoadException
void validateExternalDefinition(ExternalDefinition externalDefinition) throws SarasvatiLoadException
XmlExternal
in the XmlProcessDefinition
being loaded.
This is invoked at the very beginning of the load process, after the XML has been loaded, but
before Graph
construction begins.
If a user constraint is violated, a SarasvatiLoadException
should be thrown.
externalDefinition
- The XmlExternal
to be validated.
SarasvatiLoadException
void validateNodeDefinition(NodeDefinition nodeDefinition) throws SarasvatiLoadException
XmlNode
in the XmlProcessDefinition
being loaded.
This is invoked at the very beginning of the load process, after the XML has been loaded, but
before Graph
construction begins.
If a user constraint is violated, a SarasvatiLoadException
should be thrown.
nodeDefinition
- The XmlNode
to be validated.
SarasvatiLoadException
void validateArcDefinition(ArcDefinition arcDefinition) throws SarasvatiLoadException
XmlArc
in the XmlProcessDefinition
being loaded.
This is invoked at the very beginning of the load process, after the XML has been loaded, but
before Graph
construction begins.
If a user constraint is violated, a SarasvatiLoadException
should be thrown.
arcDefinition
- The XmlArc
to be validated.
SarasvatiLoadException
void validateExternalArcDefinition(ExternalArcDefinition externalArcDefinition) throws SarasvatiLoadException
XmlExternalArc
in the XmlProcessDefinition
being loaded.
This is invoked at the very beginning of the load process, after the XML has been loaded, but
before Graph
construction begins.
If a user constraint is violated, a SarasvatiLoadException
should be thrown.
externalArcDefinition
- The XmlExternalArc
to be validated.
SarasvatiLoadException
void validateGraph(Graph graph) throws SarasvatiLoadException
Graph
, before it is added to the GraphRepository
.
This is invoked at the very end of the load process, after the XML has been loaded, and after the
full Graph
has been constructed.
If a user constraint is violated, a SarasvatiLoadException
should be thrown.
graph
- The Graph
to be validated.
SarasvatiLoadException
void validateNode(Node node) throws SarasvatiLoadException
Node
in the loaded Graph
.
This is invoked at the very end of the load process, after the XML has
been loaded, and after the full Graph
has been constructed.
If a user constraint is violated, a SarasvatiLoadException
should be thrown.
node
- The Node
to be validated.
SarasvatiLoadException
void validateArc(Arc arc) throws SarasvatiLoadException
Arc
in the loaded Graph
.
This is invoked at the very end of the load process, after the XML has
been loaded, and after the full Graph
has been constructed.
If a user constraint is violated, a SarasvatiLoadException
should be thrown.
arc
- The Arc
to be validated.
SarasvatiLoadException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |