|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object extended by net.sourceforge.pmd.properties.AbstractPMDProperty
public abstract class 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(PropertyDescriptor 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
- floatMethod Detail |
---|
protected void multiValueDelimiter(char aDelimiter)
aDelimiter
- charpublic char multiValueDelimiter()
multiValueDelimiter
in interface PropertyDescriptor
PropertyDescriptor.multiValueDelimiter()
public java.lang.String name()
name
in interface PropertyDescriptor
PropertyDescriptor.name()
public java.lang.String description()
description
in interface PropertyDescriptor
PropertyDescriptor.description()
public java.lang.Object defaultValue()
PropertyDescriptor
defaultValue
in interface PropertyDescriptor
PropertyDescriptor.defaultValue()
public int maxValueCount()
maxValueCount
in interface PropertyDescriptor
PropertyDescriptor.maxValueCount()
protected void maxValueCount(int theCount)
theCount
- intPropertyDescriptor.maxValueCount()
public boolean isRequired()
isRequired
in interface PropertyDescriptor
PropertyDescriptor.isRequired()
public float uiOrder()
uiOrder
in interface PropertyDescriptor
PropertyDescriptor.uiOrder()
protected java.lang.String asString(java.lang.Object value)
value
- Object
public java.lang.String asDelimitedString(java.lang.Object values)
asDelimitedString
in interface PropertyDescriptor
values
- Object
PropertyDescriptor.asDelimitedString(Object)
public int compareTo(PropertyDescriptor otherProperty)
compareTo
in interface java.lang.Comparable<PropertyDescriptor>
otherProperty
- Object
Comparable.compareTo(Object)
public java.lang.String errorFor(java.lang.Object value)
errorFor
in interface PropertyDescriptor
value
- 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 PropertyDescriptor
rule
- Rule
PropertyDescriptor.propertyErrorFor(Rule)
public java.lang.Object[][] choices()
choices
in interface PropertyDescriptor
PropertyDescriptor.choices()
public int preferredRowCount()
preferredRowCount
in interface PropertyDescriptor
PropertyDescriptor.preferredRowCount()
public static final boolean areEqual(java.lang.Object value, java.lang.Object otherValue)
value
- ObjectotherValue
- Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |