Package eu.bandm.tools.lablog.base
Class ToHtml.DeliveryContext<T>
java.lang.Object
eu.bandm.tools.lablog.base.ToHtml.DeliveryContext<T>
- Direct Known Subclasses:
ToHtml.DeliverBlockContent
,ToHtml.DeliverDivContent
,ToHtml.DeliverInline
,ToHtml.DeliverToListItem
,ToHtml.DeliverToPre
,ToHtml.DeliverToTd
- Enclosing class:
- ToHtml
A delivery context maintains a list into which the generated html elements
can be stored. Possibly they will be wrapped into other container classes.
This architecture comes from the fact that divverent elements can be contained
in very different cntexts, and may need this wrapping.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
DeliveryContext
(@Opt ToHtml.DeliveryContext<?> pred) Only constructor. -
Method Summary
Modifier and TypeMethodDescription(package private) void
Accept an Html anchor element.(package private) void
Accept an Html block element.(package private) void
Accept an Html inline element.(package private) void
Accept Html typed pc data.
-
Field Details
-
pred
Predecessor, must be != null but for the very first / most outer context. -
list
List of all collected generated HTML elements.
-
-
Constructor Details
-
DeliveryContext
Only constructor.- Parameters:
pred
- predecessor, must be != null but for the very first / most outer context.
-
-
Method Details
-
deliver
Accept an Html block element. This method defaults to reject it with an IllegalStateException and can be overridden by the subclass. -
deliver
Accept an Html anchor element. This method defaults to reject it with an IllegalStateException and can be overridden by the subclass. -
deliver
Accept an Html inline element. This method defaults to reject it with an IllegalStateException and can be overridden by the subclass. -
deliver
Accept Html typed pc data. This method defaults to reject it with an IllegalStateException and can be overridden by the subclass.
-