com.webmethods.caf.portalclient.util
Class NamedValue

java.lang.Object
  extended by com.webmethods.caf.portalclient.util.NamedValue
All Implemented Interfaces:
Comparable

public class NamedValue
extends Object
implements Comparable

Named value container. Should simplify tasks storing name/value pairs and in the same time maintaining appearance order. NOTE: used by ObjectUtil and is not intended for external use


Constructor Summary
NamedValue()
           
NamedValue(String name, Object value)
           
 
Method Summary
 int compareTo(Object o)
           
protected  void finalize()
           
 String getName()
           
 Object getValue()
           
 int hashCode()
           
 void setName(String name)
           
 void setValue(Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedValue

public NamedValue()

NamedValue

public NamedValue(String name,
                  Object value)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

toString

public String toString()
Overrides:
toString in class Object

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

setName

public void setName(String name)

getName

public String getName()

setValue

public void setValue(Object value)

getValue

public Object getValue()