Class TagStack

  • public class TagStack
    extends Object
    Stack to push and pop HTML elements asserting its structure.
    • Method Detail

      • debug

        public void debug()
        Configure this stack to call log.debug at operations
      • requiresCloseTag

        public static boolean requiresCloseTag​(String name)
        Gets whether this tag does not require a closing tag.
        name - The tag's name, e.g. a, br, div, etc.
        True if this tag does not require a closing tag
      • hasEqualTagName

        public static boolean hasEqualTagName​(ComponentTag tag1,
                                              ComponentTag tag2)
        Compare tag name including namespace
        tag1 -
        tag2 -
        true if name and namespace are equal