org.dhmp.util.xml
Class Comment

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

public class Comment
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 comment
 
Constructor Summary
Comment(java.lang.Object value)
          Creates a new instance of Comment
 
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 comment

Constructor Detail

Comment

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

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 comment wrapping the equal objects. Note that if comment.equals(object) is true does not guarantee that object.equals(comment)

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