Package io.jmix.dynmodel.meta
Record Class DynamicAttributeConstraintDefinition
java.lang.Object
java.lang.Record
io.jmix.dynmodel.meta.DynamicAttributeConstraintDefinition
- Record Components:
annotation- constraint annotation aliasparameters- constraint parametersgroups- validation group aliases or fully qualified class namesmessage- validation message
public record DynamicAttributeConstraintDefinition(String annotation, Map<String,Object> parameters, List<String> groups, @Nullable LocalizedValue message)
extends Record
Defines a validation constraint for a dynamic attribute.
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicAttributeConstraintDefinition(String annotation, Map<String, Object> parameters, List<String> groups, @Nullable LocalizedValue message) Creates an attribute constraint definition. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationrecord component.final booleanIndicates whether some other object is "equal to" this one.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.Returns the value of theparametersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DynamicAttributeConstraintDefinition
public DynamicAttributeConstraintDefinition(String annotation, Map<String, Object> parameters, List<String> groups, @Nullable LocalizedValue message) Creates an attribute constraint definition.- Parameters:
annotation- constraint annotation aliasparameters- constraint parametersgroups- 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). -
annotation
Returns the value of theannotationrecord component.- Returns:
- the value of the
annotationrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord 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
-