Betty v1.1.0

christophedelory.betty.xml
Class PropertyDetails

java.lang.Object
  extended by christophedelory.betty.xml.Child
      extended by christophedelory.betty.xml.IdDetails
          extended by christophedelory.betty.xml.PropertyDetails
All Implemented Interfaces:
Serializable

public class PropertyDetails
extends IdDetails

A property as a key - value pair.

Version:
$Revision$
Author:
Christophe Delory
See Also:
Serialized Form

Constructor Summary
PropertyDetails()
           
 
Method Summary
 void accept(XmlVisitor visitor)
          Accepts the specified XML visitor.
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this property.
 String getValue()
          Returns the value of this property.
 int hashCode()
          Returns a hash code value for this property.
 void setValue(String value)
          Sets the value of this property.
 
Methods inherited from class christophedelory.betty.xml.IdDetails
addDescription, addLink, findDescriptionByLocale, findLinkByLocale, getDescriptions, getId, getLinks, setId
 
Methods inherited from class christophedelory.betty.xml.Child
getParent, getRoot, getRoot, getVersion, setParent, setVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyDetails

public PropertyDetails()
Method Detail

getValue

public String getValue()
Returns the value of this property.

Returns:
a property value.
See Also:
setValue(String)

setValue

public void setValue(String value)
Sets the value of this property.

Parameters:
value - a property's value.
Throws:
NullPointerException - if value is null.
See Also:
getValue()

accept

public void accept(XmlVisitor visitor)
            throws Exception
Description copied from class: IdDetails
Accepts the specified XML visitor.

Overrides:
accept in class IdDetails
Parameters:
visitor - a visitor. Shall not be null.
Throws:
NullPointerException - if visitor is null.
Exception - if any error occurs during the visit.

hashCode

public int hashCode()
Returns a hash code value for this property. This method is supported for the benefit of hashtables such as those provided by Hashtable.

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this property.

Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is a PropertyDetails instance and the keys are equal; false otherwise.
See Also:
IdDetails.getId()

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.