public class JDLParsingUtils extends Object
| Constructor and Description |
|---|
JDLParsingUtils() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static boolean IsSandboxNameReference(String SandboxName)
public static String Trim(String val)
val - the value to trimpublic static List<String> ParseSandbox(String val)
val - the sandbox serializationpublic static List<gr.uoa.di.madgik.execution.utils.EnvironmentKeyValue> ParseEnvironment(String val)
val - the serializationpublic static String StripBrackets(String val)
val - the string to strip the brackets frompublic static String StripQuotes(String val)
val - the string to strip the quotes frompublic static String StripComments(String val)
val - the value to remove the commented characters frompublic static String GetDefinitionBlock(String val)
val - the value to retrieve the definition block frompublic static Map<String,List<String>> GetDependencies(String dependencies)
dependencies - the dependencies serializationpublic static Map<String,String> GetKeyValues(String block)
block - the definition block to parsepublic 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 mandatoryWorkflowValidationException - In case the key is mandatory but it is not foundCopyright © 2014. All Rights Reserved.