T - The type of the bean being convertedpublic class RegexToBeanField<T> extends AbstractFieldMapEntry<String,String,T>
BeanField.errorLocale, field| Constructor and Description |
|---|
RegexToBeanField(String pattern,
BeanField<T,String> field,
Locale errorLocale)
Initializes this mapping with the regular expression used to map header
names and the
BeanField they should be mapped to. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String key)
Determines whether or not the given key is contained in this entry.
|
String |
getInitializer()
Returns the information used to initialize this entry.
|
getBeanField, setErrorLocalepublic RegexToBeanField(String pattern, BeanField<T,String> field, Locale errorLocale)
BeanField they should be mapped to.pattern - A valid regular expression against which potential header
names are matchedfield - The BeanField this mapping maps toerrorLocale - The locale for error messagespublic boolean contains(String key)
ComplexFieldMapEntrykey - The key to be locatedkey is represented by this entrypublic String getInitializer()
ComplexFieldMapEntryCopyright © 2005–2025. All rights reserved.