public interface SectionVisitor
Layout.getSections()
contains ordered list of sections
Each section could be either PromotionSection
or ProductSection
.
This interface is created to be used in Section.handle(SectionVisitor)
.
Depending on a type of Section appropriate visit method will be calledModifier and Type | Method and Description |
---|---|
void |
visit(ProductSection section)
Invoked if
Section has ProductSection type |
void |
visit(PromotionSection section)
Invoked if
Section has PromotionSection type |
void visit(PromotionSection section)
Section
has PromotionSection
typesection
- section objectvoid visit(ProductSection section)
Section
has ProductSection
typesection
- section object