Package io.jmix.dynmodel
Record Class DynamicConstraintViolation
java.lang.Object
java.lang.Record
io.jmix.dynmodel.DynamicConstraintViolation
- Record Components:
path- property path associated with the violationmessage- localized validation messagemessageTemplate- validation message templateinvalidValue- invalid value
public record DynamicConstraintViolation(@Nullable String path, String message, String messageTemplate, @Nullable Object invalidValue)
extends Record
Describes a validation violation produced by dynamic model validation.
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicConstraintViolation(@Nullable String path, String message, String messageTemplate, @Nullable Object invalidValue) Creates an instance of aDynamicConstraintViolationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable ObjectReturns the value of theinvalidValuerecord component.message()Returns the value of themessagerecord component.Returns the value of themessageTemplaterecord component.@Nullable Stringpath()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DynamicConstraintViolation
public DynamicConstraintViolation(@Nullable String path, String message, String messageTemplate, @Nullable Object invalidValue) Creates an instance of aDynamicConstraintViolationrecord class.- Parameters:
path- the value for thepathrecord componentmessage- the value for themessagerecord componentmessageTemplate- the value for themessageTemplaterecord componentinvalidValue- the value for theinvalidValuerecord component
-
-
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). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
messageTemplate
Returns the value of themessageTemplaterecord component.- Returns:
- the value of the
messageTemplaterecord component
-
invalidValue
Returns the value of theinvalidValuerecord component.- Returns:
- the value of the
invalidValuerecord component
-