public final class VariableUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VariableUtils.VariableUsage |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsVariableUsage(String text)
Returns true if the given text contains variable usages from any namespace.
|
static List<VariableUtils.VariableUsage> |
findVariableUsages(String text)
Finds all variable usages within a given text.
|
static boolean |
isPasswordVariable(String variableKey) |
public static boolean containsVariableUsage(@NotNull 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}
text
- text to verify@NotNull public static List<VariableUtils.VariableUsage> findVariableUsages(@NotNull String text)
public static boolean isPasswordVariable(@NotNull String variableKey)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.