public class ValueFormatterMessageInterpolator extends Object implements javax.validation.MessageInterpolator
Formatter. Check the Formatter documentation for formatting syntax and options. If no
formatting string is specified String.valueOf(validatedValue)} is called.
To interpolate the validated value add {validatedValue} into the message. To specify a format
pattern use ${validatedValue:[format string]}, e.g. ${validatedValue:%1$ty}.| Modifier and Type | Field and Description |
|---|---|
static String |
VALIDATED_VALUE_FORMAT_SEPARATOR |
static String |
VALIDATED_VALUE_KEYWORD |
| Constructor and Description |
|---|
ValueFormatterMessageInterpolator() |
ValueFormatterMessageInterpolator(javax.validation.MessageInterpolator userMessageInterpolator) |
| Modifier and Type | Method and Description |
|---|---|
String |
interpolate(String message,
javax.validation.MessageInterpolator.Context context) |
String |
interpolate(String message,
javax.validation.MessageInterpolator.Context context,
Locale locale) |
public static final String VALIDATED_VALUE_KEYWORD
public static final String VALIDATED_VALUE_FORMAT_SEPARATOR
public ValueFormatterMessageInterpolator()
public ValueFormatterMessageInterpolator(javax.validation.MessageInterpolator userMessageInterpolator)
Copyright © 2007-2012 Red Hat Middleware, LLC. All Rights Reserved