Class DataCollectionNodeExpressionsGrammar

java.lang.Object
overit.geocallapp.wfm.core.bl.datacollection.node.expressions.grammar.DataCollectionNodeExpressionsGrammar

public class DataCollectionNodeExpressionsGrammar extends Object
The Class that defines the data collection node expressions grammar.
Since:
12.0
  • Field Details

  • Constructor Details

    • DataCollectionNodeExpressionsGrammar

      public DataCollectionNodeExpressionsGrammar()
  • Method Details

    • addKeyword

      public void addKeyword(DataCollectionNodeExpressionsGrammarKeyword keyword)
      Adds keyword.
      Parameters:
      keyword - the keyword
    • getKeyword

      public DataCollectionNodeExpressionsGrammarKeyword getKeyword(String keywordName)
      Returns the keyword.
      Parameters:
      keywordName - the keyword name
      Returns:
      the keyword
    • hasKeyword

      public boolean hasKeyword(String keywordName)
      Checks if it has keyword.
      Parameters:
      keywordName - the keyword name
      Returns:
      true, if successful
    • getKeywords

      Returns the keywords.
      Returns:
      the keywords
    • getReferencedKeywordNames

      public static Set<String> getReferencedKeywordNames(String expression)
      Returns the referenced keyword names.
      Parameters:
      expression - the expression
      Returns:
      the referenced keyword names
    • getReferencedTokens

      public static Set<DataCollectionNodeExpressionsToken> getReferencedTokens(String expression)
      Returns the referenced tokens.
      Parameters:
      expression - the expression
      Returns:
      the referenced tokens
    • isKeywordNameValid

      public static boolean isKeywordNameValid(String keywordName)
      Checks if the keyword name is valid.
      Parameters:
      keywordName - the keyword name
      Returns:
      true, if is keyword name valid
    • isNodeCodeValid

      public static boolean isNodeCodeValid(String nodeCode)
      Checks if node code is valid.
      Parameters:
      nodeCode - the node code
      Returns:
      true, if is node code valid