com.waveset.object
Class PropertyList

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended bycom.waveset.object.PropertyList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable, XmlObject

public class PropertyList
extends java.util.Properties
implements XmlObject

See Also:
Serialized Form

Field Summary
static java.lang.String ATT_NAME
           
static java.lang.String ATT_VALUE
           
static java.lang.String code_id
           
static java.lang.String EL_PROPERTY
           
static java.lang.String ELEMENT
          The name of the default XML element used when serializing this object.
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
PropertyList()
           
PropertyList(org.w3c.dom.Element e)
           
PropertyList(GenericObject geo)
           
PropertyList(java.util.Properties p)
          Construct a PropertyList from an instance of java.util.Properties.
 
Method Summary
 boolean getBoolean(java.lang.String name)
           
 java.lang.String getElementName()
          Objects must provide the name of the XML element that will be used in their serialized representation.
 int getInt(java.lang.String name)
           
 int getInt(java.lang.String name, int dflt)
           
 java.util.List getList(java.lang.String name)
           
 java.lang.String getString(java.lang.String name)
           
 void parseXml(org.w3c.dom.Element e)
           
 java.lang.String toXml()
          Objects must be able to render themselves as valid XML documents including a header and DOCTYPE.
 void toXml(java.lang.StringBuffer b, int indent)
          Objects must be able to render themselves as XML into a string buffer, with an optional amount of indentation.
 void toXml(java.lang.StringBuffer b, int indent, java.lang.String wrapper)
           
 
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
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

ELEMENT

public static final java.lang.String ELEMENT
The name of the default XML element used when serializing this object.

See Also:
Constant Field Values

EL_PROPERTY

public static final java.lang.String EL_PROPERTY
See Also:
Constant Field Values

ATT_NAME

public static final java.lang.String ATT_NAME
See Also:
Constant Field Values

ATT_VALUE

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

PropertyList

public PropertyList()

PropertyList

public PropertyList(java.util.Properties p)
Construct a PropertyList from an instance of java.util.Properties.


PropertyList

public PropertyList(GenericObject geo)

PropertyList

public PropertyList(org.w3c.dom.Element e)
             throws WavesetException
Method Detail

getElementName

public java.lang.String getElementName()
Description copied from interface: XmlObject
Objects must provide the name of the XML element that will be used in their serialized representation.

Specified by:
getElementName in interface XmlObject
Returns:
the element name

getString

public java.lang.String getString(java.lang.String name)

getList

public java.util.List getList(java.lang.String name)

getBoolean

public boolean getBoolean(java.lang.String name)

getInt

public int getInt(java.lang.String name,
                  int dflt)

getInt

public int getInt(java.lang.String name)

toXml

public java.lang.String toXml()
Description copied from interface: XmlObject
Objects must be able to render themselves as valid XML documents including a header and DOCTYPE. Normally this is implemented by AbstractXmlObject, which also provides a static implementation toXml(XmlObject) which may be called from classes that must implement this interface.

Specified by:
toXml in interface XmlObject
Returns:
the string representation of this object

parseXml

public void parseXml(org.w3c.dom.Element e)
              throws WavesetException
Throws:
WavesetException

toXml

public void toXml(java.lang.StringBuffer b,
                  int indent)
Description copied from interface: XmlObject
Objects must be able to render themselves as XML into a string buffer, with an optional amount of indentation. This rendering should not include an XML header or DOCTYPE. The indentation count should be handled by XmlUtil.addIndent so we can globally turn indentation on or off.

Specified by:
toXml in interface XmlObject
Parameters:
b - target buffer
indent - amount of indentation

toXml

public void toXml(java.lang.StringBuffer b,
                  int indent,
                  java.lang.String wrapper)