org.jdtaus.core.container
Class Property

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

public class Property
extends ModelObject
implements Cloneable, Serializable

Property meta-data.

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

Version:
$Id: Property.java 8044 2009-07-02 01:29:05Z schulte2005 $
Author:
Christian Schulte
See Also:
Serialized Form

Constructor Summary
Property()
           
 
Method Summary
 Object clone()
          Creates and returns a 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 api.
 void setName(String value)
          Setter for property name.
 void setType(Class value)
          Setter for property type.
 void setValue(Object value)
          Setter for property value.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class org.jdtaus.core.container.ModelObject
getDocumentation, getModelVersion, setDocumentation, setModelVersion
 
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 copy of this object. This method performs a "shallow copy" of this object, not a "deep copy" operation.

Overrides:
clone in class 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.

Overrides:
equals in class Object
Parameters:
o - the reference object with which to compare.
Returns:
true if this object is the same as o; false 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 or null.

hashCode

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

Overrides:
hashCode in class 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:
true if the property is part of a public API.

setApi

public void setApi(boolean value)
Setter for property api.

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

setName

public void setName(String value)
Setter for property name.

Parameters:
value - the new name of the property.

setType

public void setType(Class value)
Setter for property type.

Parameters:
value - the new type of the property.

setValue

public void setValue(Object value)
Setter for property value.

Parameters:
value - the new value of the property.

toString

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

Overrides:
toString in class Object
Returns:
a string representation of the object.


Copyright © 2005-2009 jDTAUS. All Rights Reserved.