A standard composite implementation of the Property interface.
author: Fernando Bellas since: 1.0
Constructor Summary
public
CompoundProperty(String simpleName, PropertyStructure[] values) Creates an instance of a CompoundProperty from its simple
name and initial values (an array of PropertyStructures).
It is possible to pass an array of 0 elements
(new PropertyStructure[0]) for the initial values.
Method Summary
public boolean
equals(Object object) Returns if an instance of this class is equals to the one passed as a
parameter.
Creates an instance of a CompoundProperty from its simple
name and initial values (an array of PropertyStructures).
It is possible to pass an array of 0 elements
(new PropertyStructure[0]) for the initial values. The
properties of the structure must be the same for all of the values
(no check is done).
Parameters: simpleName - the simple name Parameters: values - the object values
Returns if an instance of this class is equals to the one passed as a
parameter. This method returns true if the property values an the
structure for both properties are equal. Returns false otherwise.
Parameters: object - the instance to be compared to. true if this instance and the one passed as a parameter areequal, false otherwise.
Returns the hash code of an instance of this class. The resulting
hash code is the sum of the property values hash codes in the
PropertyStructure[].
the hash code
setValuesAsObject
public void setValuesAsObject(Object[] values)(Code)
Supported. The properties of the structure must be the same for all of
the values (no check is done). It is possible to pass an array of 0
elements (setValuesAsObject(new PropertyStructure[0])).
setValuesAsString
public void setValuesAsString(String[] valuesAsString)(Code)
Not supported.
Methods inherited from es.udc.mypersonalizer.kernel.model.properties.AbstractProperty