org.apache.turbine.services.intake.model
Class AbstractNumberField

java.lang.Object
  extended by org.apache.turbine.services.intake.model.Field
      extended by org.apache.turbine.services.intake.model.AbstractNumberField
Direct Known Subclasses:
BigDecimalField, DoubleField, FloatField

public abstract class AbstractNumberField
extends Field

Provides helper methods for localizing floating point numbers

Version:
$Id: BigDecimalField.java 223047 2004-07-01 11:30:52Z epugh $
Author:
Thomas Vandahl

Field Summary
 
Fields inherited from class org.apache.turbine.services.intake.model.Field
alwaysRequired, defaultFieldPackage, defaultValidatorPackage, defaultValue, displayName, emptyValue, getter, group, ifRequiredMessage, initialized, isDebugEnabled, isMultiValued, key, log, mapToObject, message, name, onError, parser, required, retrievable, setFlag, setter, validated, validator, validFlag
 
Constructor Summary
AbstractNumberField(XmlField field, Group group)
          Constructor.
 
Method Summary
protected  java.lang.String canonicalizeDecimalInput(java.lang.String number)
          Canonicalizes an user-inputted BigDecimal string to the system's internal format.
 
Methods inherited from class org.apache.turbine.services.intake.model.Field
dispose, doSetValue, doSetValue, getDefault, getDefaultValidator, getDefaultValue, getDisplayName, getDisplaySize, getEmptyValue, getGroup, getHTMLString, getInitialValue, getKey, getLocale, getMaxSize, getMessage, getName, getProperty, getSafeEmptyValue, getStringValue, getTestValue, getValidator, getValue, getValueIfAbsent, init, init, isMultiValued, isRequired, isSet, isValid, isValidated, removeFromRequest, setDefaultValue, setDisplayName, setEmptyValue, 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

AbstractNumberField

public AbstractNumberField(XmlField field,
                           Group group)
                    throws IntakeException
Constructor.

Parameters:
field - xml field definition object
group - xml group definition object
Throws:
IntakeException - thrown by superclass
Method Detail

canonicalizeDecimalInput

protected final java.lang.String canonicalizeDecimalInput(java.lang.String number)
Canonicalizes an user-inputted BigDecimal string to the system's internal format.

Parameters:
number - Text conforming to a Number description for a set of DecimalFormatSymbols.
Returns:
The canonicalized representation.


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.