Class HtmlHandler
java.lang.Object
org.apache.wicket.markup.parser.AbstractMarkupFilter
org.apache.wicket.markup.parser.filter.HtmlHandler
- All Implemented Interfaces:
IMarkupFilter
This is a markup inline filter. It identifies HTML specific issues which make HTML not 100% xml
compliant. E.g. tags like <p> often are missing the corresponding close tag.
- Author:
- Juergen Donnerstag
-
Field Summary
Fields inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
REQUEST_COUNTER_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
hasEqualTagName
(ComponentTag tag1, ComponentTag tag2) Compare tag name including namespaceprotected MarkupElement
Invoked when a ComponentTag was found.void
postProcess
(Markup markup) Called after all filters have been processed.static boolean
requiresCloseTag
(String name) Gets whether this tag does not require a closing tag.Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
getMarkupResourceStream, getNextFilter, getRequestUniqueId, getWicketNamespace, getWicketNamespace, nextElement, onSpecialTag, setNextFilter
-
Constructor Details
-
HtmlHandler
public HtmlHandler()Construct.
-
-
Method Details
-
postProcess
Description copied from interface:IMarkupFilter
Called after all filters have been processed.- Specified by:
postProcess
in interfaceIMarkupFilter
- Overrides:
postProcess
in classAbstractMarkupFilter
-
onComponentTag
Description copied from class:AbstractMarkupFilter
Invoked when a ComponentTag was found.By default this method is also called for WicketTags.
- Specified by:
onComponentTag
in classAbstractMarkupFilter
- Returns:
- Usually the same as the tag attribute
- Throws:
ParseException
-
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
-