|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pmd.properties.AbstractPMDProperty
net.sourceforge.pmd.properties.StringProperty
net.sourceforge.pmd.properties.TypeProperty
Defines a property that supports class types, even for primitive values!
Field Summary |
Fields inherited from class net.sourceforge.pmd.properties.StringProperty |
defaultDelimiter |
Fields inherited from class net.sourceforge.pmd.properties.AbstractPMDProperty |
multiValueDelimiter |
Fields inherited from interface net.sourceforge.pmd.PropertyDescriptor |
emptyPropertySet |
Constructor Summary | |
TypeProperty(java.lang.String theName,
java.lang.String theDescription,
java.lang.Class[] theDefaults,
float theUIOrder)
Constructor for TypeProperty. |
|
TypeProperty(java.lang.String theName,
java.lang.String theDescription,
java.lang.Class theDefault,
float theUIOrder)
Constructor for TypeProperty. |
Method Summary | |
protected java.lang.String |
asString(java.lang.Object value)
Method asString. |
java.lang.Class |
type()
Method type. |
protected java.lang.String |
valueErrorFor(java.lang.Object value)
Neutralize unwanted superclass functionality that will result in a class cast exception. |
java.lang.Object |
valueFrom(java.lang.String valueString)
Method valueFrom. |
Methods inherited from class net.sourceforge.pmd.properties.StringProperty |
preferredRowCount |
Methods inherited from class net.sourceforge.pmd.properties.AbstractPMDProperty |
areEqual, asDelimitedString, choices, compareTo, defaultValue, description, errorFor, isArray, isRequired, maxValueCount, maxValueCount, multiValueDelimiter, multiValueDelimiter, name, propertyErrorFor, typeErrorFor, uiOrder |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TypeProperty(java.lang.String theName, java.lang.String theDescription, java.lang.Class theDefault, float theUIOrder)
theName
- StringtheDescription
- StringtheDefault
- ClasstheUIOrder
- floatpublic TypeProperty(java.lang.String theName, java.lang.String theDescription, java.lang.Class[] theDefaults, float theUIOrder)
theName
- StringtheDescription
- StringtheDefaults
- Class[]theUIOrder
- floatMethod Detail |
public java.lang.Class type()
type
in interface PropertyDescriptor
type
in class StringProperty
PropertyDescriptor.type()
protected java.lang.String asString(java.lang.Object value)
asString
in class AbstractPMDProperty
value
- Object
public java.lang.Object valueFrom(java.lang.String valueString)
valueFrom
in interface PropertyDescriptor
valueFrom
in class StringProperty
valueString
- String
PropertyDescriptor.valueFrom(String)
protected java.lang.String valueErrorFor(java.lang.Object value)
valueErrorFor
in class StringProperty
value
- Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |