Class PomModuleDescriptorWriter.IvyVariableContainerWrapper

  • All Implemented Interfaces:
    java.lang.Cloneable, IvyVariableContainer
    Enclosing class:
    PomModuleDescriptorWriter

    private static final class PomModuleDescriptorWriter.IvyVariableContainerWrapper
    extends java.lang.Object
    implements IvyVariableContainer
    Wraps an IvyVariableContainer delegating most method calls to the wrapped instance, except for a set of variables which are only stored locally in the wrapper, and not propagated to the wrapped instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      java.lang.String getVariable​(java.lang.String name)  
      void setEnvironmentPrefix​(java.lang.String prefix)
      Specifies the prefix used to indicate a variable is an environment variable.
      void setVariable​(java.lang.String varName, java.lang.String value, boolean overwrite)  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • localVariables

        private java.util.Map<java.lang.String,​java.lang.String> localVariables
    • Constructor Detail

      • IvyVariableContainerWrapper

        private IvyVariableContainerWrapper​(IvyVariableContainer variables)
    • Method Detail

      • setVariable

        public void setVariable​(java.lang.String varName,
                                java.lang.String value,
                                boolean overwrite)
        Specified by:
        setVariable in interface IvyVariableContainer
      • setEnvironmentPrefix

        public void setEnvironmentPrefix​(java.lang.String prefix)
        Description copied from interface: IvyVariableContainer
        Specifies the prefix used to indicate a variable is an environment variable. If the prefix doesn't end with a '.', it will be added automatically.
        Specified by:
        setEnvironmentPrefix in interface IvyVariableContainer
        Parameters:
        prefix - the prefix to use for the environment variables
      • clone

        public java.lang.Object clone()
        Specified by:
        clone in interface IvyVariableContainer
        Overrides:
        clone in class java.lang.Object