Class VariableUtils
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.util.VariableUtils
-
public final class VariableUtils extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVariableUtils.VariableUsage
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancontainsVariableUsage(@NotNull java.lang.String text)Returns true if the given text contains variable usages from any namespace.static @NotNull java.util.List<VariableUtils.VariableUsage>findVariableUsages(@NotNull java.lang.String text)Finds all variable usages within a given text.static booleanisPasswordVariable(@NotNull java.lang.String variableKey)
-
-
-
Method Detail
-
containsVariableUsage
public static boolean containsVariableUsage(@NotNull @NotNull java.lang.String text)Returns true if the given text contains variable usages from any namespace.
Variable usage consists of variable name, preceded by the namespace (usually "bamboo"), put between "${" and "}".
Example variable usages:- ${bamboo.my.custom.variable} - ${bamboo.functionalTestOptions} - ${system.M2_HOME}- Parameters:
text- text to verify- Returns:
- true, if text contains variable usages, false otherwise
-
findVariableUsages
@NotNull public static @NotNull java.util.List<VariableUtils.VariableUsage> findVariableUsages(@NotNull @NotNull java.lang.String text)
Finds all variable usages within a given text.
-
isPasswordVariable
public static boolean isPasswordVariable(@NotNull @NotNull java.lang.String variableKey)
-
-