|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.build.AbstractSubstitutionBean
com.atlassian.bamboo.build.VariableSubstitutionBeanImpl
public class VariableSubstitutionBeanImpl
This bean is responsible for substituting BuildDefinition
values with variables.
Constructor Summary | |
---|---|
VariableSubstitutionBeanImpl(VariableBuilderBean variableBuilderBean)
|
Method Summary | |
---|---|
VariableBuilderBean |
getVariableBuilderBean()
|
java.util.Map<java.lang.String,java.lang.String> |
getVariables(BuildContext buildContext)
|
java.lang.String |
removeAllVariables(java.lang.String unparsedString)
Remove all variables from unparsedString |
java.lang.String |
substituteBambooVariables(java.lang.String stringWithValuesToSubstitute)
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)
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)
Takes a String to be parsed for variable references and substitutes with the variable values then returns the substituted string. |
Methods inherited from class com.atlassian.bamboo.build.AbstractSubstitutionBean |
---|
findAllVariables, removeAllVariables, substituteVariables |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariableSubstitutionBeanImpl(VariableBuilderBean variableBuilderBean)
Method Detail |
---|
public VariableBuilderBean getVariableBuilderBean()
public java.lang.String substituteBambooVariables(@Nullable java.lang.String stringWithValuesToSubstitute, @Nullable BuildContext buildContext, BuildLogger buildLogger)
VariableSubstitutionBean
stringWithValuesToSubstitute
- - to substitutebuildContext
- - associated with the command linebuildLogger
- - for logging messages to get logged to.
@Nullable public java.lang.String substituteBambooVariables(@Nullable java.lang.String stringWithValuesToSubstitute)
VariableSubstitutionBean
stringWithValuesToSubstitute
- - to substitute
public java.lang.String[] substituteBambooVariables(java.lang.String[] stringWithValuesToSubstitute, @Nullable BuildContext buildContext, @Nullable BuildLogger buildLogger)
VariableSubstitutionBean
stringWithValuesToSubstitute
- - to substitute
@NotNull public java.util.Map<java.lang.String,java.lang.String> getVariables(@Nullable BuildContext buildContext)
VariableBuilderBean.getVariables(BuildContext)
public java.lang.String removeAllVariables(@NotNull java.lang.String unparsedString)
VariableSubstitutionBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |