Class TagHandler

    • Constructor Detail

      • TagHandler

        public TagHandler​(boolean contentContainer)
        Parameters:
        contentContainer - when false, text content is dropped.
    • Method Detail

      • begin

        protected void begin​(TagContext context)
      • beginElement

        public void beginElement​(TagContext context)
      • end

        protected void end​(TagContext context)
      • endElement

        public final void endElement​(TagContext context)
      • isContentContainer

        public boolean isContentContainer()
      • setAccumulateContent

        public void setAccumulateContent​(boolean accumulateContent)
      • isAccumulateContent

        public boolean isAccumulateContent()
      • sendEmptyLines

        public static void sendEmptyLines​(TagContext context)
        Check if we need to emit an onEmptyLines() event.
      • sendEmptyLines

        public static void sendEmptyLines​(TagStack stack)
      • initialize

        public void initialize​(TagStack stack)
      • isBlockHandler

        public boolean isBlockHandler​(TagContext context)
        Returns:
        true if the current handler handles block tags (paragraphs, lists, tables, headers, etc)
      • beginDocument

        protected void beginDocument​(TagContext context)
      • endDocument

        protected void endDocument​(TagContext context)