net.infonode.properties.types

Class EnumProperty

public class EnumProperty extends ValueHandlerProperty

A property which value is one in a fixed set of values.

Version: $Revision: 1.7 $

Author: $Author: jesper $

Constructor Summary
EnumProperty(PropertyGroup group, String name, Class type, String description, PropertyValueHandler valueHandler, Object[] validValues)
Constructor.
Method Summary
Object[]getValidValues()
Returns the valid values for this property.
ObjectgetValue(Object object)
voidsetValue(Object object, Object value)

Constructor Detail

EnumProperty

public EnumProperty(PropertyGroup group, String name, Class type, String description, PropertyValueHandler valueHandler, Object[] validValues)
Constructor.

Parameters: group the property group name the property name type the property type description the property description valueHandler handles values for this property validValues valid values for this property

Method Detail

getValidValues

public Object[] getValidValues()
Returns the valid values for this property.

Returns: the valid values for this property

getValue

public Object getValue(Object object)

setValue

public void setValue(Object object, Object value)