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

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

public final class WicketTagIdentifier
extends AbstractMarkupFilter

This is a markup inline filter. It identifies xml tags which have a special meaning for Wicket. There are two type of tags which have a special meaning for Wicket.

Author:
Juergen Donnerstag

Constructor Summary
WicketTagIdentifier(MarkupResourceData markup)
          Construct.
 
Method Summary
 MarkupElement nextTag()
          Get the next tag from the next MarkupFilter in the chain and search for Wicket specific tags.
static void registerWellKnownTagName(String name)
          Register a new well known wicket tag name (e.g.
 
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

WicketTagIdentifier

public WicketTagIdentifier(MarkupResourceData markup)
Construct.

Parameters:
markup - The markup as known by now
Method Detail

nextTag

public MarkupElement nextTag()
                      throws ParseException
Get the next tag from the next MarkupFilter in the chain and search for Wicket specific tags.

Note: The xml parser - the next MarkupFilter in the chain - returns XmlTags which are a subclass of MarkupElement. The implementation of this filter will return either ComponentTags or ComponentWicketTags. Both are subclasses of MarkupElement as well and both maintain a reference to the XmlTag. But no XmlTag is returned.

Returns:
The next tag from markup to be processed. If null, no more tags are available
Throws:
ParseException
See Also:
IMarkupFilter.nextTag()

registerWellKnownTagName

public static final void registerWellKnownTagName(String name)
Register a new well known wicket tag name (e.g. panel)

Parameters:
name -


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.