public class VariableUtils extends Object
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<VariableUsage> |
findVariableUsages(String text)
Finds all variable usages within a given text.
|
static Map<String,VariableDefinitionContext> |
identifiersToContextMap(Iterable<? extends VariableDefinitionIdentifier> ids) |
public static Map<String,VariableDefinitionContext> identifiersToContextMap(@NotNull Iterable<? extends VariableDefinitionIdentifier> ids)
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<VariableUsage> findVariableUsages(@NotNull String text)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.