Class MoneyAmountValidator
java.lang.Object
com.broadleafcommerce.dataimport.service.validation.RegexFieldValidator
com.broadleafcommerce.dataimport.service.validation.MoneyAmountValidator
- All Implemented Interfaces:
ImportFieldValidator
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 Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class com.broadleafcommerce.dataimport.service.validation.RegexFieldValidator
validate
-
Field Details
-
MONEY_AMOUNT_REGEX
- See Also:
-
-
Constructor Details
-
MoneyAmountValidator
public MoneyAmountValidator()
-