Package com.ibm.dbb.task
Class BuildContext
- java.lang.Object
-
- com.ibm.dbb.task.BuildContext
-
- All Implemented Interfaces:
TypableVariable
public class BuildContext extends java.lang.Object implements TypableVariable
BuildContext stores zBuilder configuration variables which provide context between tasks.
-
-
Constructor Summary
Constructors Constructor Description BuildContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(java.lang.String key)
Returns true if this BuildContext contains a value for the specified key.java.lang.Object
getVariable(java.lang.String key)
Retrieves the first match for the specified key or null if there is no match found.void
setVariable(java.lang.String key, java.lang.Object value)
Set a key/value pair within the BuildContext.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.dbb.task.variables.TypableVariable
getBooleanVariable, getBooleanVariable, getBuildGroup, getBuildResult, getCommandLine, getDoubleVariable, getDoubleVariable, getIntegerVariable, getIntegerVariable, getListStringVariable, getListStringVariable, getListVariable, getListVariable, getMapVariable, getMapVariable, getSetStringVariable, getSetStringVariable, getSetVariable, getStringVariable, getStringVariable
-
-
-
-
Method Detail
-
getVariable
public java.lang.Object getVariable(java.lang.String key)
Description copied from interface:TypableVariable
Retrieves the first match for the specified key or null if there is no match found.- Specified by:
getVariable
in interfaceTypableVariable
- Parameters:
key
- the key to match.- Returns:
- Object or null if no match is found.
-
contains
public boolean contains(java.lang.String key)
Returns true if this BuildContext contains a value for the specified key.- Parameters:
key
- key whose presence in this BuildContext is to be tested.- Returns:
- true if this BuildContext contains a value for the specified key.
-
setVariable
public void setVariable(java.lang.String key, java.lang.Object value)
Set a key/value pair within the BuildContext.- Parameters:
key
- key with which the specified value is to be associated.value
- value to be associated with the specified key.
-
-