Package io.jmix.dynmodel.meta
Record Class DynamicEntityConstraintDefinition
java.lang.Object
java.lang.Record
io.jmix.dynmodel.meta.DynamicEntityConstraintDefinition
- Record Components:
name- constraint nametarget- validation targettype- validator typeevaluator- expression evaluator nameexpression- validation expressionvalidator- bean validator nameattributes- attributes participating in validationpath- violation property pathgroups- validation group aliases or fully qualified class namesmessage- validation message
public record DynamicEntityConstraintDefinition(@Nullable String name, @Nullable String target, String type, @Nullable String evaluator, @Nullable String expression, @Nullable String validator, List<String> attributes, @Nullable String path, List<String> groups, @Nullable LocalizedValue message)
extends Record
Defines an entity-level validation constraint for a dynamic model entity.
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicEntityConstraintDefinition(@Nullable String name, @Nullable String target, String type, @Nullable String evaluator, @Nullable String expression, @Nullable String validator, List<String> attributes, @Nullable String path, List<String> groups, @Nullable LocalizedValue message) Creates an entity constraint definition. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable StringReturns the value of theevaluatorrecord component.@Nullable StringReturns the value of theexpressionrecord component.groups()Returns the value of thegroupsrecord component.final inthashCode()Returns a hash code value for this object.@Nullable LocalizedValuemessage()Returns the value of themessagerecord component.@Nullable Stringname()Returns the value of thenamerecord component.@Nullable Stringpath()Returns the value of thepathrecord component.@Nullable Stringtarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.@Nullable StringReturns the value of thevalidatorrecord component.
-
Constructor Details
-
DynamicEntityConstraintDefinition
public DynamicEntityConstraintDefinition(@Nullable String name, @Nullable String target, String type, @Nullable String evaluator, @Nullable String expression, @Nullable String validator, List<String> attributes, @Nullable String path, List<String> groups, @Nullable LocalizedValue message) Creates an entity constraint definition.- Parameters:
name- constraint nametarget- validation targettype- validator typeevaluator- expression evaluator nameexpression- validation expressionvalidator- bean validator nameattributes- attributes participating in validationpath- violation property pathgroups- validation group aliases or fully qualified class namesmessage- validation message
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
evaluator
Returns the value of theevaluatorrecord component.- Returns:
- the value of the
evaluatorrecord component
-
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-
validator
Returns the value of thevalidatorrecord component.- Returns:
- the value of the
validatorrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
groups
Returns the value of thegroupsrecord component.- Returns:
- the value of the
groupsrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-