|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.uoa.di.madgik.workflow.adaptor.utils.jdl.JDLParsingUtils
public class JDLParsingUtils
The Class JDLParsingUtils is a utility class used during the parsing of a jdl description
| Constructor Summary | |
|---|---|
JDLParsingUtils()
|
|
| Method Summary | |
|---|---|
static String |
GetDefinitionBlock(String val)
Retrieves the the next definition block contained in the provided value including all its internally contained definition blocks |
static Map<String,List<String>> |
GetDependencies(String dependencies)
Retrieves the dependencies list from the serialization of the respective DAG jdl attribute. |
static String |
GetKeyValue(Map<String,String> KeyValues,
ParsedJDLInfo.KnownKeys Key,
boolean mandatory)
Retrieves the value of the requested key |
static Map<String,String> |
GetKeyValues(String block)
Retrieves the attributes and the respective values that are defined for them within the provided definition block |
static boolean |
IsSandboxNameReference(String SandboxName)
|
static List<gr.uoa.di.madgik.execution.utils.EnvironmentKeyValue> |
ParseEnvironment(String val)
Parses the environment jdl attribute serialization |
static List<String> |
ParseSandbox(String val)
Parses a sandbox |
static String |
StripBrackets(String val)
Strip brackets |
static String |
StripComments(String val)
Strip comments. |
static String |
StripQuotes(String val)
Strip quotes. |
static String |
Trim(String val)
Trims the provided value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JDLParsingUtils()
| Method Detail |
|---|
public static boolean IsSandboxNameReference(String SandboxName)
public static String Trim(String val)
val - the value to trim
public static List<String> ParseSandbox(String val)
val - the sandbox serialization
public static List<gr.uoa.di.madgik.execution.utils.EnvironmentKeyValue> ParseEnvironment(String val)
val - the serialization
public static String StripBrackets(String val)
val - the string to strip the brackets from
public static String StripQuotes(String val)
val - the string to strip the quotes from
public static String StripComments(String val)
val - the value to remove the commented characters from
public static String GetDefinitionBlock(String val)
val - the value to retrieve the definition block from
public static Map<String,List<String>> GetDependencies(String dependencies)
dependencies - the dependencies serialization
public static Map<String,String> GetKeyValues(String block)
block - the definition block to parse
public static String GetKeyValue(Map<String,String> KeyValues,
ParsedJDLInfo.KnownKeys Key,
boolean mandatory)
throws WorkflowValidationException
KeyValues - the map containing the keys and values as returned by GetKeyValues(String)Key - the keymandatory - Whether the key is mandatory
WorkflowValidationException - In case the key is mandatory but it is not found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||