org.javasteps.parsers
Class ProcessParser

java.lang.Object
  extended by 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

Method Summary
static ProcessParser getInstance()
           
 ProcessImpl parseProcess(InputStream processFile)
          Parse the process definition file and create a Process instance
 void parseStep(Element element, StepsList steps)
           
 void parseStepList(NodeList nl, StepsList steps)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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