Class CanvasComponentTagHandler
- java.lang.Object
-
- com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
-
- com.day.cq.wcm.designimporter.parser.taghandlers.CanvasComponentTagHandler
-
- All Implemented Interfaces:
ContainerComponentProvider,EntryTagHandler,HTMLContentProvider,PageComponentProvider,TagHandler
public class CanvasComponentTagHandler extends AbstractTagHandler implements EntryTagHandler, ContainerComponentProvider
The canvas component tag handler is the top level or the "root" tag handler which handles the entry tag <div id="cqcanvas"> The body markup outside the bounds of the #cqcanvas tag is ignored.This tag handler is registered against the markup of type <div id="cqcanvas">. That implies this tag handler will come into action whenever the design importer framework encounters an HTML tag matching the rule this handler is defined against.
- See Also:
TextComponentTagHandlerFactory
-
-
Field Summary
-
Fields inherited from class com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
NAME_HINT_PROPERTY_KEY
-
-
Constructor Summary
Constructors Constructor Description CanvasComponentTagHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendHandling(java.lang.String uri, java.lang.String localName, java.lang.String qName)Callback to signal the end of handling giving the tag handler a chance for finalizing things.java.lang.StringgetResourceType()voidsetResourceType(java.lang.String resourceType)voidstartElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)Callback to signal the encounter of a tag start.-
Methods inherited from class com.day.cq.wcm.designimporter.parser.taghandlers.AbstractTagHandler
beginHandling, characters, endElement, getContent, getPageComponents, setDesignImporterContext, setPageBuilder, setTagHandlerProvider, supportsContent
-
-
-
-
Method Detail
-
startElement
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws DesignImportExceptionDescription copied from interface:TagHandlerCallback to signal the encounter of a tag start.Once a tag handler begins handling, it receives the start tag events for all the nested tags within the purview of the tag this tag handler is registered against.
- Specified by:
startElementin interfaceTagHandler- Overrides:
startElementin classAbstractTagHandler- Throws:
DesignImportException
-
endHandling
public void endHandling(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws DesignImportExceptionDescription copied from interface:TagHandlerCallback to signal the end of handling giving the tag handler a chance for finalizing things.This is arguably the last callback a tag handler receives. After this, the current tag handler is popped out from the chain and the subsequent Tika events are directed to preceding tag handlers.
- Specified by:
endHandlingin interfaceTagHandler- Overrides:
endHandlingin classAbstractTagHandler- Throws:
DesignImportException
-
getResourceType
public java.lang.String getResourceType()
-
setResourceType
public void setResourceType(java.lang.String resourceType)
-
-