net.sourceforge.pmd.properties

Class FloatProperty

public class FloatProperty extends AbstractScalarProperty

Defines a property type that support float property values.

Author: Brian Remedios

Constructor Summary
FloatProperty(String theName, String theDescription, float theDefault, float theUIOrder)
Constructor for FloatProperty.
FloatProperty(String theName, String theDescription, float[] defaultValues, float theUIOrder, int theMaxValues)
Constructor for FloatProperty.
FloatProperty(String theName, String theDescription, Float[] defaultValues, float theUIOrder, int theMaxValues)
Constructor for FloatProperty.
Method Summary
protected Object[]arrayFor(int size)
Method arrayFor.
protected ObjectcreateFrom(String value)
Method createFrom.
Class<Float>type()
Method type.

Constructor Detail

FloatProperty

public FloatProperty(String theName, String theDescription, float theDefault, float theUIOrder)
Constructor for FloatProperty.

Parameters: theName String theDescription String theDefault float theUIOrder float

FloatProperty

public FloatProperty(String theName, String theDescription, float[] defaultValues, float theUIOrder, int theMaxValues)
Constructor for FloatProperty.

Parameters: theName String theDescription String defaultValues boolean[] theUIOrder float theMaxValues int

FloatProperty

public FloatProperty(String theName, String theDescription, Float[] defaultValues, float theUIOrder, int theMaxValues)
Constructor for FloatProperty.

Parameters: theName String theDescription String defaultValues Float[] theUIOrder float theMaxValues int

Method Detail

arrayFor

protected Object[] arrayFor(int size)
Method arrayFor.

Parameters: size int

Returns: Object[]

createFrom

protected Object createFrom(String value)
Method createFrom.

Parameters: value String

Returns: Object

type

public Class<Float> type()
Method type.

Returns: Class

See Also: type