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, jp.ecuacion.lib.core.util.internal.PropertyFileUtilFileKindEnum[] fileKinds, String propertyFileKey, PropertyFileUtil.Arg[] args)
extends Record
Stores message parameters for ValidationAppException.
Parameters in it is resolved the value from the key with
PropertyFileUtil,
and put into paramMap to be used as parameters for Validation messages.
It is used to resolve display name at ExceptionHandler Because there is a locale there.
-
Constructor Summary
ConstructorsConstructorDescriptionLocalizedMessageParameter(String parameterKey, jp.ecuacion.lib.core.util.internal.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.jp.ecuacion.lib.core.util.internal.PropertyFileUtilFileKindEnum[]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, jp.ecuacion.lib.core.util.internal.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
public jp.ecuacion.lib.core.util.internal.PropertyFileUtilFileKindEnum[] 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
-