com.atlassian.bamboo.build
Class VariableSubstitutionBeanImpl

java.lang.Object
  extended by com.atlassian.bamboo.build.VariableSubstitutionBeanImpl
All Implemented Interfaces:
VariableSubstitutionBean

Deprecated. since 3.1 use CustomVariableContext

@Deprecated
public class VariableSubstitutionBeanImpl
extends java.lang.Object
implements VariableSubstitutionBean

This bean is responsible for substituting BuildDefinition values with variables.


Constructor Summary
VariableSubstitutionBeanImpl(CustomVariableContext customVariableContext)
          Deprecated.  
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getVariables(BuildContext buildContext)
          Deprecated.  
 java.lang.String removeAllVariables(java.lang.String unparsedString)
          Deprecated. Remove all variables from unparsedString
 java.lang.String substituteBambooVariables(java.lang.String stringWithValuesToSubstitute)
          Deprecated. Takes a String to be parsed for variable references and substitutes with the variable values then returns the substituted string.
 java.lang.String[] substituteBambooVariables(java.lang.String[] stringWithValuesToSubstitute, BuildContext buildContext, BuildLogger buildLogger)
          Deprecated. Takes an array of Strings to be parsed for variable references and substitutes with the variable values then returns the substituted string If BuildContext is null only global variables, system variables and capabilities will be substituted.
 java.lang.String substituteBambooVariables(java.lang.String stringWithValuesToSubstitute, BuildContext buildContext, BuildLogger buildLogger)
          Deprecated. Takes a String to be parsed for variable references and substitutes with the variable values then returns the substituted string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableSubstitutionBeanImpl

public VariableSubstitutionBeanImpl(CustomVariableContext customVariableContext)
Deprecated. 
Method Detail

substituteBambooVariables

public java.lang.String substituteBambooVariables(@Nullable
                                                  java.lang.String stringWithValuesToSubstitute,
                                                  @Nullable
                                                  BuildContext buildContext,
                                                  @Nullable
                                                  BuildLogger buildLogger)
Deprecated. 
Description copied from interface: VariableSubstitutionBean
Takes a String to be parsed for variable references and substitutes with the variable values then returns the substituted string. If BuildContext is null only global variables, system variables and capabilities will be substituted.

Specified by:
substituteBambooVariables in interface VariableSubstitutionBean
Parameters:
stringWithValuesToSubstitute - - to substitute
buildContext - - associated with the command line
buildLogger - - for logging messages to get logged to.
Returns:
string

substituteBambooVariables

@Nullable
public java.lang.String substituteBambooVariables(@Nullable
                                                           java.lang.String stringWithValuesToSubstitute)
Deprecated. 
Description copied from interface: VariableSubstitutionBean
Takes a String to be parsed for variable references and substitutes with the variable values then returns the substituted string. Only global variables, system variables and capabilities will be substituted.

Specified by:
substituteBambooVariables in interface VariableSubstitutionBean
Parameters:
stringWithValuesToSubstitute - - to substitute
Returns:
string

substituteBambooVariables

public java.lang.String[] substituteBambooVariables(java.lang.String[] stringWithValuesToSubstitute,
                                                    @Nullable
                                                    BuildContext buildContext,
                                                    @Nullable
                                                    BuildLogger buildLogger)
Deprecated. 
Description copied from interface: VariableSubstitutionBean
Takes an array of Strings to be parsed for variable references and substitutes with the variable values then returns the substituted string If BuildContext is null only global variables, system variables and capabilities will be substituted.

Specified by:
substituteBambooVariables in interface VariableSubstitutionBean
Parameters:
stringWithValuesToSubstitute - - to substitute
Returns:
string

getVariables

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getVariables(@Nullable
                                                                             BuildContext buildContext)
Deprecated. 
Specified by:
getVariables in interface VariableSubstitutionBean

removeAllVariables

public java.lang.String removeAllVariables(@NotNull
                                           java.lang.String unparsedString)
Deprecated. 
Description copied from interface: VariableSubstitutionBean
Remove all variables from unparsedString

Specified by:
removeAllVariables in interface VariableSubstitutionBean
Returns:


Copyright © 2011 Atlassian. All Rights Reserved.