T
- public class BasicPropertyDescriptorFactory<T> extends Object implements PropertyDescriptorFactory
Modifier and Type | Field and Description |
---|---|
protected static Map<String,Boolean> |
CORE_FIELD_TYPES_BY_KEY |
Constructor and Description |
---|
BasicPropertyDescriptorFactory(Class<?> theValueType) |
BasicPropertyDescriptorFactory(Class<?> theValueType,
Map<String,Boolean> additionalFieldTypesByKey) |
Modifier and Type | Method and Description |
---|---|
protected static Boolean[] |
booleanValuesIn(String booleanString,
char delimiter) |
protected static Character[] |
charsIn(String charString,
char delimiter) |
protected static Object[] |
choicesIn(Map<String,String> valuesById) |
PropertyDescriptor<?> |
createWith(Map<String,String> valuesById)
Create a property descriptor of the appropriate type using the values
provided.
|
protected String |
defaultValueIn(Map<String,String> valuesById) |
protected static char |
delimiterIn(Map<String,String> valuesById) |
protected static char |
delimiterIn(Map<String,String> valuesById,
char defaultDelimiter) |
protected String |
descriptionIn(Map<String,String> valuesById) |
protected static Double[] |
doublesIn(String numberString,
char delimiter) |
Map<String,Boolean> |
expectedFields()
Denote the identifiers of the expected fields paired with booleans
denoting whether they are required (non-null) or not.
|
static Map<String,Boolean> |
expectedFieldTypesWith(String[] otherKeys,
Boolean[] otherValues) |
protected static Float[] |
floatsIn(String numberString,
char delimiter) |
protected static int |
indexIn(Map<String,String> valuesById) |
protected static int[] |
indiciesIn(Map<String,String> valuesById) |
protected static Integer[] |
integersIn(String numberString,
char delimiter) |
protected static String[] |
labelsIn(Map<String,String> valuesById) |
protected static String[] |
legalPackageNamesIn(Map<String,String> valuesById,
char delimiter) |
protected static Long[] |
longsIn(String numberString,
char delimiter) |
protected static String |
maxValueIn(Map<String,String> valuesById) |
protected static String[] |
minMaxFrom(Map<String,String> valuesById) |
protected static String |
minValueIn(Map<String,String> valuesById) |
protected String |
nameIn(Map<String,String> valuesById) |
protected String |
numericDefaultValueIn(Map<String,String> valuesById) |
Class<?> |
valueType()
The type of the value of the
PropertyDescriptor created by this
factory. |
public BasicPropertyDescriptorFactory(Class<?> theValueType)
public Class<?> valueType()
PropertyDescriptorFactory
PropertyDescriptor
created by this
factory.valueType
in interface PropertyDescriptorFactory
public PropertyDescriptor<?> createWith(Map<String,String> valuesById)
PropertyDescriptorFactory
createWith
in interface PropertyDescriptorFactory
valuesById
- the map of valuesPropertyDescriptor
public Map<String,Boolean> expectedFields()
PropertyDescriptorFactory
expectedFields
in interface PropertyDescriptorFactory
protected static String[] legalPackageNamesIn(Map<String,String> valuesById, char delimiter)
Copyright © 2002-2016 InfoEther. All Rights Reserved.