Class AddressDataProviderAddress
java.lang.Object
ch.tocco.nice2.optional.address.impl.AddressDataProviderAddress
- All Implemented Interfaces:
AddressDataProvider
Dataprovider to enable address generation for Address entity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData
(AddressData data, Entity entity, AddressService.AddressType type, AddressService.AddressLook look) Write data required for address generation to a map to be provided to generic address service.getData
(Entity entity, AddressService.AddressType type, AddressService.AddressLook look) Write data required for address generation to a map to be provided to generic address service.Name of the entity model for which this AddressDataProvider may be used.
-
Constructor Details
-
AddressDataProviderAddress
public AddressDataProviderAddress()
-
-
Method Details
-
getEntityName
Description copied from interface:AddressDataProvider
Name of the entity model for which this AddressDataProvider may be used.- Specified by:
getEntityName
in interfaceAddressDataProvider
-
getData
public AddressData getData(Entity entity, @Nullable AddressService.AddressType type, @Nullable AddressService.AddressLook look) Description copied from interface:AddressDataProvider
Write data required for address generation to a map to be provided to generic address service. New modules requiring address generation for an entity implement this method. The implementing class needs to be contributed providing the name of the entity it handles.- Specified by:
getData
in interfaceAddressDataProvider
- Returns:
- a map containing required information to generate address
-
getData
public AddressData getData(AddressData data, Entity entity, @Nullable AddressService.AddressType type, @Nullable AddressService.AddressLook look) Description copied from interface:AddressDataProvider
Write data required for address generation to a map to be provided to generic address service. New modules requiring address generation for an entity implement this method. The implementing class needs to be contributed providing the name of the entity it handles.- Specified by:
getData
in interfaceAddressDataProvider
- Parameters:
data
- AddressData object with predefined values. Values may be overwritten by values from the entity- Returns:
- a map containing required information to generate address
-
getData
- Specified by:
getData
in interfaceAddressDataProvider
-