org.apache.wicket.markup.parser
Class AbstractMarkupFilter

java.lang.Object
  extended by org.apache.wicket.markup.parser.AbstractMarkupFilter
All Implemented Interfaces:
IMarkupFilter
Direct Known Subclasses:
BaseMarkupFilter, HtmlHandler, OpenCloseTagExpander, WicketTagIdentifier

public abstract class AbstractMarkupFilter
extends Object
implements IMarkupFilter

Base class for markup filters

Author:
Jonathan Locke
See Also:
MarkupParser

Constructor Summary
AbstractMarkupFilter()
          Construct.
AbstractMarkupFilter(IMarkupFilter parent)
          Construct.
 
Method Summary
protected  int getCount()
           
 IMarkupFilter getNextFilter()
          IMarkupFilters are usually chained with the last filter being an XML parser.
protected  ComponentTag nextComponentTag()
          A convenience function to retrieve the next tag (same as nextTag()), however assuming that it is a ComponentTag.
 void setNextFilter(IMarkupFilter parent)
          Set new parent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.wicket.markup.parser.IMarkupFilter
nextTag
 

Constructor Detail

AbstractMarkupFilter

public AbstractMarkupFilter()
Construct.


AbstractMarkupFilter

public AbstractMarkupFilter(IMarkupFilter parent)
Construct.

Parameters:
parent - The parent of this component The next element in the chain.
Method Detail

getNextFilter

public final 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 MarkupFilter in the chain

setNextFilter

public final void setNextFilter(IMarkupFilter parent)
Set new parent.

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

nextComponentTag

protected final ComponentTag nextComponentTag()
                                       throws ParseException
A convenience function to retrieve the next tag (same as nextTag()), however assuming that it is a ComponentTag.

Returns:
ComponentTag
Throws:
ParseException

getCount

protected int getCount()
Returns:
A unique count per instance


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