net.sourceforge.pmd.properties

Class IntegerProperty

public class IntegerProperty extends AbstractScalarProperty

Defines a datatype that supports the Integer property values.

Version: $Revision$

Author: Brian Remedios

Constructor Summary
IntegerProperty(String theName, String theDescription, int theDefault, float theUIOrder)
Constructor for IntegerProperty.
IntegerProperty(String theName, String theDescription, int[] theDefaults, float theUIOrder, int maxCount)
Constructor for IntegerProperty.
IntegerProperty(String theName, String theDescription, Integer[] theDefaults, float theUIOrder, int maxCount)
Constructor for IntegerProperty.
Method Summary
protected Object[]arrayFor(int size)
Method arrayFor.
protected ObjectcreateFrom(String value)
Method createFrom.
Class<Integer>type()
Method type.

Constructor Detail

IntegerProperty

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

Parameters: theName String theDescription String theDefault int theUIOrder float

IntegerProperty

public IntegerProperty(String theName, String theDescription, int[] theDefaults, float theUIOrder, int maxCount)
Constructor for IntegerProperty.

Parameters: theName String theDescription String theDefaults int[] theUIOrder float maxCount int

IntegerProperty

public IntegerProperty(String theName, String theDescription, Integer[] theDefaults, float theUIOrder, int maxCount)
Constructor for IntegerProperty.

Parameters: theName String theDescription String theDefaults Integer[] theUIOrder float maxCount 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<Integer> type()
Method type.

Returns: Class

See Also: type