planetj.property
Class Property

java.lang.Object
  |
  +--planetj.property.Property
All Implemented Interfaces:
Cloneable, INamed, Serializable
Direct Known Subclasses:
UnmodifiableProperty

public class Property
extends Object
implements Cloneable, Serializable, INamed

Associates a name with a value

See Also:
Serialized Form

Constructor Summary
Property()
          Property constructor
Property(String pName, Object pValue)
          Property constructor
 
Method Summary
 Object clone()
           
 boolean equals(Object o)
          Test two property objects for equality
 Object getKey()
          Gets the name of this name-value pair
 String getName()
          Gets the name of this name-value pair
 Object getValue()
          Gets the value of this NameValue pair
 int hashCode()
          Get the hashcode for this Property object
 void setName(String newName)
          Sets the name of this name-value pair
 void setValue(Object newValue)
          Sets the value of this NameValue pair
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Property

public Property()
Property constructor


Property

public Property(String pName,
                Object pValue)
Property constructor

Method Detail

clone

public Object clone()
Overrides:
clone in class Object

equals

public boolean equals(Object o)
Test two property objects for equality

Overrides:
equals in class Object

getKey

public Object getKey()
Gets the name of this name-value pair


getName

public String getName()
Gets the name of this name-value pair

Specified by:
getName in interface INamed

getValue

public Object getValue()
Gets the value of this NameValue pair

Specified by:
getValue in interface INamed

hashCode

public int hashCode()
Get the hashcode for this Property object

Overrides:
hashCode in class Object

setName

public void setName(String newName)
Sets the name of this name-value pair


setValue

public void setValue(Object newValue)
Sets the value of this NameValue pair


toString

public String toString()
Overrides:
toString in class Object