public class TypeProperty extends AbstractPackagedProperty<Class>
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptorFactory |
FACTORY |
packagedFieldTypesByKey| Constructor and Description |
|---|
TypeProperty(String theName,
String theDescription,
Class<?> theDefault,
String[] legalPackageNames,
float theUIOrder)
Constructor for TypeProperty.
|
TypeProperty(String theName,
String theDescription,
String defaultTypeStr,
Map<String,String> otherParams,
float theUIOrder) |
TypeProperty(String theName,
String theDescription,
String defaultTypeStr,
String[] legalPackageNames,
float theUIOrder) |
| 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 |
defaultAsString() |
protected String |
itemTypeName()
Method itemTypeName.
|
protected String |
packageNameOf(Object item)
Method packageNameOf.
|
Class<Class> |
type()
Denotes the value datatype.
|
Class<?> |
valueFrom(String valueString)
If the property is multi-valued then return the separate values after
parsing the propertyString provided.
|
addAttributesTo, legalPackageNames, packageNamesIn, valueErrorForareEqual, asDelimitedString, asDelimitedString, attributeValuesById, choices, compareTo, defaultHasNullValue, defaultValue, description, equals, errorFor, hashCode, isArray, isMultiValue, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, toString, typeErrorFor, uiOrder, valuesErrorForpublic static final PropertyDescriptorFactory FACTORY
public TypeProperty(String theName, String theDescription, Class<?> theDefault, String[] legalPackageNames, float theUIOrder)
theName - StringtheDescription - StringtheDefault - ClasslegalPackageNames - String[]theUIOrder - floatIllegalArgumentExceptionpublic TypeProperty(String theName, String theDescription, String defaultTypeStr, String[] legalPackageNames, float theUIOrder)
theName - StringtheDescription - StringdefaultTypeStr - StringlegalPackageNames - String[]theUIOrder - floatIllegalArgumentExceptionprotected String defaultAsString()
defaultAsString in class AbstractProperty<Class>protected String packageNameOf(Object item)
packageNameOf in class AbstractPackagedProperty<Class>item - Objectpublic Class<Class> type()
PropertyDescriptorPropertyDescriptor.type()protected String itemTypeName()
AbstractPackagedPropertyitemTypeName in class AbstractPackagedProperty<Class>protected String asString(Object value)
AbstractPropertyasString in class AbstractProperty<Class>value - Objectpublic Class<?> valueFrom(String valueString)
PropertyDescriptorvalueString - StringPropertyDescriptor.valueFrom(String)Copyright © 2002-2014 InfoEther. All Rights Reserved.