com.atlassian.bamboo.variable
Class CustomVariableContextImpl

java.lang.Object
  extended by com.atlassian.bamboo.variable.CustomVariableContextImpl
All Implemented Interfaces:
CustomVariableContext

public class CustomVariableContextImpl
extends java.lang.Object
implements CustomVariableContext


Constructor Summary
CustomVariableContextImpl()
           
 
Method Summary
 void addCustomData(java.lang.String key, java.lang.String value)
           
 void clearContext()
           
 java.util.Map<java.lang.String,VariableSubstitutionContext> getSubstitutedVariables()
           
 java.util.Map<java.lang.String,java.lang.String> getVariables(BuildContext buildContext)
           
 java.lang.String removeAllVariables(java.lang.String value)
          Given a string array, remove all variable patterns.
 void setBuildContext(BuildContext buildContext)
           
 void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
           
 void setCapabilityContext(CapabilityContext capabilityContext)
           
 void setPlan(Plan plan, java.util.Map<java.lang.String,VariableDefinitionContext> variablesContextMap)
           
 void setVariables(java.util.Map<java.lang.String,VariableDefinitionContext> variablesContextMap)
           
 java.lang.String substituteString(java.lang.String value)
           
 java.lang.String substituteString(java.lang.String value, BuildContext buildContext, BuildLogger buildLogger)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomVariableContextImpl

public CustomVariableContextImpl()
Method Detail

setPlan

public void setPlan(@NotNull
                    Plan plan,
                    @Nullable
                    java.util.Map<java.lang.String,VariableDefinitionContext> variablesContextMap)
Specified by:
setPlan in interface CustomVariableContext

setVariables

public void setVariables(java.util.Map<java.lang.String,VariableDefinitionContext> variablesContextMap)
Specified by:
setVariables in interface CustomVariableContext

setBuildContext

public void setBuildContext(BuildContext buildContext)
Specified by:
setBuildContext in interface CustomVariableContext

clearContext

public void clearContext()
Specified by:
clearContext in interface CustomVariableContext

getSubstitutedVariables

@NotNull
public java.util.Map<java.lang.String,VariableSubstitutionContext> getSubstitutedVariables()
Specified by:
getSubstitutedVariables in interface CustomVariableContext

addCustomData

public void addCustomData(java.lang.String key,
                          java.lang.String value)
Specified by:
addCustomData in interface CustomVariableContext

substituteString

public java.lang.String substituteString(java.lang.String value)
Specified by:
substituteString in interface CustomVariableContext

substituteString

public java.lang.String substituteString(java.lang.String value,
                                         @Nullable
                                         BuildContext buildContext,
                                         BuildLogger buildLogger)
Specified by:
substituteString in interface CustomVariableContext

removeAllVariables

@NotNull
public java.lang.String removeAllVariables(@NotNull
                                                   java.lang.String value)
Given a string array, remove all variable patterns.

Specified by:
removeAllVariables in interface CustomVariableContext
Parameters:
value - string values to be analyzed
Returns:
value with variables removed

getVariables

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

setBuildLoggerManager

public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)

setCapabilityContext

public void setCapabilityContext(CapabilityContext capabilityContext)


Copyright © 2011 Atlassian. All Rights Reserved.