Package ywebservicespackage.populators
Class SampleAddressPopulator
- java.lang.Object
-
- ywebservicespackage.populators.SampleAddressPopulator
-
- All Implemented Interfaces:
Populator<AddressModel,AddressData>
public class SampleAddressPopulator extends java.lang.Object implements Populator<AddressModel,AddressData>
-
-
Constructor Summary
Constructors Constructor Description SampleAddressPopulator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static booleangetBoolean(java.lang.Boolean val, boolean def)protected java.lang.StringgetFormattedAddress(AddressModel source)voidpopulate(AddressModel source, AddressData target)Populate the target instance with values from the source instance.
-
-
-
Method Detail
-
populate
public void populate(AddressModel source, AddressData target)
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AddressModel,AddressData>- Parameters:
source- the source objecttarget- the target to fill
-
getBoolean
protected static boolean getBoolean(java.lang.Boolean val, boolean def)
-
getFormattedAddress
protected java.lang.String getFormattedAddress(AddressModel source)
-
-