org.apache.wicket.markup.parser.filter
Class HtmlHandler

java.lang.Object
  extended by org.apache.wicket.markup.parser.AbstractMarkupFilter
      extended by 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

Constructor Summary
HtmlHandler()
          Construct.
 
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 org.apache.wicket.markup.parser.AbstractMarkupFilter
getParent, nextComponentTag, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlHandler

public HtmlHandler()
Construct.

Method Detail

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.