Class MoneyAmountValidator

java.lang.Object
com.broadleafcommerce.dataimport.service.validation.RegexFieldValidator
com.broadleafcommerce.dataimport.service.validation.MoneyAmountValidator
All Implemented Interfaces:
ImportFieldValidator

public class MoneyAmountValidator extends RegexFieldValidator
Simple validation that allows for numbers only, with a single decimal and from 1-5 decimal places. No decimal should be used if no decimal places are used. So, '5' is ok, as is '5.9' and '5.99999'. But '5.' is not, nor is '5.999999'.
Author:
Kelly Tisdell
  • Field Details

  • Constructor Details

    • MoneyAmountValidator

      public MoneyAmountValidator()