Enum Class AttributeConstraintAlias
java.lang.Object
java.lang.Enum<AttributeConstraintAlias>
io.jmix.dynmodelflowui.view.attributeconstraint.AttributeConstraintAlias
- All Implemented Interfaces:
Serializable,Comparable<AttributeConstraintAlias>,Constable
Bean Validation aliases supported by Dynamic Model attribute constraints.
The list mirrors the YAML reference table in
doc/features/dynamic-model/yaml-configuration.md. Each constant carries:
- the YAML annotation name,
- the
applicabilitythat controls which attribute types may use the constraint, - the parameter schema (key, type, required flag, optional default value) consumed by
DynamicAttributeConstraintModelDetailViewto render the typed parameter inputs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enumNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionannotationsFor(AttributeKind kind) booleanappliesTo(AttributeKind kind) static @Nullable AttributeConstraintAliasfromAnnotation(@Nullable String annotation) booleanTrue for aliases where every parameter is individually optional but at least one must be present for the constraint to be meaningful (e.g.static AttributeConstraintAliasReturns the enum constant of this class with the specified name.static AttributeConstraintAlias[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_NULL
-
NOT_EMPTY
-
NOT_BLANK
-
SIZE
-
LENGTH
-
MIN
-
MAX
-
DECIMAL_MIN
-
DECIMAL_MAX
-
DIGITS
-
POSITIVE
-
POSITIVE_OR_ZERO
-
NEGATIVE
-
NEGATIVE_OR_ZERO
-
PAST
-
PAST_OR_PRESENT
-
FUTURE
-
FUTURE_OR_PRESENT
-
PATTERN
-
EMAIL
-
ASSERT_TRUE
-
ASSERT_FALSE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getAnnotation
-
getApplicability
-
getParameters
-
appliesTo
-
requiresAtLeastOneParameter
public boolean requiresAtLeastOneParameter()True for aliases where every parameter is individually optional but at least one must be present for the constraint to be meaningful (e.g.@Size,@Lengthwith neitherminnormaxset is a no-op). -
annotationsFor
-
fromAnnotation
-