Class BigDecimalField

java.lang.Object
org.apache.fulcrum.intake.model.Field<BigDecimal>
org.apache.fulcrum.intake.model.BigDecimalField
All Implemented Interfaces:
Serializable, org.apache.avalon.framework.logger.LogEnabled

public class BigDecimalField extends Field<BigDecimal>
Version:
$Id$
Author:
John McNally, Daniel Rall, Henning P. Schmiedehausen, Quinton McCombs, Thomas Vandahl
See Also:
  • Constructor Details

    • BigDecimalField

      public BigDecimalField(XmlField field, Group group) throws IntakeException
      Constructor.
      Parameters:
      field - xml field definition object
      group - xml group definition object
      Throws:
      IntakeException - thrown by superclass
  • Method Details

    • setDefaultValue

      public void setDefaultValue(String prop)
      Sets the default value for a BigDecimal field
      Specified by:
      setDefaultValue in class Field<BigDecimal>
      Parameters:
      prop - Parameter for the default values
    • setEmptyValue

      public void setEmptyValue(String prop)
      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 class Field<BigDecimal>
      Parameters:
      prop - The value to use if the field is empty.
    • getDefaultValidator

      protected String getDefaultValidator()
      A suitable validator.
      Overrides:
      getDefaultValidator in class Field<BigDecimal>
      Returns:
      A suitable validator
    • doSetValue

      protected void doSetValue()
      Sets the value of the field from data in the parser.
      Specified by:
      doSetValue in class Field<BigDecimal>