Class 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 action
      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)
      Extract dependencies from action for remote jobs
      static java.util.List<java.lang.String> extractIdentifier​(java.lang.String actionSourcecode, RuleService service)
      extract identifiers from all sources linked from the action
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ParserTools

        public ParserTools()
    • 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 Iqm4hdException
        extract identifiers from all sources linked from the action
        Parameters:
        actionSourcecode - source of action
        service - 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 action
        actionSource - source of root action
        service - to use for lookup
        Returns:
        mapping type : [ identifier : source [
        Throws:
        Iqm4hdException - if identifier could not be resolved