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

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

public final class RootMarkupFilter
extends java.lang.Object
implements IMarkupFilter

Author:
Juergen Donnerstag

Constructor Summary
RootMarkupFilter(IXmlPullParser parser)
          Construct.
 
Method Summary
 IMarkupFilter getNextFilter()
          IMarkupFilters are usually chained with the last filter being an XML parser.
 MarkupElement nextTag()
          Get the next MarkupElement from the parent MarkupFilter and handle it if the specific filter criteria are met.
 void setNextFilter(IMarkupFilter parent)
          Set parent filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootMarkupFilter

public RootMarkupFilter(IXmlPullParser parser)
Construct.

Parameters:
parser -
Method Detail

nextTag

public final MarkupElement nextTag()
                            throws java.text.ParseException
Description copied from interface: IMarkupFilter
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 remove it by asking the parent handler for the next tag.

Specified by:
nextTag in interface IMarkupFilter
Returns:
Return the next eligible MarkupElement
Throws:
java.text.ParseException
See Also:
IMarkupFilter.nextTag()

getNextFilter

public IMarkupFilter getNextFilter()
Description copied from interface: IMarkupFilter
IMarkupFilters are usually chained with the last filter being an XML parser. The getParent() method returns the next filter in the chain.

Specified by:
getNextFilter in interface IMarkupFilter
Returns:
The next filter in the chain, or null if the last one.
See Also:
IMarkupFilter.getNextFilter()

setNextFilter

public void setNextFilter(IMarkupFilter parent)
Description copied from interface: IMarkupFilter
Set parent filter.

Specified by:
setNextFilter in interface IMarkupFilter
Parameters:
parent - The next element in the chain
See Also:
IMarkupFilter.setNextFilter(org.apache.wicket.markup.parser.IMarkupFilter)


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