public class JobParser
extends java.lang.Object
| Constructor and Description |
|---|
JobParser() |
| Modifier and Type | Method and Description |
|---|---|
Graph |
getGraph(java.lang.String jobSpecification)
Create a graph suitable for Flo to display.
|
java.lang.String |
getXML(java.lang.String batchJobId,
java.lang.String jobSpecification)
Create an XML representation of the JobSpec.
|
JobSpecification |
parse(java.lang.String jobSpecification)
Parse a job flow definition into an abstract syntax tree (AST).
|
java.lang.String |
toString()
Show the parsing progress in the output string.
|
public JobSpecification parse(java.lang.String jobSpecification)
jobSpecification - the textual job specificationJobSpecificationException - if any problems occur during parsingpublic Graph getGraph(java.lang.String jobSpecification)
jobSpecification - the textual definition of the specificationpublic java.lang.String getXML(java.lang.String batchJobId,
java.lang.String jobSpecification)
batchJobId - the id that will be inserted into the XML document for the batch:job elementjobSpecification - the textual definition of the specificationpublic java.lang.String toString()
toString in class java.lang.Object