Class LocationMapper<I extends LocationField,O extends LocationFieldBean>
java.lang.Object
ch.tocco.nice2.rest.form.impl.beans.factories.componentmappers.BaseComponentMapper<I,O>
ch.tocco.nice2.rest.form.impl.beans.factories.componentmappers.LocationMapper<I,O>
- All Implemented Interfaces:
ComponentMapper<I,
O>
- Direct Known Subclasses:
AddressMapper
@Component
public class LocationMapper<I extends LocationField,O extends LocationFieldBean>
extends BaseComponentMapper<I,O>
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.form.impl.beans.factories.componentmappers.BaseComponentMapper
textResources
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected O
Should be overridden in subclasses.map
(I component, Component.Configuration configuration) void
setDefaultCountries
(String defaultCountries) Methods inherited from class ch.tocco.nice2.rest.form.impl.beans.factories.componentmappers.BaseComponentMapper
getComponentType
-
Field Details
-
COUNTRY_SPLITTER
public static final com.google.common.base.Splitter COUNTRY_SPLITTER
-
-
Constructor Details
-
LocationMapper
-
-
Method Details
-
map
- Specified by:
map
in interfaceComponentMapper<I extends LocationField,
O extends LocationFieldBean> - Overrides:
map
in classBaseComponentMapper<I extends LocationField,
O extends LocationFieldBean>
-
createBeanInstance
-
getBeanClass
Description copied from class:BaseComponentMapper
Should be overridden in subclasses.- Overrides:
getBeanClass
in classBaseComponentMapper<I extends LocationField,
O extends LocationFieldBean> - Returns:
- the class of the bean the mapper returns.
-
getComponentClass
- Specified by:
getComponentClass
in interfaceComponentMapper<I extends LocationField,
O extends LocationFieldBean> - Overrides:
getComponentClass
in classBaseComponentMapper<I extends LocationField,
O extends LocationFieldBean>
-
setDefaultCountries
@Value("${nice2.default.locationFieldCountries}") public void setDefaultCountries(String defaultCountries)
-