Package de.hshannover.dqgui.core.util
Class ParserTools
- java.lang.Object
-
- de.hshannover.dqgui.core.util.ParserTools
-
public class ParserTools extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ParserTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.String>extractActionValues(java.lang.String actionSourcecode)Extract 'value' roles from actionstatic java.util.Map<DSLComponentType,java.util.Map<java.lang.String,java.lang.String>>extractDependencies(java.lang.String actionName, java.lang.String actionSource, RuleService service)Extract dependencies from action for remote jobsstatic java.util.List<java.lang.String>extractIdentifier(java.lang.String actionSourcecode, RuleService service)extract identifiers from all sources linked from the action
-
-
-
Method Detail
-
extractActionValues
public static java.util.List<java.lang.String> extractActionValues(java.lang.String actionSourcecode)
Extract 'value' roles from action- Parameters:
actionSourcecode- to extract from- Returns:
- list of extracted 'value' roles
-
extractIdentifier
public static java.util.List<java.lang.String> extractIdentifier(java.lang.String actionSourcecode, RuleService service) throws Iqm4hdExceptionextract identifiers from all sources linked from the action- Parameters:
actionSourcecode- source of actionservice- service to lookup sources- Returns:
- list of extracted identifiers from all sources
- Throws:
Iqm4hdException- if identifier could not be resolved
-
extractDependencies
public static java.util.Map<DSLComponentType,java.util.Map<java.lang.String,java.lang.String>> extractDependencies(java.lang.String actionName, java.lang.String actionSource, RuleService service) throws Iqm4hdException
Extract dependencies from action for remote jobs- Parameters:
actionName- name of root actionactionSource- source of root actionservice- to use for lookup- Returns:
- mapping type : [ identifier : source [
- Throws:
Iqm4hdException- if identifier could not be resolved
-
-