public class CharacterProperty extends AbstractProperty<Character>
Modifier and Type | Field and Description |
---|---|
static PropertyDescriptorFactory |
FACTORY |
DEFAULT_DELIMITER, DEFAULT_NUMERIC_DELIMITER
Constructor and Description |
---|
CharacterProperty(String theName,
String theDescription,
Character theDefault,
float theUIOrder)
Constructor for CharacterProperty.
|
CharacterProperty(String theName,
String theDescription,
String defaultStr,
float theUIOrder)
Constructor for CharacterProperty.
|
Modifier and Type | Method and Description |
---|---|
static Character |
charFrom(String charStr) |
protected String |
defaultAsString()
Method defaultAsString.
|
Class<Character> |
type()
Denotes the value datatype.
|
Character |
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, defaultHasNullValue, defaultValue, description, equals, errorFor, hashCode, isArray, isMultiValue, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, toString, typeErrorFor, uiOrder, valueErrorFor, valuesErrorFor
public static final PropertyDescriptorFactory FACTORY
public CharacterProperty(String theName, String theDescription, Character theDefault, float theUIOrder)
theName
- StringtheDescription
- StringtheDefault
- CharactertheUIOrder
- floatpublic CharacterProperty(String theName, String theDescription, String defaultStr, float theUIOrder)
theName
- StringtheDescription
- StringdefaultStr
- StringtheUIOrder
- floatIllegalArgumentException
public static Character charFrom(String charStr)
charStr
- Stringpublic Class<Character> type()
PropertyDescriptor
PropertyDescriptor.type()
public Character valueFrom(String valueString) throws IllegalArgumentException
PropertyDescriptor
valueString
- StringIllegalArgumentException
PropertyDescriptor.valueFrom(String)
protected String defaultAsString()
defaultAsString
in class AbstractProperty<Character>
Copyright © 2002–2017 PMD. All rights reserved.