public class StringMultiProperty extends AbstractProperty<String[]>
Modifier and Type | Field and Description |
---|---|
static PropertyDescriptorFactory |
FACTORY |
DEFAULT_DELIMITER, DEFAULT_NUMERIC_DELIMITER
Constructor and Description |
---|
StringMultiProperty(String theName,
String theDescription,
String[] theDefaults,
float theUIOrder,
char delimiter)
Constructor for StringProperty.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isMultiValue()
Returns whether the property is multi-valued, i.e.
|
Class<String[]> |
type()
Denotes the value datatype.
|
protected String |
valueErrorFor(Object value) |
String[] |
valueFrom(String valueString)
If the property is multi-valued then return the separate values after
parsing the propertyString provided.
|
addAttributesTo, areEqual, asDelimitedString, asDelimitedString, asString, attributeValuesById, choices, compareTo, defaultAsString, defaultHasNullValue, defaultValue, description, equals, errorFor, hashCode, isArray, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, toString, typeErrorFor, uiOrder, valuesErrorFor
public static final PropertyDescriptorFactory FACTORY
public StringMultiProperty(String theName, String theDescription, String[] theDefaults, float theUIOrder, char delimiter)
theName
- StringtheDescription
- StringtheDefaults
- String[]theUIOrder
- floatdelimiter
- StringIllegalArgumentException
public Class<String[]> type()
PropertyDescriptor
PropertyDescriptor.type()
public String[] valueFrom(String valueString)
PropertyDescriptor
valueString
- StringPropertyDescriptor.valueFrom(String)
protected String valueErrorFor(Object value)
valueErrorFor
in class AbstractProperty<String[]>
value
- Objectpublic boolean isMultiValue()
AbstractProperty
isMultiValue
in interface PropertyDescriptor<String[]>
isMultiValue
in class AbstractProperty<String[]>
PropertyDescriptor.isMultiValue()
Copyright © 2002–2017 PMD. All rights reserved.