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:
EnclosureHandler, HeadForceTagIdHandler, HtmlHandler, HtmlHeaderSectionHandler, HtmlProblemFinder, OpenCloseTagExpander, RelativePathPrefixHandler, TagTypeHandler, WicketLinkTagHandler, WicketMessageTagHandler, WicketNamespaceHandler, WicketRemoveTagHandler, WicketTagIdentifier, XmlPullParser

public abstract class AbstractMarkupFilter
extends java.lang.Object
implements IMarkupFilter

Base class for markup filters

Author:
Jonathan Locke
See Also:
MarkupParser

Constructor Summary
AbstractMarkupFilter()
          Construct.
AbstractMarkupFilter(IMarkupFilter parent)
          Construct.
 
Method Summary
 IMarkupFilter getParent()
          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 setParent(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

getParent

public final IMarkupFilter getParent()
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:
getParent in interface IMarkupFilter
Returns:
The next MarkupFilter in the chain

setParent

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

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

nextComponentTag

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

Returns:
ComponentTag
Throws:
java.text.ParseException


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