com.izforge.izpack.installer
Class VariableValueMapImpl

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended bycom.izforge.izpack.installer.VariableValueMapImpl
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable, VariableValueMap

public final class VariableValueMapImpl
extends java.util.Properties
implements VariableValueMap

A Properties based implementation for VariableValueMap interface.

Author:
Johannes Lehtinen
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Hashtable
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Fields inherited from class java.util.Hashtable
 
Constructor Summary
VariableValueMapImpl()
           
 
Method Summary
 java.lang.String getVariable(java.lang.String var)
          Returns the current value for the specified variable.
 void setVariable(java.lang.String var, java.lang.String val)
          Sets a new value for the specified variable.
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

VariableValueMapImpl

public VariableValueMapImpl()
Method Detail

getVariable

public java.lang.String getVariable(java.lang.String var)
Returns the current value for the specified variable.

Specified by:
getVariable in interface VariableValueMap
Parameters:
var - the name of the variable
Returns:
the current value or null if not set

setVariable

public void setVariable(java.lang.String var,
                        java.lang.String val)
Sets a new value for the specified variable.

Specified by:
setVariable in interface VariableValueMap
Parameters:
var - the name of the variable
val - the new value for the variable