com.waveset.util
Class NamedValue

java.lang.Object
  extended bycom.waveset.util.AbstractXmlObject
      extended bycom.waveset.util.NamedValue
All Implemented Interfaces:
javax.naming.Referenceable, XmlObject

public class NamedValue
extends AbstractXmlObject

A named value, where the name is a String. Convenient for when you want a method to return a named value. Since NamedValue implements XmlObject, objects of this type can be safely used in a workflow.


Field Summary
static java.lang.String ELEMENT
          XmlObject element name.
 
Fields inherited from class com.waveset.util.AbstractXmlObject
_trace, code_id
 
Constructor Summary
NamedValue()
           
NamedValue(org.w3c.dom.Element e)
           
NamedValue(java.lang.String name, java.lang.Object value)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getElementName()
          Return the element name.
 java.lang.String getName()
           
 java.lang.Object getValue()
           
 int hashCode()
           
 void parseXml(org.w3c.dom.Element e)
           
 void setName(java.lang.String name)
           
 void setValue(java.lang.Object value)
           
 java.lang.String toString()
           
 void toXml(java.lang.StringBuffer b, int indent)
          Serialize into a buffer with optional indentation.
 
Methods inherited from class com.waveset.util.AbstractXmlObject
addXmlHeader, cloneObject, dump, dumpFile, getReference, println, setTrace, toIdentityString, toVerboseString, toVerboseString, toXml, toXml, toXml
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ELEMENT

public static final java.lang.String ELEMENT
XmlObject element name.

See Also:
Constant Field Values
Constructor Detail

NamedValue

public NamedValue()

NamedValue

public NamedValue(java.lang.String name,
                  java.lang.Object value)

NamedValue

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

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getValue

public java.lang.Object getValue()

setValue

public void setValue(java.lang.Object value)

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object o)

toString

public java.lang.String toString()

getElementName

public java.lang.String getElementName()
Description copied from class: AbstractXmlObject
Return the element name.

Specified by:
getElementName in interface XmlObject
Specified by:
getElementName in class AbstractXmlObject

toXml

public void toXml(java.lang.StringBuffer b,
                  int indent)
Description copied from class: AbstractXmlObject
Serialize into a buffer with optional indentation. This must be implemented by the subclass.

Specified by:
toXml in interface XmlObject
Specified by:
toXml in class AbstractXmlObject

parseXml

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