|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.pmd.properties.AbstractPMDProperty
| Field Summary | |
protected char |
multiValueDelimiter
|
| Fields inherited from interface net.sourceforge.pmd.PropertyDescriptor |
emptyPropertySet |
| Constructor Summary | |
protected |
AbstractPMDProperty(java.lang.String theName,
java.lang.String theDescription,
java.lang.Object theDefault,
float theUIOrder)
Constructor for AbstractPMDProperty. |
| Method Summary | |
static boolean |
areEqual(java.lang.Object value,
java.lang.Object otherValue)
Method areEqual. |
java.lang.String |
asDelimitedString(java.lang.Object values)
Method asDelimitedString. |
protected java.lang.String |
asString(java.lang.Object value)
Return the value as a string that can be easily recognized and parsed when we see it again. |
java.lang.Object[][] |
choices()
Method choices. |
int |
compareTo(java.lang.Object otherProperty)
Method compareTo. |
java.lang.Object |
defaultValue()
Default value to use when the user hasn't specified one or when they wish to revert to a known-good state. |
java.lang.String |
description()
Method description. |
java.lang.String |
errorFor(java.lang.Object value)
Method errorFor. |
protected boolean |
isArray(java.lang.Object value)
Method isArray. |
boolean |
isRequired()
Method isRequired. |
int |
maxValueCount()
Method maxValueCount. |
protected void |
maxValueCount(int theCount)
Method maxValueCount. |
char |
multiValueDelimiter()
Method multiValueDelimiter. |
protected void |
multiValueDelimiter(char aDelimiter)
Method multiValueDelimiter. |
java.lang.String |
name()
Method name. |
int |
preferredRowCount()
Method preferredRowCount. |
java.lang.String |
propertyErrorFor(Rule rule)
Method propertyErrorFor. |
protected java.lang.String |
typeErrorFor(java.lang.Object value)
Method typeErrorFor. |
float |
uiOrder()
Method uiOrder. |
protected java.lang.String |
valueErrorFor(java.lang.Object value)
Method valueErrorFor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sourceforge.pmd.PropertyDescriptor |
type, valueFrom |
| Field Detail |
protected char multiValueDelimiter
| Constructor Detail |
protected AbstractPMDProperty(java.lang.String theName,
java.lang.String theDescription,
java.lang.Object theDefault,
float theUIOrder)
theName - StringtheDescription - StringtheDefault - ObjecttheUIOrder - float| Method Detail |
protected void multiValueDelimiter(char aDelimiter)
aDelimiter - charpublic char multiValueDelimiter()
multiValueDelimiter in interface PropertyDescriptorPropertyDescriptor.multiValueDelimiter()public java.lang.String name()
name in interface PropertyDescriptorPropertyDescriptor.name()public java.lang.String description()
description in interface PropertyDescriptorPropertyDescriptor.description()public java.lang.Object defaultValue()
PropertyDescriptor
defaultValue in interface PropertyDescriptorPropertyDescriptor.defaultValue()public int maxValueCount()
maxValueCount in interface PropertyDescriptorPropertyDescriptor.maxValueCount()protected void maxValueCount(int theCount)
theCount - intPropertyDescriptor.maxValueCount()public boolean isRequired()
isRequired in interface PropertyDescriptorPropertyDescriptor.isRequired()public float uiOrder()
uiOrder in interface PropertyDescriptorPropertyDescriptor.uiOrder()protected java.lang.String asString(java.lang.Object value)
value - Object
public java.lang.String asDelimitedString(java.lang.Object values)
asDelimitedString in interface PropertyDescriptorvalues - Object
PropertyDescriptor.asDelimitedString(Object)public int compareTo(java.lang.Object otherProperty)
compareTo in interface java.lang.ComparableotherProperty - Object
Comparable.compareTo(Object)public java.lang.String errorFor(java.lang.Object value)
errorFor in interface PropertyDescriptorvalue - Object
PropertyDescriptor.errorFor(Object)protected java.lang.String valueErrorFor(java.lang.Object value)
value - Object
protected boolean isArray(java.lang.Object value)
value - Object
protected java.lang.String typeErrorFor(java.lang.Object value)
value - Object
public java.lang.String propertyErrorFor(Rule rule)
propertyErrorFor in interface PropertyDescriptorrule - Rule
PropertyDescriptor.propertyErrorFor(Rule)public java.lang.Object[][] choices()
choices in interface PropertyDescriptorPropertyDescriptor.choices()public int preferredRowCount()
preferredRowCount in interface PropertyDescriptorPropertyDescriptor.preferredRowCount()
public static final boolean areEqual(java.lang.Object value,
java.lang.Object otherValue)
value - ObjectotherValue - Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||