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

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

public final class RootMarkupFilter
extends AbstractMarkupFilter

This is the root of all filters, which retrieves the next xml element from the xml parser.

Author:
Juergen Donnerstag

Constructor Summary
RootMarkupFilter(IXmlPullParser parser)
          Construct.
 
Method Summary
 IMarkupFilter getNextFilter()
          IMarkupFilters are usually chained with the last filter retrieving the elements from the XML parser.
 MarkupElement nextElement()
          Skip all xml elements until the next tag.
protected  MarkupElement onComponentTag(ComponentTag tag)
          Noop
 void postProcess(Markup markup)
          Noop
 void setNextFilter(IMarkupFilter parent)
          This is the root filter.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
onSpecialTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RootMarkupFilter

public RootMarkupFilter(IXmlPullParser parser)
Construct.

Parameters:
parser -
Method Detail

nextElement

public final MarkupElement nextElement()
                                throws java.text.ParseException
Skip all xml elements until the next tag.

Specified by:
nextElement in interface IMarkupFilter
Overrides:
nextElement in class AbstractMarkupFilter
Returns:
Return the next eligible MarkupElement. Null, if no more found.
Throws:
java.text.ParseException

getNextFilter

public final IMarkupFilter getNextFilter()
Description copied from interface: IMarkupFilter
IMarkupFilters are usually chained with the last filter retrieving the elements from the XML parser.

Specified by:
getNextFilter in interface IMarkupFilter
Overrides:
getNextFilter in class AbstractMarkupFilter
Returns:
null. This is the root filter.

setNextFilter

public final void setNextFilter(IMarkupFilter parent)
This is the root filter. Operation not allowed. An exception will be thrown.

Specified by:
setNextFilter in interface IMarkupFilter
Overrides:
setNextFilter in class AbstractMarkupFilter
Parameters:
parent - The parent of this component The next element in the chain

onComponentTag

protected MarkupElement onComponentTag(ComponentTag tag)
                                throws java.text.ParseException
Noop

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

postProcess

public final void postProcess(Markup markup)
Noop

Specified by:
postProcess in interface IMarkupFilter
Overrides:
postProcess in class AbstractMarkupFilter

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


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