dsto.dfc.collections
Class PropertySets

java.lang.Object
  extended by dsto.dfc.collections.PropertySets

public final class PropertySets
extends Object

Support for PropertySet's.

Version:
$Revision$

Method Summary
static Object getPropertyValue(PropertySet set1, PropertySet set2, String propertyName)
          Get a value from a property set, returning the default value in a second set if none exists in first the set (ie second set contains default values for the first).
static Object getPropertyValue(PropertySet set, String propertyName, Object defaultValue)
          Get a value from a property set, returning a default value if none exists in the set.
static PropertySet unmodifiablePropertySet(PropertySet propertySet)
          Return an instance of a property set that cannot be modified.
static void xmlOutput(OutputStream stream, PropertySet set)
           
static void xmlOutput(PrintWriter writer, PropertySet set)
          Print a PropertySet in XML form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPropertyValue

public static Object getPropertyValue(PropertySet set,
                                      String propertyName,
                                      Object defaultValue)
Get a value from a property set, returning a default value if none exists in the set.


getPropertyValue

public static Object getPropertyValue(PropertySet set1,
                                      PropertySet set2,
                                      String propertyName)
Get a value from a property set, returning the default value in a second set if none exists in first the set (ie second set contains default values for the first).


unmodifiablePropertySet

public static PropertySet unmodifiablePropertySet(PropertySet propertySet)
Return an instance of a property set that cannot be modified.


xmlOutput

public static void xmlOutput(OutputStream stream,
                             PropertySet set)

xmlOutput

public static void xmlOutput(PrintWriter writer,
                             PropertySet set)
Print a PropertySet in XML form. No quoting of values is done, so XML is not guaranteed to be well-formed.



Copyright © 2008 Commonwealth of Australia