net.sourceforge.pmd.properties

Class DoubleProperty

public class DoubleProperty extends AbstractScalarProperty

Defines a property type that support double property values.

Author: Brian Remedios

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

Constructor Detail

DoubleProperty

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

Parameters: theName String theDescription String theDefault double theUIOrder float

DoubleProperty

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

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

DoubleProperty

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

Parameters: theName String theDescription String defaultValues Double[] 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<Double> type()
Method type.

Returns: Class

See Also: type