|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.pmd.lang.rule.properties.AbstractProperty<Character> net.sourceforge.pmd.lang.rule.properties.CharacterProperty
public class CharacterProperty
Defines a property type that supports single Character values.
Field Summary | |
---|---|
static PropertyDescriptorFactory |
FACTORY
|
Fields inherited from class net.sourceforge.pmd.lang.rule.properties.AbstractProperty |
---|
DEFAULT_DELIMITER, DEFAULT_NUMERIC_DELIMITER |
Constructor Summary | |
---|---|
CharacterProperty(String theName,
String theDescription,
Character theDefault,
float theUIOrder)
Constructor for CharacterProperty. |
|
CharacterProperty(String theName,
String theDescription,
String defaultStr,
float theUIOrder)
Constructor for CharacterProperty. |
Method Summary | |
---|---|
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. |
Methods inherited from class net.sourceforge.pmd.lang.rule.properties.AbstractProperty |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PropertyDescriptorFactory FACTORY
Constructor Detail |
---|
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
- float
IllegalArgumentException
Method Detail |
---|
public static Character charFrom(String charStr)
charStr
- String
public Class<Character> type()
PropertyDescriptor
PropertyDescriptor.type()
public Character valueFrom(String valueString) throws IllegalArgumentException
PropertyDescriptor
valueString
- String
IllegalArgumentException
PropertyDescriptor.valueFrom(String)
protected String defaultAsString()
defaultAsString
in class AbstractProperty<Character>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |