com.evelopers.unimod.validation
Class ValidationTool
java.lang.Object
com.evelopers.unimod.validation.ValidationTool
- public class ValidationTool
- extends java.lang.Object
Validates StateMachine
described by xml and dumps all errors.
Constructor Summary |
ValidationTool(java.io.InputStream inputXML)
Creates ValidationTool for validating StateMachine
whose xml description is found in inputXML . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidationTool
public ValidationTool(java.io.InputStream inputXML)
throws java.io.IOException,
org.xml.sax.SAXException,
TransformException,
javax.xml.parsers.ParserConfigurationException
- Creates
ValidationTool
for validating StateMachine
whose xml description is found in inputXML
.
- Parameters:
inputXML
- InputStream
with xml description of StateMachine
.
- Throws:
java.io.IOException
- if any I/O errors occur.
org.xml.sax.SAXException
- if any xml-parse errors occur.
TransformException
- if any transform error occur.
javax.xml.parsers.ParserConfigurationException
- if any configuration error occur.
main
public static void main(java.lang.String[] args)
compile
public boolean compile()
getValidator
public StateMachineValidator getValidator()
- Returns:
- Validator. It may be used to subscribe to events.
validate
public void validate()
- Validate
StateMachine
.