Class BlockExtractingRule

java.lang.Object
com.opensymphony.module.sitemesh.html.BasicRule
com.opensymphony.module.sitemesh.html.BlockExtractingRule
All Implemented Interfaces:
TagRule
Direct Known Subclasses:
ContentBlockExtractingRule, HeadExtractingRule, MSOfficeDocumentPropertiesRule, TitleExtractingRule

public abstract class BlockExtractingRule extends BasicRule
The Class BlockExtractingRule.
  • Constructor Details

    • BlockExtractingRule

      protected BlockExtractingRule(boolean keepInBuffer, String acceptableTagName)
      Instantiates a new block extracting rule.
      Parameters:
      keepInBuffer - the keep in buffer
      acceptableTagName - the acceptable tag name
    • BlockExtractingRule

      protected BlockExtractingRule(boolean keepInBuffer)
      Instantiates a new block extracting rule.
      Parameters:
      keepInBuffer - the keep in buffer
  • Method Details

    • process

      public void process(Tag tag)
      Description copied from interface: TagRule
      Process.
      Parameters:
      tag - the tag
    • start

      protected void start(Tag tag)
      Start.
      Parameters:
      tag - the tag
    • end

      protected void end(Tag tag)
      End.
      Parameters:
      tag - the tag
    • createBuffer

      protected SitemeshBufferFragment.Builder createBuffer(SitemeshBuffer sitemeshBuffer)
      Creates the buffer.
      Parameters:
      sitemeshBuffer - the sitemesh buffer
      Returns:
      the sitemesh buffer fragment. builder