net.sourceforge.pmd.properties

Class AbstractScalarProperty

public abstract class AbstractScalarProperty extends AbstractPMDProperty

No, subclasses are not necessarily scalar per se, they're just easy to parse without error. If you can come up with a better name...

Version: $Revision$

Author: Brian Remedios

Constructor Summary
AbstractScalarProperty(String theName, String theDescription, Object theDefault, float theUIOrder)
Constructor for AbstractScalarProperty.
Method Summary
protected abstract Object[]arrayFor(int size)
Method arrayFor.
protected abstract ObjectcreateFrom(String value)
Method createFrom.
ObjectvalueFrom(String valueString)
Method valueFrom.

Constructor Detail

AbstractScalarProperty

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

Parameters: theName String theDescription String theDefault Object theUIOrder float

Method Detail

arrayFor

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

Parameters: size int

Returns: Object[]

createFrom

protected abstract Object createFrom(String value)
Method createFrom.

Parameters: value String

Returns: Object

valueFrom

public Object valueFrom(String valueString)
Method valueFrom.

Parameters: valueString String

Returns: Object[]

Throws: IllegalArgumentException

See Also: valueFrom