Class TagStack


  • public class TagStack
    extends Object
    Provides context for the parsing.
    Since:
    7.0RC1
    Version:
    $Id: eb49d042079aef3c86d2a20fdd49413ec412e741 $
    • Field Detail

      • IGNORE_ALL

        public static final IgnoreElementRule IGNORE_ALL
        Represents a default IgnoreElementRule that ignore all elements and cannot be switched off.
        Since:
        10.10RC1
    • Method Detail

      • endElement

        public void endElement()
      • onCharacters

        public void onCharacters​(String content)
      • onComment

        public void onComment​(char[] array,
                              int start,
                              int length)
      • pushStackParameters

        public void pushStackParameters()
      • popStackParameters

        public void popStackParameters()
      • setStackParameter

        public void setStackParameter​(String name,
                                      Object data)
      • getStackParameter

        public Object getStackParameter​(String name)
      • pushStackParameter

        public void pushStackParameter​(String name,
                                       Object data)
      • popStackParameter

        public Object popStackParameter​(String name)
      • setQuoteDepth

        public void setQuoteDepth​(int depth)
      • getQuoteDepth

        public int getQuoteDepth()
      • isInsideBlockElement

        public boolean isInsideBlockElement()
      • setInsideBlockElement

        public void setInsideBlockElement()
      • unsetInsideBlockElement

        public void unsetInsideBlockElement()
      • setDocumentParent

        public void setDocumentParent()
      • getDocumentParent

        public TagContext getDocumentParent()
      • pushListStyle

        public String pushListStyle​(char style)
      • popListStyle

        public void popListStyle()
      • isEndOfList

        public boolean isEndOfList()
      • resetEmptyLinesCount

        public void resetEmptyLinesCount()
      • incrementEmptyLinesCount

        public void incrementEmptyLinesCount()
      • getEmptyLinesCount

        public int getEmptyLinesCount()
      • shouldIgnoreElements

        public boolean shouldIgnoreElements()
      • setIgnoreElements

        public void setIgnoreElements()
      • unsetIgnoreElements

        public void unsetIgnoreElements()
      • pushIgnoreElementRule

        public void pushIgnoreElementRule​(IgnoreElementRule ignoreElementRule)
        Push a new rule to ignore elements.
        Parameters:
        ignoreElementRule - the rule to be used now.
        Since:
        10.10RC1
      • popIgnoreElementRule

        public IgnoreElementRule popIgnoreElementRule()
        Retrieve the last rule to ignore element.
        Returns:
        the last rule that was in the stack.
        Since:
        10.10RC1