Class 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 Detail

      • BuildContext

        public BuildContext()
    • 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 interface TypableVariable
        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.