java.lang.Object
org.apache.wicket.markup.parser.TagStack
Stack to push and pop HTML elements asserting its structure.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Assert that tag has no mismatch error.void
debug()
Configure this stack to call log.debug at operationsstatic boolean
hasEqualTagName
(ComponentTag tag1, ComponentTag tag2) Compare tag name including namespacestatic boolean
requiresCloseTag
(String name) Gets whether this tag does not require a closing tag.
-
Constructor Details
-
TagStack
public TagStack()
-
-
Method Details
-
assertValidInStack
Assert that tag has no mismatch error. If the parameter is an open tag, just push it on stack to be tested latter.- Parameters:
tag
-- Throws:
ParseException
-
getNotClosedTag
- Returns:
- not closed tag
-
debug
Configure this stack to call log.debug at operations -
requiresCloseTag
Gets whether this tag does not require a closing tag.- Parameters:
name
- The tag's name, e.g. a, br, div, etc.- Returns:
- True if this tag does not require a closing tag
-
hasEqualTagName
Compare tag name including namespace- Parameters:
tag1
-tag2
-- Returns:
- true if name and namespace are equal
-