com.ibm.adt.topology.object.properties
Class Property

java.lang.Object
  extended by com.ibm.adt.topology.object.properties.PropertyObject
      extended by com.ibm.adt.topology.object.properties.Property
All Implemented Interfaces:
java.io.Serializable

public class Property
extends PropertyObject

Property is a component of the TopologyObject Properties heirachy. It is used for string named properties whose value can be of any type. Property objects are always anchored in a PropertyList. The Property value can be either a PropertyList, PropertyArray, or other Java object. Objects that are not a subclass of PropertyObject will automatically be stored in a PropertyValue object.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.adt.topology.object.properties.PropertyObject
hashCode, name
 
Constructor Summary
Property(java.lang.String name)
          Builds a Property object with the specified name.
Property(java.lang.String name, java.lang.Object value)
          Builds a Property object with the specified name and value.
 
Method Summary
 boolean equals(java.lang.Object o)
           
(package private)  void finalizeProperty()
          Finalizes the PropertyObject structure.
 PropertyObject getValue()
          Gets the Property value.
 int hashCode()
           
 java.lang.String peek()
          Returns string that peeks the property value.
 void setName(java.lang.String name)
          Sets the Property name.
 void setValue(java.lang.Object value)
          Sets the Property valuaue to the specifed value.
 java.lang.String toString()
           
 
Methods inherited from class com.ibm.adt.topology.object.properties.PropertyObject
getKey, getName, getOrdinal, getParent, getRoot, setParent, setRoot
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Property

public Property(java.lang.String name)
Builds a Property object with the specified name.

Parameters:
name -

Property

public Property(java.lang.String name,
                java.lang.Object value)
         throws TopologyException
Builds a Property object with the specified name and value.

Parameters:
name -
value -
Throws:
TopologyException
Method Detail

setName

public final void setName(java.lang.String name)
Sets the Property name.

Parameters:
name - the name to set

getValue

public final PropertyObject getValue()
Gets the Property value. Value is always a subclass of PropertyObject.

Returns:
Returns the value.

setValue

public final void setValue(java.lang.Object value)
                    throws TopologyException
Sets the Property valuaue to the specifed value. Value can be of any object class. Objects that are not a subclass of PropertyObject will automatically be stored in a PropertyValue object.

Parameters:
value - The value to set.
Throws:
TopologyException

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public final int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public final boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

peek

public final java.lang.String peek()
Description copied from class: PropertyObject
Returns string that peeks the property value.

Specified by:
peek in class PropertyObject
Returns:

finalizeProperty

final void finalizeProperty()
Description copied from class: PropertyObject
Finalizes the PropertyObject structure.

Specified by:
finalizeProperty in class PropertyObject


© Copyright 2006 IBM Corp. 2006 All Rights Reserved