E
- public class EnumeratedProperty<E> extends AbstractEnumeratedProperty<E,java.lang.Object>
Modifier and Type | Field and Description |
---|---|
static PropertyDescriptorFactory |
FACTORY |
choices, choicesByLabel, labelsByChoice
Constructor and Description |
---|
EnumeratedProperty(java.lang.String theName,
java.lang.String theDescription,
java.lang.String[] theLabels,
E[] theChoices,
int defaultIndex,
float theUIOrder)
Constructor for EnumeratedProperty.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asDelimitedString(java.lang.Object value)
Formats the object onto a string suitable for storage within the property
map.
|
java.lang.String |
errorFor(java.lang.Object value)
Validation function that returns a diagnostic error message for a sample
property value.
|
java.lang.Class<java.lang.Object> |
type()
Denotes the value datatype.
|
java.lang.Object |
valueFrom(java.lang.String value)
If the property is multi-valued then return the separate values after
parsing the propertyString provided.
|
choiceFrom, choices, defaultAsString, nonLegalValueMsgFor
addAttributesTo, areEqual, asDelimitedString, asString, attributeValuesById, compareTo, defaultHasNullValue, defaultValue, description, equals, hashCode, isArray, isMultiValue, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, toString, typeErrorFor, uiOrder, valueErrorFor, valuesErrorFor
public static final PropertyDescriptorFactory FACTORY
public EnumeratedProperty(java.lang.String theName, java.lang.String theDescription, java.lang.String[] theLabels, E[] theChoices, int defaultIndex, float theUIOrder)
theName
- StringtheDescription
- StringtheLabels
- String[]theChoices
- E[]defaultIndex
- inttheUIOrder
- floatjava.lang.IllegalArgumentException
public java.lang.Class<java.lang.Object> type()
PropertyDescriptor
PropertyDescriptor.type()
public java.lang.String errorFor(java.lang.Object value)
AbstractProperty
errorFor
in interface PropertyDescriptor<java.lang.Object>
errorFor
in class AbstractProperty<java.lang.Object>
value
- ObjectPropertyDescriptor.errorFor(Object)
public java.lang.Object valueFrom(java.lang.String value) throws java.lang.IllegalArgumentException
PropertyDescriptor
value
- Stringjava.lang.IllegalArgumentException
PropertyDescriptor.valueFrom(String)
public java.lang.String asDelimitedString(java.lang.Object value)
AbstractProperty
asDelimitedString
in interface PropertyDescriptor<java.lang.Object>
asDelimitedString
in class AbstractProperty<java.lang.Object>
value
- ObjectPropertyDescriptor.asDelimitedString(Object)
Copyright © 2002-2014 InfoEther. All Rights Reserved.