Purple Code

com.purpletech.util
Class Parameters

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--com.purpletech.util.Parameters
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class Parameters
extends java.util.Properties

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
Parameters()
           
Parameters(java.util.Properties p)
           
Parameters(java.util.Properties p, java.lang.String[][] defaults)
           
Parameters(java.lang.String[][] defaults)
           
 
Method Summary
 void addFrom(java.util.Dictionary d)
           
 void addFrom(java.util.Dictionary d, java.lang.String prefix)
           
 void addTo(java.util.Dictionary d)
           
 void addTo(java.util.Dictionary d, java.lang.String prefix)
           
 void addValues(java.lang.String[][] values)
          The default values are specified as an array of string pairs, as in:
 java.util.Properties getDefaults()
           
static void main(java.lang.String[] args)
           
 void setDefaults(java.util.Properties p)
           
 
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
 

Constructor Detail

Parameters

public Parameters()

Parameters

public Parameters(java.util.Properties p)

Parameters

public Parameters(java.lang.String[][] defaults)

Parameters

public Parameters(java.util.Properties p,
                  java.lang.String[][] defaults)
Method Detail

setDefaults

public void setDefaults(java.util.Properties p)

getDefaults

public java.util.Properties getDefaults()

addValues

public void addValues(java.lang.String[][] values)
The default values are specified as an array of string pairs, as in:

String[][] defaults = { { "name", "Fred" }, { "age", "12" } };


addTo

public void addTo(java.util.Dictionary d)

addTo

public void addTo(java.util.Dictionary d,
                  java.lang.String prefix)

addFrom

public void addFrom(java.util.Dictionary d)

addFrom

public void addFrom(java.util.Dictionary d,
                    java.lang.String prefix)

main

public static void main(java.lang.String[] args)

Documentation generated March 5 2003