com.atlassian.bamboo.variable
Class VariableUtils

java.lang.Object
  extended by com.atlassian.bamboo.variable.VariableUtils

public class VariableUtils
extends Object


Method Summary
static boolean containsVariableUsage(String text)
          Returns true if the given text contains variable usages from any namespace.
static Map<String,VariableDefinitionContext> identifiersToContextMap(Iterable<? extends VariableDefinitionIdentifier> input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

identifiersToContextMap

public static Map<String,VariableDefinitionContext> identifiersToContextMap(@NotNull
                                                                            Iterable<? extends VariableDefinitionIdentifier> input)

containsVariableUsage

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}
 

Parameters:
text - text to verify
Returns:
true, if text contains variable usages, false otherwise


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.