Class TOCTemplate

  • All Implemented Interfaces:
    TemplateInterface

    public class TOCTemplate
    extends Template
    Template class for extracting table of contents information out of an html page by examining the "H1" tags, and setting request properties that can be used to build a table of contents. This class is used by the TemplateHandler.
    Version:
    Author:
    Stephen Uhler
    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      TOCTemplate()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean init​(RewriteContext hr)
      Called before this template processes any tags.
      void tag_h1​(RewriteContext hr)
      Add a name anchor to the H1 tag, so we can go there, and set the request properties:TOC.[anchor] to the text of the H1 tag.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TOCTemplate

        public TOCTemplate()
    • Method Detail

      • tag_h1

        public void tag_h1​(RewriteContext hr)
        Add a name anchor to the H1 tag, so we can go there, and set the request properties:TOC.[anchor] to the text of the H1 tag.