Class VariablePatternVerifier
- java.lang.Object
-
- com.parasoft.findings.jenkins.internal.variables.VariablePatternVerifier
-
public class VariablePatternVerifier extends Object
Checks variables for correctness.
-
-
Constructor Summary
Constructors Constructor Description VariablePatternVerifier(String pattern)
Create verifier for given pattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkVariableNotation()
boolean
containsVariables()
-
-
-
Constructor Detail
-
VariablePatternVerifier
public VariablePatternVerifier(String pattern)
Create verifier for given pattern.- Parameters:
pattern
- the pattern to verify
-
-
Method Detail
-
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()
.
-
-