wicket.markup.parser.filter
Class TagTypeHandler

java.lang.Object
  extended by wicket.markup.parser.AbstractMarkupFilter
      extended by wicket.markup.parser.filter.TagTypeHandler
All Implemented Interfaces:
IMarkupFilter

public final class TagTypeHandler
extends AbstractMarkupFilter

This is a markup inline filter. It identifies tags which are allowed open-close in the markup, but which for Wicket to be processed correctly must be open-body-close.

Author:
Juergen Donnerstag

Constructor Summary
TagTypeHandler()
          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 requiresOpenBodyCloseTag(java.lang.String name)
          Gets whether this tag does not require open-body-close tags.
 
Methods inherited from class 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

TagTypeHandler

public TagTypeHandler()
Construct.

Method Detail

nextTag

public MarkupElement nextTag()
                      throws java.text.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:
java.text.ParseException
See Also:
IMarkupFilter.nextTag()

requiresOpenBodyCloseTag

public static boolean requiresOpenBodyCloseTag(java.lang.String name)
Gets whether this tag does not require open-body-close tags.

Parameters:
name - The tag's name, e.g. a, br, div, etc.
Returns:
True if this tag must be converted into open-body-close if openClose


Copyright © 2004-2007 Wicket developers. All Rights Reserved.