public class ElementConstraintsDto extends Object
Note: the type and id of the element is undefined here. Some constraint might be interpreted differently based on the type of the element. For example, a min value could be an integer or a double based on the element. This also implies that numeric values are passed as string (this also helps with JSON representation issues)
| Modifier and Type | Field and Description |
|---|---|
String |
decimalMaxValue
Contains the value of @DecimalMax(value=String) for an annotated element of an entity.
|
String |
decimalMinValue
Contains the value of @DecimalMin(value=String) for an annotated element of an entity.
|
Integer |
digitsFraction |
Integer |
digitsInteger |
List<String> |
enumValuesAsStrings |
Boolean |
isAlwaysNull |
Boolean |
isEmail
Indicates the element contains a @Email annotaion
The string has to be a well-formed email address.
|
Boolean |
isFuture |
Boolean |
isFutureOrPresent |
Boolean |
isNegative
The element contains a @Negative annotation.
|
Boolean |
isNegativeOrZero
The element contains a @NegativeOrZero annotation.
|
Boolean |
isNotBlank
Indicates that the element contains a @NotBlank annotation.
|
Boolean |
isNullable |
Boolean |
isOptional |
Boolean |
isPast |
Boolean |
isPastOrPresent |
Boolean |
isPositive
The element contains a @Positive annotation.
|
Boolean |
isPositiveOrZero
The element contains a @PositiveOrZero annotation.
|
Long |
maxValue
Represents the maximum value (@Max) allowed for a field of an entity.
|
Long |
minValue
Represents the minimum value (@Min) allowed for a field of an entity.
|
String |
patternRegExp
Stores the string value of a @Pattern(regexp=string) annotation for a given element.
|
Integer |
sizeMax |
Integer |
sizeMin |
| Constructor and Description |
|---|
ElementConstraintsDto() |
public Boolean isNullable
public Boolean isOptional
public Long minValue
public Long maxValue
public String decimalMinValue
public String decimalMaxValue
public Boolean isNotBlank
public Boolean isEmail
public Boolean isNegative
public Boolean isNegativeOrZero
public Boolean isPositive
public Boolean isPositiveOrZero
public Boolean isFuture
public Boolean isFutureOrPresent
public Boolean isPast
public Boolean isPastOrPresent
public Boolean isAlwaysNull
public String patternRegExp
public Integer sizeMin
public Integer sizeMax
public Integer digitsInteger
public Integer digitsFraction
Copyright © 2016–2023. All rights reserved.