public class MBoxExperienceTagHandler extends AbstractTagHandler implements ContainerComponentProvider
This tag handler is registered against the markup of type < section data-cq-component="offer" >
in com.day.cq.wcm.designimporter.impl.TagHandlerProviderImpl
. 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.
NAME_HINT_PROPERTY_KEY
Constructor and Description |
---|
MBoxExperienceTagHandler() |
Modifier and Type | Method and Description |
---|---|
void |
beginHandling(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Callback to signal the start of handling giving the tag handler a chance for running intialization routines.
|
void |
characters(char[] ch,
int start,
int length)
Callback to signal the encounter of character content within tags.
|
void |
endHandling(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.util.List<PageComponent> |
getOfferComponents() |
java.lang.String |
getSegment() |
void |
handleEvent(Event event) |
boolean |
isDefaultExperience() |
void |
startElement(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.
|
boolean |
supportsContent(HTMLContentType htmlContentType)
Indicates whether the passed
HTMLContentType is supported or not |
endElement, getContent, getPageComponents, setDesignImporterContext, setPageBuilder, setTagHandlerProvider
public boolean isDefaultExperience()
public void beginHandling(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws DesignImportException
TagHandler
TagHandler
s are registered against tag+attribute combination and are invoked by the HTMLContentHandler
as and when it
encounters a tag matching the tag attribute combination the tag handler is registered with.
beginHandling
in interface TagHandler
beginHandling
in class AbstractTagHandler
DesignImportException
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws DesignImportException, UnsupportedTagContentException
TagHandler
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.
startElement
in interface TagHandler
startElement
in class AbstractTagHandler
DesignImportException
UnsupportedTagContentException
public void characters(char[] ch, int start, int length) throws DesignImportException
TagHandler
characters
in interface TagHandler
characters
in class AbstractTagHandler
DesignImportException
public void endHandling(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws DesignImportException
TagHandler
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.
endHandling
in interface TagHandler
endHandling
in class AbstractTagHandler
DesignImportException
public boolean supportsContent(HTMLContentType htmlContentType)
HTMLContentProvider
HTMLContentType
is supported or notsupportsContent
in interface HTMLContentProvider
supportsContent
in class AbstractTagHandler
public java.util.List<PageComponent> getOfferComponents()
public java.lang.String getSegment()
public void handleEvent(Event event)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"