Annotation Interface LessThanOrEqualTo
@PlacedAtClass
@Target(TYPE)
@Retention(RUNTIME)
@Repeatable(LessThanOrEqualTo.LessThanOrEqualToList.class)
@Documented
@Constraint(validatedBy=LessThanOrEqualToValidator.class)
public @interface LessThanOrEqualTo
Is valid when the value of
propertyPaths is
less than or equal to the value of basisPropertyPath.
It returns valid when the value of propertyPaths
or basisPropertyPath is null or blank string.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefines severalLessThanOrEqualToannotations on the same element. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionIs the propertyPath of the basis for comparison.String[]Is the propertyPath being compared. -
Optional Element Summary
Optional Elements
-
Element Details
-
propertyPath
String[] propertyPathIs the propertyPath being compared. -
basisPropertyPath
String basisPropertyPathIs the propertyPath of the basis for comparison. -
typeConversionFromString
TypeConversionFromString typeConversionFromStringOffers conversion to designated type from string value before comparing values.Default value is
NONE, which means no conversions executed.- Default:
NONE
-
message
String messageReturns message ID.- Returns:
- message ID
- Default:
"{jp.ecuacion.lib.validation.constraints.LessThanOrEqualTo.message}"
-
groups
-
payload
-