T
- public abstract class AbstractNumericProperty<T> extends AbstractScalarProperty<T> implements NumericPropertyDescriptor<T>
Modifier and Type | Field and Description |
---|---|
static Map<String,Boolean> |
NUMBER_FIELD_TYPES_BY_KEY |
DEFAULT_DELIMITER, DEFAULT_NUMERIC_DELIMITER
Modifier | Constructor and Description |
---|---|
protected |
AbstractNumericProperty(String theName,
String theDescription,
Number lower,
Number upper,
T theDefault,
float theUIOrder) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAttributesTo(Map<String,String> attributes)
Method addAttributesTo.
|
protected String |
defaultAsString() |
Number |
lowerLimit()
Returns the minimum value that instances of the property can have
|
String |
rangeString() |
Number |
upperLimit()
Returns the maximum value that instances of the property can have
|
protected String |
valueErrorFor(Object value)
Returns a string describing any error the value may have when
characterized by the receiver.
|
arrayFor, createFrom, valueFrom
areEqual, asDelimitedString, asDelimitedString, asString, attributeValuesById, choices, compareTo, defaultHasNullValue, defaultValue, description, equals, errorFor, hashCode, isArray, isMultiValue, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, toString, typeErrorFor, uiOrder, valuesErrorFor
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asDelimitedString, attributeValuesById, choices, defaultValue, description, errorFor, isMultiValue, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, type, uiOrder, valueFrom
compareTo
public Number lowerLimit()
lowerLimit
in interface NumericPropertyDescriptor<T>
NumericPropertyDescriptor.lowerLimit()
protected String defaultAsString()
defaultAsString
in class AbstractProperty<T>
public Number upperLimit()
upperLimit
in interface NumericPropertyDescriptor<T>
NumericPropertyDescriptor.upperLimit()
public String rangeString()
protected String valueErrorFor(Object value)
valueErrorFor
in class AbstractProperty<T>
value
- Objectprotected void addAttributesTo(Map<String,String> attributes)
addAttributesTo
in class AbstractProperty<T>
attributes
- MapCopyright © 2002-2016 InfoEther. All Rights Reserved.