public class SearchFieldsBean extends Object implements SearchFields
SearchFields
as JAXB-ready Java-Bean.Modifier and Type | Field and Description |
---|---|
private static Map<String,SearchFieldConfigurationBean> |
DEFAULTS
The defaults for internal
fields . |
private Map<String,SearchFieldConfigurationBean> |
fieldMap |
private List<SearchFieldConfigurationBean> |
fields |
Constructor and Description |
---|
SearchFieldsBean()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
private static void |
add(Map<String,SearchFieldConfigurationBean> map,
SearchFieldConfigurationBean fieldConfiguration)
This method adds the given
fieldConfiguration to the given map . |
SearchFieldConfigurationBean |
getFieldConfiguration(String name)
|
protected Map<String,SearchFieldConfigurationBean> |
getFieldMap()
|
List<SearchFieldConfigurationBean> |
getFields()
|
SearchFieldConfigurationBean |
getOrCreateFieldConfiguration(String name)
This method is like
SearchFields.getFieldConfiguration(String) but creates a default
SearchFieldConfiguration if none is defined. |
void |
setFields(List<SearchFieldConfigurationBean> fields) |
private static final Map<String,SearchFieldConfigurationBean> DEFAULTS
fields
.private List<SearchFieldConfigurationBean> fields
getFields()
private transient Map<String,SearchFieldConfigurationBean> fieldMap
getFieldConfiguration(String)
private static void add(Map<String,SearchFieldConfigurationBean> map, SearchFieldConfigurationBean fieldConfiguration)
fieldConfiguration
to the given map
.map
- is the Map
.fieldConfiguration
- is the SearchFieldConfigurationBean
.public List<SearchFieldConfigurationBean> getFields()
protected Map<String,SearchFieldConfigurationBean> getFieldMap()
public void setFields(List<SearchFieldConfigurationBean> fields)
fields
- is the fields to setpublic SearchFieldConfigurationBean getFieldConfiguration(String name)
SearchFieldConfiguration
for the
field
with the given name
. This method will always return a result for the fields predefined by
SearchEntry
(see FIELD_*
constants) even if they are NOT
explicitly configured. However for specific cases it is possible to override this defaults in your
configuration.getFieldConfiguration
in interface SearchFields
name
- is the name
of the requested
SearchFieldConfiguration
.SearchFieldConfiguration
or null
if no such
field
is defined or
configured.public SearchFieldConfigurationBean getOrCreateFieldConfiguration(String name)
SearchFields.getFieldConfiguration(String)
but creates a default
SearchFieldConfiguration
if none is defined.getOrCreateFieldConfiguration
in interface SearchFields
name
- is the name
of the requested
SearchFieldConfiguration
.SearchFieldConfiguration
.Copyright © 2001–2016 mmm-Team. All rights reserved.