| Modifier and Type | Field and Description |
|---|---|
| private final boolean | cachingEnabled
Flag indicating whether this interpolator should cache some of the interpolation steps. |
| public static final String | CONTRIBUTOR_VALIDATION_MESSAGES
Default name of the message bundle defined by a constraint definition contributor. |
| private final ResourceBundleLocator | contributorResourceBundleLocator
Loads contributed resource bundles. |
| private static final int | DEFAULT_CONCURRENCY_LEVEL
The default concurrency level for this cache. |
| private static final int | DEFAULT_INITIAL_CAPACITY
The default initial capacity for this cache. |
| private static final float | DEFAULT_LOAD_FACTOR
The default load factor for this cache. |
| public static final String | DEFAULT_VALIDATION_MESSAGES
The name of the default message bundle. |
| private final ResourceBundleLocator | defaultResourceBundleLocator
Loads built-in resource bundles. |
| private static final Pattern | |
| private static final Pattern | |
| private final LocaleResolver | localeResolver
The locale resolver. |
| private final LocaleResolverContext | localeResolverContext
The execution context of the locale resolver. |
| private static final Log | |
| private final ConcurrentReferenceHashMap | resolvedMessages
Step 1-3 of message interpolation can be cached. |
| private static final Pattern | |
| private static final Pattern | |
| private final ConcurrentReferenceHashMap | tokenizedELMessages
Step 5 of message interpolation replaces EL expressions. |
| private final ConcurrentReferenceHashMap | tokenizedParameterMessages
Step 4 of message interpolation replaces message parameters. |
| public static final String | USER_VALIDATION_MESSAGES
The name of the user-provided message bundle as defined in the specification. |
| private final ResourceBundleLocator | userResourceBundleLocator
Loads user-specified resource bundles. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AbstractMessageInterpolator(ResourceBundleLocator
ResourceBundleLocator used to load user provided resource bundle
|
| public | AbstractMessageInterpolator(ResourceBundleLocator
ResourceBundleLocator used to load user provided resource bundleResourceBundleLocator used to load resource bundle of constraint contributor
|
| public | AbstractMessageInterpolator(ResourceBundleLocator
ResourceBundleLocator used to load user provided resource bundleResourceBundleLocator used to load resource bundle of constraint contributorWhether resolved messages should be cached or not. cacheMessages)
|
| public | AbstractMessageInterpolator(Set<Locale>
the set of locales to initialize at bootstrap locales, Locale the default locale defaultLocale, LocaleResolver the locale resolver localeResolver, boolean if the resource bundled should be initialized at initialization time, this is useful in the case of a
preloadResourceBundles)PredefinedScopeValidatorFactoryImpl
|
| public | AbstractMessageInterpolator(ResourceBundleLocator
ResourceBundleLocator used to load user provided resource bundlethe set of locales to initialize at bootstrap locales, Locale the default locale defaultLocale, LocaleResolver the locale resolver localeResolver, boolean if the resource bundled should be initialized at initialization time, this is useful in the case of a
preloadResourceBundles)PredefinedScopeValidatorFactoryImpl
|
| public | AbstractMessageInterpolator(ResourceBundleLocator
ResourceBundleLocator used to load user provided resource bundleResourceBundleLocator used to load resource bundle of constraint contributorthe set of locales to initialize at bootstrap localesToInitialize, Locale the default locale defaultLocale, LocaleResolver the locale resolver localeResolver, boolean if the resource bundled should be initialized at initialization time, this is useful in the case of a
preloadResourceBundles)PredefinedScopeValidatorFactoryImpl
|
| public | AbstractMessageInterpolator(ResourceBundleLocator
ResourceBundleLocator used to load user provided resource bundleResourceBundleLocator used to load resource bundle of constraint
contributorthe set of locales to initialize at bootstrap locales, Locale the default locale defaultLocale, LocaleResolver the locale resolver localeResolver, boolean if the resource bundled should be initialized at initialization time, this is useful in the case of a
preloadResourceBundles, boolean PredefinedScopeValidatorFactoryImplwhether resolved messages should be cached or not cacheMessages)
|
| Modifier and Type | Method and Description |
|---|---|
| private Set | |
| private List | getParameterTokens(String resolvedMessage, ConcurrentReferenceHashMap<String, List<Token>> cache, InterpolationTermType termType)
|
| private boolean | |
| public String | interpolate(String
the message to interpolate message, MessageInterpolator.contextual information related to the interpolation contextImplements jakarta. |
| public String | interpolate(String
the message to interpolate message, MessageInterpolator.contextual information related to the interpolation context,the locale targeted for the message locale)Implements jakarta. |
| protected abstract String | |
| private String | |
| private String | interpolateExpression(TokenIterator tokenIterator, MessageInterpolator.
|
| private String | Returns: the interpolated message.the message to interpolate message, MessageInterpolator.the context for this interpolation context,the locale)Locale to use for the resource bundle.Runs the message interpolation according to algorithm specified in the Bean Validation specification. |
| private String | |
| private String | |
| private String | |
| private String |
| cachingEnabled | back to summary |
|---|---|
| private final boolean cachingEnabled Flag indicating whether this interpolator should cache some of the interpolation steps. | |
| CONTRIBUTOR_VALIDATION_MESSAGES | back to summary |
|---|---|
| public static final String CONTRIBUTOR_VALIDATION_MESSAGES Default name of the message bundle defined by a constraint definition contributor.
| |
| contributorResourceBundleLocator | back to summary |
|---|---|
| private final ResourceBundleLocator contributorResourceBundleLocator Loads contributed resource bundles. | |
| DEFAULT_CONCURRENCY_LEVEL | back to summary |
|---|---|
| private static final int DEFAULT_CONCURRENCY_LEVEL The default concurrency level for this cache. | |
| DEFAULT_INITIAL_CAPACITY | back to summary |
|---|---|
| private static final int DEFAULT_INITIAL_CAPACITY The default initial capacity for this cache. | |
| DEFAULT_LOAD_FACTOR | back to summary |
|---|---|
| private static final float DEFAULT_LOAD_FACTOR The default load factor for this cache. | |
| DEFAULT_VALIDATION_MESSAGES | back to summary |
|---|---|
| public static final String DEFAULT_VALIDATION_MESSAGES The name of the default message bundle. | |
| defaultResourceBundleLocator | back to summary |
|---|---|
| private final ResourceBundleLocator defaultResourceBundleLocator Loads built-in resource bundles. | |
| DOLLAR | back to summary |
|---|---|
| private static final Pattern DOLLAR | |
| LEFT_BRACE | back to summary |
|---|---|
| private static final Pattern LEFT_BRACE | |
| localeResolver | back to summary |
|---|---|
| private final LocaleResolver localeResolver The locale resolver. | |
| localeResolverContext | back to summary |
|---|---|
| private final LocaleResolverContext localeResolverContext The execution context of the locale resolver. | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| resolvedMessages | back to summary |
|---|---|
| private final ConcurrentReferenceHashMap<LocalizedMessage, String> resolvedMessages Step 1-3 of message interpolation can be cached. We do this in this map. | |
| RIGHT_BRACE | back to summary |
|---|---|
| private static final Pattern RIGHT_BRACE | |
| SLASH | back to summary |
|---|---|
| private static final Pattern SLASH | |
| tokenizedELMessages | back to summary |
|---|---|
| private final ConcurrentReferenceHashMap<String, List<Token>> tokenizedELMessages Step 5 of message interpolation replaces EL expressions. The token list for EL expressions is cached in this map. | |
| tokenizedParameterMessages | back to summary |
|---|---|
| private final ConcurrentReferenceHashMap<String, List<Token>> tokenizedParameterMessages Step 4 of message interpolation replaces message parameters. The token list for message parameters is cached in this map. | |
| USER_VALIDATION_MESSAGES | back to summary |
|---|---|
| public static final String USER_VALIDATION_MESSAGES The name of the user-provided message bundle as defined in the specification. | |
| userResourceBundleLocator | back to summary |
|---|---|
| private final ResourceBundleLocator userResourceBundleLocator Loads user-specified resource bundles. | |
| AbstractMessageInterpolator | back to summary |
|---|---|
| public AbstractMessageInterpolator()
| |
| AbstractMessageInterpolator | back to summary |
|---|---|
| public AbstractMessageInterpolator(ResourceBundleLocator userResourceBundleLocator)
| |
| AbstractMessageInterpolator | back to summary |
|---|---|
| public AbstractMessageInterpolator(ResourceBundleLocator userResourceBundleLocator, ResourceBundleLocator contributorResourceBundleLocator)
| |
| AbstractMessageInterpolator | back to summary |
|---|---|
| public AbstractMessageInterpolator(ResourceBundleLocator userResourceBundleLocator, ResourceBundleLocator contributorResourceBundleLocator, boolean cacheMessages)
| |
| AbstractMessageInterpolator | back to summary |
|---|---|
| public AbstractMessageInterpolator(Set<Locale> locales, Locale defaultLocale, LocaleResolver localeResolver, boolean preloadResourceBundles)
| |
| AbstractMessageInterpolator | back to summary |
|---|---|
| public AbstractMessageInterpolator(ResourceBundleLocator userResourceBundleLocator, Set<Locale> locales, Locale defaultLocale, LocaleResolver localeResolver, boolean preloadResourceBundles)
| |
| AbstractMessageInterpolator | back to summary |
|---|---|
| public AbstractMessageInterpolator(ResourceBundleLocator userResourceBundleLocator, ResourceBundleLocator contributorResourceBundleLocator, Set<Locale> localesToInitialize, Locale defaultLocale, LocaleResolver localeResolver, boolean preloadResourceBundles)
| |
| AbstractMessageInterpolator | back to summary |
|---|---|
| public AbstractMessageInterpolator(ResourceBundleLocator userResourceBundleLocator, ResourceBundleLocator contributorResourceBundleLocator, Set<Locale> locales, Locale defaultLocale, LocaleResolver localeResolver, boolean preloadResourceBundles, boolean cacheMessages)
| |
| getAllLocales | back to summary |
|---|---|
| private Set | |
| getParameterTokens | back to summary |
|---|---|
| private List | |
| hasReplacementTakenPlace | back to summary |
|---|---|
| private boolean hasReplacementTakenPlace(String origMessage, String newMessage) | |
| interpolate | back to summary |
|---|---|
| public String interpolate(String message, MessageInterpolator. Implements jakarta. Doc from jakarta. Interpolates the message template based on the constraint validation context.
The locale is defaulted according to the
| |
| interpolate | back to summary |
|---|---|
| public String interpolate(String message, MessageInterpolator. Implements jakarta. Doc from jakarta. Interpolates the message template based on the constraint validation context.
The | |
| interpolate | back to summary |
|---|---|
| protected abstract String interpolate(MessageInterpolator. | |
| interpolateBundleMessage | back to summary |
|---|---|
| private String interpolateBundleMessage(String message, ResourceBundle bundle, Locale locale, boolean recursive) throws MessageDescriptorFormatException | |
| interpolateExpression | back to summary |
|---|---|
| private String interpolateExpression(TokenIterator tokenIterator, MessageInterpolator. | |
| interpolateMessage | back to summary |
|---|---|
| private String interpolateMessage(String message, MessageInterpolator. Runs the message interpolation according to algorithm specified in the Bean Validation specification. Note: Look-ups in user bundles is recursive whereas look-ups in default bundle are not!
| |
| removeCurlyBraces | back to summary |
|---|---|
| private String removeCurlyBraces(String parameter) | |
| replaceEscapedLiterals | back to summary |
|---|---|
| private String replaceEscapedLiterals(String resolvedMessage) | |
| resolveMessage | back to summary |
|---|---|
| private String resolveMessage(String message, Locale locale) | |
| resolveParameter | back to summary |
|---|---|
| private String resolveParameter(String parameterName, ResourceBundle bundle, Locale locale, boolean recursive) throws MessageDescriptorFormatException | |