org.jostraca.util
Class OrderedPropertySetManager

java.lang.Object
  extended byorg.jostraca.util.PropertySetManager
      extended byorg.jostraca.util.OrderedPropertySetManager

public class OrderedPropertySetManager
extends PropertySetManager

Maintain an ordered list of named PropertySets.


Nested Class Summary
 
Nested classes inherited from class org.jostraca.util.PropertySetManager
PropertySetManager.Mode
 
Field Summary
static java.lang.String CN
           
 
Fields inherited from class org.jostraca.util.PropertySetManager
FILE_MUST_EXIST, USE_DEFAULT_IF_FILE_DOES_NOT_EXIST
 
Constructor Summary
OrderedPropertySetManager()
           
OrderedPropertySetManager(java.util.List pNames, java.util.Map pDefaults)
          Provide ordered list of allowed names in Vector.
 
Method Summary
 void add(java.lang.String pName, PropertySet pPropertySet)
           
 PropertySet get(java.lang.String pName)
          get a named PropertySet
 PropertySet load(java.lang.String pName, java.io.File pFile, PropertySetManager.Mode pMode)
           
 PropertySet merge()
          Merge ordered PropertySets, earlier entries overwritten by later entries.
 void put(java.lang.String pName, PropertySet pPropertySet)
          add a named PropertySet
 PropertySet remove(java.lang.String pName)
          remove a named PropertySet
 java.lang.String trace(java.lang.String pName)
          Trace definition of a property through contained PropertySets.
 
Methods inherited from class org.jostraca.util.PropertySetManager
listNames, load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CN

public static final java.lang.String CN
See Also:
Constant Field Values
Constructor Detail

OrderedPropertySetManager

public OrderedPropertySetManager()

OrderedPropertySetManager

public OrderedPropertySetManager(java.util.List pNames,
                                 java.util.Map pDefaults)
Provide ordered list of allowed names in Vector. Provide defaults in Hashtable: keys must be Strings, values must be PropertySets

Method Detail

load

public PropertySet load(java.lang.String pName,
                        java.io.File pFile,
                        PropertySetManager.Mode pMode)
Overrides:
load in class PropertySetManager

add

public void add(java.lang.String pName,
                PropertySet pPropertySet)

put

public void put(java.lang.String pName,
                PropertySet pPropertySet)
Description copied from class: PropertySetManager
add a named PropertySet

Overrides:
put in class PropertySetManager

get

public PropertySet get(java.lang.String pName)
Description copied from class: PropertySetManager
get a named PropertySet

Overrides:
get in class PropertySetManager

remove

public PropertySet remove(java.lang.String pName)
Description copied from class: PropertySetManager
remove a named PropertySet

Overrides:
remove in class PropertySetManager

merge

public PropertySet merge()
Merge ordered PropertySets, earlier entries overwritten by later entries.


trace

public java.lang.String trace(java.lang.String pName)
Trace definition of a property through contained PropertySets.



Copyright © 2000-2002 Richard Rodger