Class TitleComponentTagHandler

  • All Implemented Interfaces:
    HTMLContentProvider, PageComponentProvider, TagHandler

    public class TitleComponentTagHandler
    extends AbstractTagHandler
    The title component tag handler is used to translate the title component div(or an equivalent markup) into a CQ title component.

    This tag handler is registered against the markup of type < div|h1-6 data-cq-component="title" > (Read as a div, h1, h2,.., h6 tag with the attribute data-cq-component equal to "title"). 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:
    TitleComponentTagHandlerFactory
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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 endElement​(java.lang.String uri, java.lang.String localName, java.lang.String qName)
      Callback to signal the encounter of a tag end.
      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.lang.Object getContent​(HTMLContentType htmlContentType)
      Gets the content of the type HTMLContentType
      void setResourceType​(java.lang.String resourceType)  
      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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait