Package org.apache.ivy.core.settings
Class XmlSettingsParser.IvyVariableContainerWrapper
java.lang.Object
org.apache.ivy.core.settings.XmlSettingsParser.IvyVariableContainerWrapper
- All Implemented Interfaces:
Cloneable
,IvyVariableContainer
- Enclosing class:
- XmlSettingsParser
private static final class XmlSettingsParser.IvyVariableContainerWrapper
extends 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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String>
private final IvyVariableContainer
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
IvyVariableContainerWrapper
(IvyVariableContainer variables) -
Method Summary
Modifier and TypeMethodDescriptionclone()
getVariable
(String name) void
setEnvironmentPrefix
(String prefix) Specifies the prefix used to indicate a variable is an environment variable.void
setVariable
(String varName, String value, boolean overwrite)
-
Field Details
-
SETTINGS_VARIABLES
-
variables
-
localVariables
-
-
Constructor Details
-
IvyVariableContainerWrapper
-
-
Method Details
-
setVariable
- Specified by:
setVariable
in interfaceIvyVariableContainer
-
setEnvironmentPrefix
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 interfaceIvyVariableContainer
- Parameters:
prefix
- the prefix to use for the environment variables
-
getVariable
- Specified by:
getVariable
in interfaceIvyVariableContainer
-
clone
- Specified by:
clone
in interfaceIvyVariableContainer
- Overrides:
clone
in classObject
-