org.jdtaus.core.container
Class Property

java.lang.Object
  extended byorg.jdtaus.core.container.Property
All Implemented Interfaces:
Cloneable, Serializable

public class Property
extends Object
implements Cloneable, Serializable

Property meta-data.

A property consists of the properties , and . Property holds the name uniquely identifying the property in a collection of properties. Property holds the type of the property. Property holds the properties value which is of type . The flag indicates whether the property is part of a public API or not.

Version:
$Id: Property.java 2201 2007-03-21 23:59:00Z schulte2005 $
Author:
Christian Schulte
See Also:
Serialized Form

Constructor Summary
Property()
           
 
Method Summary
 Object clone()
          Creates and returns a deep copy of this object.
 boolean equals(Object o)
          Indicates whether some other object is equal to this one by comparing the values of all properties.
 String getName()
          Gets the name of the property.
 Class getType()
          Gets the type of the property.
 Object getValue()
          Gets the value of the property.
 int hashCode()
          Returns a hash code value for this object.
 boolean isApi()
          Gets the flag indicating if the property is part of a public API.
 void setApi(boolean value)
          Setter for property .
 void setName(String value)
          Setter for property .
 void setType(Class value)
          Setter for property .
 void setValue(Object value)
          Setter for property .
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Property

public Property()
Method Detail

clone

public Object clone()
Creates and returns a deep copy of this object.

Returns:
a clone of this instance.

equals

public boolean equals(Object o)
Indicates whether some other object is equal to this one by comparing the values of all properties.

Parameters:
o - the reference object with which to compare.
Returns:
if this object is the same as ; otherwise.

getName

public String getName()
Gets the name of the property.

Returns:
the name of the property.

getType

public Class getType()
Gets the type of the property.

Returns:
the type of the property.

getValue

public Object getValue()
Gets the value of the property.

Returns:
the value of the property.

hashCode

public int hashCode()
Returns a hash code value for this object.

Returns:
a hash code value for this object.

isApi

public boolean isApi()
Gets the flag indicating if the property is part of a public API.

Returns:
if the property is part of a public API; if not.

setApi

public void setApi(boolean value)
Setter for property .

Parameters:
value - if the property is part of a public API; if not.

setName

public void setName(String value)
Setter for property .

Parameters:
value - the new name of the property.

setType

public void setType(Class value)
Setter for property .

Parameters:
value - the new type of the property.

setValue

public void setValue(Object value)
Setter for property .

Parameters:
value - the new value of the property.

toString

public String toString()
Returns a string representation of the object.

Returns:
a string representation of the object.


Copyright © 2005-2007 jDTAUS. All Rights Reserved.