Record Class ConstraintViolationBean.LocalizedMessageParameter
java.lang.Object
java.lang.Record
jp.ecuacion.lib.core.jakartavalidation.bean.ConstraintViolationBean.LocalizedMessageParameter
- Enclosing class:
ConstraintViolationBean
public static record ConstraintViolationBean.LocalizedMessageParameter(String parameterKey, PropertyFileUtil.PropertyFileUtilFileKindEnum[] fileKinds, String propertyFileKey, PropertyFileUtil.Arg[] args)
extends Record
Stores parameters of information on a message for ValidationAppException.
It is resolved to message value at ExceptionHandler Because there is a locale there.
When you designate fileKinds = new PropertyFileUtilFileKindEnum[] {} (length is zero), propertyPathKey is set as the value.
-
Constructor Summary
ConstructorsConstructorDescriptionLocalizedMessageParameter(String parameterKey, PropertyFileUtil.PropertyFileUtilFileKindEnum[] fileKinds, String propertyFileKey, PropertyFileUtil.Arg... args) Creates an instance of aLocalizedMessageParameterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the value of theargsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileKindsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theparameterKeyrecord component.Returns the value of thepropertyFileKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocalizedMessageParameter
public LocalizedMessageParameter(String parameterKey, PropertyFileUtil.PropertyFileUtilFileKindEnum[] fileKinds, String propertyFileKey, PropertyFileUtil.Arg... args) Creates an instance of aLocalizedMessageParameterrecord class.- Parameters:
parameterKey- the value for theparameterKeyrecord componentfileKinds- the value for thefileKindsrecord componentpropertyFileKey- the value for thepropertyFileKeyrecord componentargs- the value for theargsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
parameterKey
Returns the value of theparameterKeyrecord component.- Returns:
- the value of the
parameterKeyrecord component
-
fileKinds
Returns the value of thefileKindsrecord component.- Returns:
- the value of the
fileKindsrecord component
-
propertyFileKey
Returns the value of thepropertyFileKeyrecord component.- Returns:
- the value of the
propertyFileKeyrecord component
-
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-