Class AddressLine2Attribute
java.lang.Object
de.hybris.platform.servicelayer.model.attribute.AbstractDynamicAttributeHandler<String,AddressModel>
de.hybris.platform.basecommerce.model.AddressLine2Attribute
- All Implemented Interfaces:
DynamicAttributeHandler<String,AddressModel>
Dynamic attribute handler for the Address.line2 attribute. The Address.line2 attribute is directly mapped into the
Address.streetnumber attribute.
Hybris payment extension maps the Address.streetname into BillingInfo.street1, and the Address.streetnumber into
BillingInfo.street2. NOTE that in Germany the street name is written before the street number. In order to avoid
confusion we use Address.line1 and Address.line2 instead, but we retain the same mapping as hybris.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(AddressModel addressModel) Holds logic behind getter for dynamic attribute.voidset(AddressModel addressModel, String value) Holds logic behind setter for dynamic attribute.
-
Constructor Details
-
AddressLine2Attribute
public AddressLine2Attribute()
-
-
Method Details
-
get
Description copied from interface:DynamicAttributeHandlerHolds logic behind getter for dynamic attribute.- Specified by:
getin interfaceDynamicAttributeHandler<String,AddressModel> - Overrides:
getin classAbstractDynamicAttributeHandler<String,AddressModel> - Parameters:
addressModel- model for which dynamic attribute is declared.- Returns:
- computed value.
-
set
Description copied from interface:DynamicAttributeHandlerHolds logic behind setter for dynamic attribute.- Specified by:
setin interfaceDynamicAttributeHandler<String,AddressModel> - Overrides:
setin classAbstractDynamicAttributeHandler<String,AddressModel> - Parameters:
addressModel- model for which dynamic attribute is declared.value- the value which will be used by setter logic.
-