|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.turbine.services.intake.model.Field
org.apache.turbine.services.intake.model.BigDecimalField
| Field Summary |
| Fields inherited from class org.apache.turbine.services.intake.model.Field |
alwaysRequired, defaultFieldPackage, defaultValue, displayName, emptyValue, getter, group, ifRequiredMessage, initialized, isDebugEnabled, isMultiValued, key, log, mapToObject, message, name, onError, parser, required, retrievable, setFlag, setter, validator, validFlag |
| Constructor Summary | |
BigDecimalField(XmlField field,
Group group)
Constructor. |
|
| Method Summary | |
protected java.math.BigDecimal |
canonicalizeDecimalInput(java.lang.String bigDecimal)
Canonicalizes an user-inputted BigDecimal string
to the system's internal format. |
protected void |
doSetValue()
Sets the value of the field from data in the parser. |
protected java.lang.String |
getDefaultValidator()
A suitable validator. |
void |
setDefaultValue(java.lang.String prop)
Sets the default value for a BigDecimal field |
void |
setEmptyValue(java.lang.String prop)
Set the empty Value. |
| Methods inherited from class org.apache.turbine.services.intake.model.Field |
dispose, doSetValue, getDefault, getDefaultValue, getDisplayName, getDisplaySize, getEmptyValue, getHTMLString, getInitialValue, getKey, getLocale, getMaxSize, getMessage, getName, getProperty, getSafeEmptyValue, getStringValue, getTestValue, getValidator, getValue, getValueIfAbsent, init, init, isRequired, isSet, isValid, removeFromRequest, setDisplayName, setMessage, setProperty, setRequired, setRequired, toString, validate, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BigDecimalField(XmlField field,
Group group)
throws IntakeException
field - xml field definition objectgroup - xml group definition object
IntakeException - thrown by superclass| Method Detail |
public void setDefaultValue(java.lang.String prop)
setDefaultValue in class Fieldprop - Parameter for the default valuespublic void setEmptyValue(java.lang.String prop)
setEmptyValue in class Fieldprop - The value to use if the field is empty.protected java.lang.String getDefaultValidator()
getDefaultValidator in class Fieldprotected void doSetValue()
doSetValue in class Fieldprotected final java.math.BigDecimal canonicalizeDecimalInput(java.lang.String bigDecimal)
BigDecimal string
to the system's internal format.
bigDecimal - Text conforming to a BigDecimal
description for a set of DecimalFormatSymbols.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||