Class MoneyScaleValidator

×News: OpenXava 7.7 released - March 9 · Read more
java.lang.Object
org.openxava.validators.MoneyScaleValidator
All Implemented Interfaces:
Serializable, IPropertyValidator

public class MoneyScaleValidator extends Object implements IPropertyValidator
Author:
Javier Paniza
See Also:
  • Constructor Details

    • MoneyScaleValidator

      public MoneyScaleValidator()
  • Method Details

    • validate

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

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

      Specified by:
      validate in interface IPropertyValidator
      Parameters:
      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.
      Throws:
      Exception - Any unexpected problem.