Class VariablePatternVerifier

java.lang.Object
com.parasoft.findings.jenkins.internal.variables.VariablePatternVerifier

public class VariablePatternVerifier extends Object
Checks variables for correctness.
  • Constructor Details

    • VariablePatternVerifier

      public VariablePatternVerifier(String pattern)
      Create verifier for given pattern.
      Parameters:
      pattern - the pattern to verify
  • Method Details

    • containsVariables

      public boolean containsVariables()
      Returns:
      true if pattern contains variable in any of notations ('%' or '$' based).
    • checkVariableNotation

      public boolean checkVariableNotation()
      Returns:
      false if variables seem to be incorrectly specified, or unsupported variable is used. True if there are no variables or they are all recognized. See also JenkinsVariablesResolver.getResolvableVariables().