Class BigDecimalValidator

  • All Implemented Interfaces:, IPropertyValidator

    public class BigDecimalValidator
    extends java.lang.Object
    implements IPropertyValidator
    To validate the size of integer digits and fraction digits parts.

    Ana Andres
    See Also:
    Serialized Form
    • Constructor Detail

      • BigDecimalValidator

        public BigDecimalValidator()
    • Method Detail

      • validate

        public void validate​(Messages errors,
                             java.lang.Object value,
                             java.lang.String propertyName,
                             java.lang.String modelName)
                      throws java.lang.Exception
        Description copied from interface: IPropertyValidator

        The validation errors are added to an object of type Messages.

        Specified by:
        validate in interface IPropertyValidator
        errors - Not null. Ids list to read in the resources file
        value - Value to validate. It can be null
        propertyName - Property id in the resources file
        modelName - Object id in the resources file.
        java.lang.Exception - Any unexpected problem.
      • getMaximumIntegerDigits

        public int getMaximumIntegerDigits()
      • setMaximumIntegerDigits

        public void setMaximumIntegerDigits​(int maximumIntegerDigits)
      • getMaximumFractionDigits

        public int getMaximumFractionDigits()
      • setMaximumFractionDigits

        public void setMaximumFractionDigits​(int maxinumFractionDigits)