public class MethodMultiProperty extends AbstractMultiPackagedProperty<Method[]>
Modifier and Type | Field and Description |
---|---|
static PropertyDescriptorFactory |
FACTORY |
DELIMITER
PACKAGED_FIELD_TYPES_BY_KEY
DEFAULT_DELIMITER, DEFAULT_NUMERIC_DELIMITER
Constructor and Description |
---|
MethodMultiProperty(String theName,
String theDescription,
Method[] theDefaults,
String[] legalPackageNames,
float theUIOrder)
Constructor for MethodProperty.
|
MethodMultiProperty(String theName,
String theDescription,
String methodDefaults,
Map<String,String> otherParams,
float theUIOrder) |
MethodMultiProperty(String theName,
String theDescription,
String methodDefaults,
String[] legalPackageNames,
float theUIOrder)
Constructor for MethodProperty.
|
Modifier and Type | Method and Description |
---|---|
protected String |
asString(Object value)
Return the value as a string that can be easily recognized and parsed
when we see it again.
|
protected String |
itemTypeName()
Method itemTypeName.
|
static Method[] |
methodsFrom(String methodsStr) |
protected String |
packageNameOf(Object item) |
Class<Method[]> |
type()
Denotes the value datatype.
|
Method[] |
valueFrom(String valueString)
If the property is multi-valued then return the separate values after
parsing the propertyString provided.
|
defaultAsString, isMultiValue
addAttributesTo, legalPackageNames, packageNamesIn, valueErrorFor
areEqual, asDelimitedString, asDelimitedString, attributeValuesById, choices, compareTo, defaultHasNullValue, defaultValue, description, equals, errorFor, hashCode, isArray, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, toString, typeErrorFor, uiOrder, valuesErrorFor
public static final PropertyDescriptorFactory FACTORY
public MethodMultiProperty(String theName, String theDescription, Method[] theDefaults, String[] legalPackageNames, float theUIOrder)
theName
- StringtheDescription
- StringtheDefaults
- Method[]legalPackageNames
- String[]theUIOrder
- floatIllegalArgumentException
public MethodMultiProperty(String theName, String theDescription, String methodDefaults, String[] legalPackageNames, float theUIOrder)
theName
- StringtheDescription
- StringmethodDefaults
- StringlegalPackageNames
- String[]theUIOrder
- floatIllegalArgumentException
public static Method[] methodsFrom(String methodsStr)
methodsStr
- Stringprotected String asString(Object value)
asString
in class AbstractProperty<Method[]>
value
- Objectprotected String packageNameOf(Object item)
packageNameOf
in class AbstractPackagedProperty<Method[]>
item
- Objectprotected String itemTypeName()
AbstractPackagedProperty
itemTypeName
in class AbstractPackagedProperty<Method[]>
public Class<Method[]> type()
PropertyDescriptor
PropertyDescriptor.type()
public Method[] valueFrom(String valueString) throws IllegalArgumentException
PropertyDescriptor
valueString
- StringIllegalArgumentException
PropertyDescriptor.valueFrom(String)
Copyright © 2002–2017 PMD. All rights reserved.