org.javasteps.parsers
Class ProcessParser
java.lang.Object
org.javasteps.parsers.ProcessParser
public class ProcessParser
- extends Object
The ProcessParser is used to parse process definition XML files.
This class is not thread-safe
- Version:
- 1.1
- Author:
- Ran Kornfeld
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static ProcessParser getInstance()
parseProcess
public ProcessImpl parseProcess(InputStream processFile)
throws ProcessParsingException
- Parse the process definition file and create a Process instance
- Parameters:
processFile
- InputStream of the process definition XML file
- Returns:
- The process instance
- Throws:
ProcessParsingException
- thrown on parsing errors
parseStepList
public void parseStepList(NodeList nl,
StepsList steps)
throws ProcessParsingException
- Throws:
ProcessParsingException
parseStep
public void parseStep(Element element,
StepsList steps)
throws ProcessParsingException
- Throws:
ProcessParsingException