public class EnumeratedProperty<E> extends AbstractPMDProperty
multiValueDelimiter
emptyPropertySet
Constructor and Description |
---|
EnumeratedProperty(java.lang.String theName,
java.lang.String theDescription,
java.lang.String[] theLabels,
E[] theChoices,
float theUIOrder)
Constructor for EnumeratedProperty.
|
EnumeratedProperty(java.lang.String theName,
java.lang.String theDescription,
java.lang.String[] theLabels,
E[] theChoices,
float theUIOrder,
int maxValues)
Constructor for EnumeratedProperty.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asDelimitedString(java.lang.Object value)
Method asDelimitedString.
|
java.lang.String |
errorFor(java.lang.Object value)
Method errorFor.
|
java.lang.Class<java.lang.Object> |
type()
Method type.
|
java.lang.Object |
valueFrom(java.lang.String value)
Method valueFrom.
|
areEqual, asString, choices, compareTo, defaultValue, description, isArray, isRequired, maxValueCount, maxValueCount, multiValueDelimiter, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, typeErrorFor, uiOrder, valueErrorFor
public EnumeratedProperty(java.lang.String theName, java.lang.String theDescription, java.lang.String[] theLabels, E[] theChoices, float theUIOrder)
theName
- StringtheDescription
- StringtheLabels
- String[]theChoices
- E[]theUIOrder
- floatpublic EnumeratedProperty(java.lang.String theName, java.lang.String theDescription, java.lang.String[] theLabels, E[] theChoices, float theUIOrder, int maxValues)
theName
- StringtheDescription
- StringtheLabels
- String[]theChoices
- E[]theUIOrder
- floatmaxValues
- intpublic java.lang.Class<java.lang.Object> type()
PropertyDescriptor.type()
public java.lang.String errorFor(java.lang.Object value)
errorFor
in interface PropertyDescriptor
errorFor
in class AbstractPMDProperty
value
- ObjectPropertyDescriptor.errorFor(Object)
public java.lang.Object valueFrom(java.lang.String value) throws java.lang.IllegalArgumentException
value
- Stringjava.lang.IllegalArgumentException
PropertyDescriptor.valueFrom(String)
public java.lang.String asDelimitedString(java.lang.Object value)
asDelimitedString
in interface PropertyDescriptor
asDelimitedString
in class AbstractPMDProperty
value
- ObjectPropertyDescriptor.asDelimitedString(Object)