org.hibernate.validator.messageinterpolation
Class ResourceBundleMessageInterpolator
java.lang.Object
org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator
- All Implemented Interfaces:
- javax.validation.MessageInterpolator
public class ResourceBundleMessageInterpolator
- extends java.lang.Object
- implements javax.validation.MessageInterpolator
Resource bundle backed message interpolator.
- Author:
- Emmanuel Bernard, Hardy Ferentschik, Gunnar Morling, Kevin Pollet - SERLI - (kevin.pollet@serli.com)
| Nested classes/interfaces inherited from interface javax.validation.MessageInterpolator |
javax.validation.MessageInterpolator.Context |
|
Method Summary |
java.lang.String |
interpolate(java.lang.String message,
javax.validation.MessageInterpolator.Context context)
|
java.lang.String |
interpolate(java.lang.String message,
javax.validation.MessageInterpolator.Context context,
java.util.Locale locale)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_VALIDATION_MESSAGES
public static final java.lang.String DEFAULT_VALIDATION_MESSAGES
- The name of the default message bundle.
- See Also:
- Constant Field Values
USER_VALIDATION_MESSAGES
public static final java.lang.String USER_VALIDATION_MESSAGES
- The name of the user-provided message bundle as defined in the specification.
- See Also:
- Constant Field Values
ResourceBundleMessageInterpolator
public ResourceBundleMessageInterpolator()
ResourceBundleMessageInterpolator
public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator)
ResourceBundleMessageInterpolator
public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator,
boolean cacheMessages)
interpolate
public java.lang.String interpolate(java.lang.String message,
javax.validation.MessageInterpolator.Context context)
- Specified by:
interpolate in interface javax.validation.MessageInterpolator
interpolate
public java.lang.String interpolate(java.lang.String message,
javax.validation.MessageInterpolator.Context context,
java.util.Locale locale)
- Specified by:
interpolate in interface javax.validation.MessageInterpolator
Copyright © 2011 Oracle Corporation. All Rights Reserved.