org.dhmp.util.xml
Class ElementValue

java.lang.Object
  extended byorg.dhmp.util.xml.ElementValue
All Implemented Interfaces:
java.io.Serializable

public class ElementValue
extends java.lang.Object
implements java.io.Serializable

Wrapper class used for elment value.

Author:
hideyuki
See Also:
Serialized Form

Field Summary
 java.lang.Object value
          Actual object wrapped as element value
 
Constructor Summary
ElementValue(java.lang.Object value)
          Creates a new instance of ElementValue
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this element's value to the specified object.
 java.lang.String toString()
          String value representing the object hold in value
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public java.lang.Object value
Actual object wrapped as element value

Constructor Detail

ElementValue

public ElementValue(java.lang.Object value)
Creates a new instance of ElementValue

Parameters:
value - Object to be wrapped
Method Detail

toString

public java.lang.String toString()
String value representing the object hold in value

Returns:
String value of the object

equals

public boolean equals(java.lang.Object o)
Compares this element's value to the specified object. The resul is true if the object equals wrapped object or the object is an instance of ElementValue wrapping the equal objects. Note that if elementvalue.equals(object) is true does not guarantee that object.equals(elementvalue)

Parameters:
o - the object to compare this ElementValue against.
Returns:
true if both are ElementValue and wrapping equal objects, or if the wrapped object is equal to the object; false otherwise.