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

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

public final class WicketNamespaceHandler
extends AbstractMarkupFilter

This is a markup inline filter. It determines the Wicket namespace name from the markup. Examples are xmlns:wicket or xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd" though every URI that starts with "http://wicket.apache.org" will work as well.

Author:
Juergen Donnerstag
See Also:
MarkupParser

Constructor Summary
WicketNamespaceHandler(MarkupResourceStream markup)
          Construct.
 
Method Summary
protected  MarkupElement onComponentTag(ComponentTag tag)
          Invoked when a ComponentTag was found.
 
Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
getMarkupResourceStream, getNextFilter, getWicketNamespace, getWicketNamespace, nextElement, onSpecialTag, postProcess, setNextFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WicketNamespaceHandler

public WicketNamespaceHandler(MarkupResourceStream markup)
Construct.

Parameters:
markup - The markup created by reading the markup file
Method Detail

onComponentTag

protected final MarkupElement onComponentTag(ComponentTag tag)
                                      throws ParseException
Description copied from class: AbstractMarkupFilter
Invoked when a ComponentTag was found.

By default this method is also called for WicketTags.

Specified by:
onComponentTag in class AbstractMarkupFilter
Returns:
Usually the same as the tag attribute
Throws:
ParseException


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.