net.sourceforge.pmd.properties
public class EnumeratedProperty<E> extends AbstractPMDProperty
Version: $Revision$
Constructor Summary | |
---|---|
EnumeratedProperty(String theName, String theDescription, String[] theLabels, E[] theChoices, float theUIOrder)
Constructor for EnumeratedProperty. | |
EnumeratedProperty(String theName, String theDescription, String[] theLabels, E[] theChoices, float theUIOrder, int maxValues)
Constructor for EnumeratedProperty. |
Method Summary | |
---|---|
String | asDelimitedString(Object value)
Method asDelimitedString. |
String | errorFor(Object value)
Method errorFor. |
Class<Object> | type()
Method type. |
Object | valueFrom(String value)
Method valueFrom. |
Parameters: theName String theDescription String theLabels String[] theChoices E[] theUIOrder float
Parameters: theName String theDescription String theLabels String[] theChoices E[] theUIOrder float maxValues int
Returns: Class
See Also: type
Parameters: value String
Returns: Object
Throws: IllegalArgumentException
See Also: valueFrom