tassl.workflow
Class WorkflowXMLParser
java.lang.Object
tassl.workflow.WorkflowXMLParser
public class WorkflowXMLParser
- extends java.lang.Object
Method Summary |
static boolean |
checkIfInnerLoop(java.lang.String loopIdInner,
java.lang.String loopIdOuter,
java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> loops)
Check if a loop is inside another. |
static java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> |
createNestedLoopInfo(java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> loops)
|
static Workflow |
docToWorkflow(org.w3c.dom.Document doc)
|
static java.util.List<java.lang.String> |
findLoopPath(java.lang.String from,
java.lang.String to,
java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> forwardList)
|
static void |
main(java.lang.String[] args)
|
static Workflow |
XMLParser(java.io.File xmlFile)
|
static Workflow |
XMLParser(java.lang.String xmlString)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkflowXMLParser
public WorkflowXMLParser()
XMLParser
public static Workflow XMLParser(java.lang.String xmlString)
XMLParser
public static Workflow XMLParser(java.io.File xmlFile)
docToWorkflow
public static Workflow docToWorkflow(org.w3c.dom.Document doc)
createNestedLoopInfo
public static java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> createNestedLoopInfo(java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> loops)
checkIfInnerLoop
public static boolean checkIfInnerLoop(java.lang.String loopIdInner,
java.lang.String loopIdOuter,
java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> loops)
- Check if a loop is inside another. Loop A (loopIdInner) is inside
of a loop B (loopIdOuter) if all stages of A are in the path of loop B
- Parameters:
loopIdInner
- loopIdOuter
- loops
-
- Returns:
findLoopPath
public static java.util.List<java.lang.String> findLoopPath(java.lang.String from,
java.lang.String to,
java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> forwardList)
main
public static void main(java.lang.String[] args)