org.apache.wicket.markup.parser.filter
Class HtmlHandler
java.lang.Object
org.apache.wicket.markup.parser.AbstractMarkupFilter
org.apache.wicket.markup.parser.filter.HtmlHandler
- All Implemented Interfaces:
- IMarkupFilter
public final class HtmlHandler
- extends AbstractMarkupFilter
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
Method Summary |
MarkupElement |
nextTag()
Get the next MarkupElement from the parent MarkupFilter and handle it if the specific filter
criteria are met. |
static boolean |
requiresCloseTag(String name)
Gets whether this tag does not require a closing tag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HtmlHandler
public HtmlHandler()
- Construct.
nextTag
public MarkupElement nextTag()
throws ParseException
- Get the next MarkupElement from the parent MarkupFilter and handle it if the specific filter
criteria are met. Depending on the filter, it may return the MarkupElement unchanged,
modified or it remove by asking the parent handler for the next tag.
- Returns:
- Return the next eligible MarkupElement
- Throws:
ParseException
- See Also:
IMarkupFilter.nextTag()
requiresCloseTag
public static boolean requiresCloseTag(String name)
- 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
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.