gr.uoa.di.madgik.workflow.adaptor.utils.jdl
Class JDLParser

java.lang.Object
  extended by gr.uoa.di.madgik.workflow.adaptor.utils.jdl.JDLParser
All Implemented Interfaces:
IWorkflowParser

public class JDLParser
extends Object
implements IWorkflowParser

The JDLParser is an implementation of the IWorkflowParser that is capable of parsing a JDL description that formulates a job or a DAG of jobs. Depending on the type of the JDL, the actual parsing is forwarded to the two supporting parsers, JDLJobExtractor and JDLDAGExtractor.

Author:
gpapanikos

Field Summary
 ParsedJDLInfo Internal
          The information parsed
 
Constructor Summary
JDLParser()
           
 
Method Summary
 IParsedInfo GetParsedInfo()
          Retrieves the information parsed.
 void Parse(File serialization)
          Parses the string the workflow language that is contained in the provided file that the parser is implemented for
 void Parse(String serialization)
          Parses the string serialization of the workflow language that the parser is implemented for
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Internal

public ParsedJDLInfo Internal
The information parsed

Constructor Detail

JDLParser

public JDLParser()
Method Detail

Parse

public void Parse(File serialization)
           throws WorkflowSerializationException,
                  WorkflowValidationException
Description copied from interface: IWorkflowParser
Parses the string the workflow language that is contained in the provided file that the parser is implemented for

Specified by:
Parse in interface IWorkflowParser
Parameters:
serialization - The file containing the workflow description
Throws:
WorkflowSerializationException - Problem with the serialization of the provided workflow
WorkflowValidationException - Problem with the validity of some element

Parse

public void Parse(String serialization)
           throws WorkflowSerializationException,
                  WorkflowValidationException
Description copied from interface: IWorkflowParser
Parses the string serialization of the workflow language that the parser is implemented for

Specified by:
Parse in interface IWorkflowParser
Parameters:
serialization - the serialization of the workflow in some language
Throws:
WorkflowSerializationException - Problem with the serialization of the provided workflow
WorkflowValidationException - Problem with the validity of some element

GetParsedInfo

public IParsedInfo GetParsedInfo()
Description copied from interface: IWorkflowParser
Retrieves the information parsed. This method must be called after a call to one of IWorkflowParser.Parse(File) or IWorkflowParser.Parse(String)

Specified by:
GetParsedInfo in interface IWorkflowParser
Returns:
the parsed information


Copyright © 2013. All Rights Reserved.