Class ElementConstraintsDto
java.lang.Object
org.evomaster.client.java.controller.api.dto.constraint.ElementConstraintsDto
Set of possible constraints applicable to a single element (ie, no intra-dependency constraints among
different elements).
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)
-
Field Summary
FieldsModifier and TypeFieldDescriptionContains the value of @DecimalMax(value=String) for an annotated element of an entity.Contains the value of @DecimalMin(value=String) for an annotated element of an entity.Indicates the element contains a @Email annotaion The string has to be a well-formed email address.The element contains a @Negative annotation.The element contains a @NegativeOrZero annotation.Indicates that the element contains a @NotBlank annotation.The element contains a @Positive annotation.The element contains a @PositiveOrZero annotation.Represents the maximum value (@Max) allowed for a field of an entity.Represents the minimum value (@Min) allowed for a field of an entity.Stores the string value of a @Pattern(regexp=string) annotation for a given element. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
isNullable
-
isOptional
-
minValue
Represents the minimum value (@Min) allowed for a field of an entity. The following types are supported:- BigDecimal
- BigInteger
- byte, short, int, long, and their respective wrappers
-
maxValue
Represents the maximum value (@Max) allowed for a field of an entity. The following types are supported:- BigDecimal
- BigInteger
- byte, short, int, long, and their respective wrappers
-
enumValuesAsStrings
-
decimalMinValue
Contains the value of @DecimalMin(value=String) for an annotated element of an entity. Supported types are: - BigDecimal - BigInteger - CharSequence - byte, short, int, long, and their respective wrappers Note that double and float are not supported due to rounding errors (some providers might provide some approximative support). null elements are considered valid. See official documentation -
decimalMaxValue
Contains the value of @DecimalMax(value=String) for an annotated element of an entity. Supported types are: - BigDecimal - BigInteger - CharSequence - byte, short, int, long, and their respective wrappers Note that double and float are not supported due to rounding errors (some providers might provide some approximative support). null elements are considered valid. Official documentation -
isNotBlank
Indicates that the element contains a @NotBlank annotation. The annotated element must not be null and must contain at least one non-whitespace character. Accepts CharSequence. Official documentation -
isEmail
Indicates the element contains a @Email annotaion The string has to be a well-formed email address. Accepts CharSequence. Official documentation -
isNegative
The element contains a @Negative annotation. Supported types are: - BigDecimal - BigInteger - byte, short, int, long, float, double and their respective wrappers. null elements are considered valid. E.g. if a field foo is annotated @Negative, the value of foo can be null. Official documentation -
isNegativeOrZero
The element contains a @NegativeOrZero annotation. Supported types are: - BigDecimal - BigInteger - byte, short, int, long, float, double and their respective wrappers. null elements are considered valid. E.g. if a field foo is annotated @NegativeOrZero, the value of foo can be null. See official documentation -
isPositive
The element contains a @Positive annotation. Supported types are: - BigDecimal - BigInteger - byte, short, int, long, float, double and their respective wrappers. null elements are considered valid. E.g. if a field foo is annotated @Positive, the value of foo can be null. Official documentation -
isPositiveOrZero
The element contains a @PositiveOrZero annotation. Supported types are: - BigDecimal - BigInteger - byte, short, int, long, float, double and their respective wrappers. null elements are considered valid. E.g. if a field foo is annotated @PositiveOrZero, the value of foo can be null. Official documentation -
isFuture
-
isFutureOrPresent
-
isPast
-
isPastOrPresent
-
isAlwaysNull
-
patternRegExp
Stores the string value of a @Pattern(regexp=string) annotation for a given element. The regular expression follows the Java regular expression conventions see Pattern. null elements are considered valid. If a field foo contains the @Pattern(regexp=string) annotation, foo can be null (unless explicitly @NotNull). Accepts CharSequence. -
sizeMin
-
sizeMax
-
digitsInteger
-
digitsFraction
-
-
Constructor Details
-
ElementConstraintsDto
public ElementConstraintsDto()
-