Package org.apache.fulcrum.intake.model
Class BigDecimalField
- All Implemented Interfaces:
Serializable
,org.apache.avalon.framework.logger.LogEnabled
- Version:
- $Id$
- Author:
- John McNally, Daniel Rall, Henning P. Schmiedehausen, Quinton McCombs, Thomas Vandahl
- See Also:
-
Field Summary
Fields inherited from class org.apache.fulcrum.intake.model.Field
defaultFieldPackage, defaultValidatorPackage, defaultValue, emptyValue, log, mapToObject, parser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Sets the value of the field from data in the parser.protected String
A suitable validator.void
setDefaultValue
(String prop) Sets the default value for a BigDecimal fieldvoid
setEmptyValue
(String prop) Set the empty Value.Methods inherited from class org.apache.fulcrum.intake.model.Field
dispose, enableLogging, getDefault, getDefaultValue, getDisplayName, getDisplaySize, getEmptyValue, getGroup, getHTMLString, getInitialValue, getKey, getLocale, getMapToObject, getMaxSize, getMessage, getName, getProperty, getSafeEmptyValue, getStringValue, getTestValue, getValidator, getValue, getValueIfAbsent, init, init, initGetterAndSetter, isMultiValued, isRequired, isSet, isValid, isValidated, removeFromRequest, setDisplayName, setMessage, setProperty, setRequired, setRequired, setSet, setValid, setValidated, toString, validate
-
Constructor Details
-
BigDecimalField
Constructor.- Parameters:
field
- xml field definition objectgroup
- xml group definition object- Throws:
IntakeException
- thrown by superclass
-
-
Method Details
-
setDefaultValue
Sets the default value for a BigDecimal field- Specified by:
setDefaultValue
in classField<BigDecimal>
- Parameters:
prop
- Parameter for the default values
-
setEmptyValue
Set the empty Value. This value is used if Intake maps a field to a parameter returned by the user and the corresponding field is either empty (empty string) or non-existant.- Specified by:
setEmptyValue
in classField<BigDecimal>
- Parameters:
prop
- The value to use if the field is empty.
-
getDefaultValidator
A suitable validator.- Overrides:
getDefaultValidator
in classField<BigDecimal>
- Returns:
- A suitable validator
-
doSetValue
protected void doSetValue()Sets the value of the field from data in the parser.- Specified by:
doSetValue
in classField<BigDecimal>
-