org.dhmp.util.xml
Class Attribute

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

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

Wrapper class used for XML attribute.

Author:
hideyuki
See Also:
Serialized Form

Field Summary
 java.lang.Object value
          Actual object wrapped as attribute
 
Constructor Summary
Attribute(java.lang.Object value)
          Creates a new instance of Attribute
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this attribute 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 attribute

Constructor Detail

Attribute

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

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 attribute to the specified object. The resul is true if the object equals wrapped object or the object is an instance of attribute wrapping the equal objects. Note that if attribute.equals(object) is true does not guarantee that object.equals(attribute)

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