Class ConstraintLocalDateMaximum

java.lang.Object
io.vertigo.easyforms.runner.pack.constraint.ConstraintLocalDateMaximum
All Implemented Interfaces:
io.vertigo.datamodel.smarttype.definitions.Constraint<Double,LocalDate>

public final class ConstraintLocalDateMaximum extends Object implements io.vertigo.datamodel.smarttype.definitions.Constraint<Double,LocalDate>
Contrainte sur la valeur maximale d'une date. arguments = valeur maximale.
Author:
npiedeloup
  • Constructor Details

    • ConstraintLocalDateMaximum

      public ConstraintLocalDateMaximum(String args, Optional<String> overrideMessageOpt, Optional<String> overrideResourceMessageOpt)
      Constructor.
      Parameters:
      args - the maximum value
  • Method Details

    • checkConstraint

      public boolean checkConstraint(LocalDate value)
      Specified by:
      checkConstraint in interface io.vertigo.datamodel.smarttype.definitions.Constraint<Double,LocalDate>
    • getErrorMessage

      public io.vertigo.core.locale.LocaleMessageText getErrorMessage()
      Specified by:
      getErrorMessage in interface io.vertigo.datamodel.smarttype.definitions.Constraint<Double,LocalDate>
    • getProperty

      public io.vertigo.datamodel.smarttype.definitions.Property getProperty()
      Specified by:
      getProperty in interface io.vertigo.datamodel.smarttype.definitions.Constraint<Double,LocalDate>
    • getPropertyValue

      public Double getPropertyValue()
      Specified by:
      getPropertyValue in interface io.vertigo.datamodel.smarttype.definitions.Constraint<Double,LocalDate>