Class AbstractTagHandler

java.lang.Object
com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
All Implemented Interfaces:
HTMLContentProvider, PageComponentProvider, TagHandler
Direct Known Subclasses:
CanvasComponentTagHandler, DefaultComponentTagHandler, DefaultTagHandler, HeadTagHandler, ImageComponentTagHandler, NonScriptTagHandler, ParsysComponentTagHandler, TextComponentTagHandler, TitleComponentTagHandler, TitleTagHandler

public abstract class AbstractTagHandler extends Object implements TagHandler, PageComponentProvider, HTMLContentProvider
The abstract class that pulls up all the common tag handling functionality.

The tag handlers usually attempt to delegate all the SAX events to nested handlers if they exist. If there aren't any nested handlers, the incoming SAX events are used to either populate the html markup/css/script buffers or generate CQ page components(via component provider subclasses).

Nested handlers are created when an element matching a tag handler registration rule is encountered. Then on, all the SAX events are directed to the instantiated nested handler until end of nested tag is encountered. Once that happens, the nested tag handler is asked for whatever content/components it has culled out. After that, the nested tag handler is popped out for GC.