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

java.lang.Object
  extended by org.apache.wicket.markup.parser.AbstractMarkupFilter
      extended by org.apache.wicket.markup.parser.filter.BaseMarkupFilter
All Implemented Interfaces:
IMarkupFilter
Direct Known Subclasses:
EnclosureHandler, HeadForceTagIdHandler, HtmlHeaderSectionHandler, HtmlProblemFinder, RelativePathPrefixHandler, WicketLinkTagHandler, WicketMessageTagHandler, WicketNamespaceHandler, WicketRemoveTagHandler

public abstract class BaseMarkupFilter
extends AbstractMarkupFilter

Base class for markup filters

Author:
Juergen Donnerstag
See Also:
MarkupParser

Constructor Summary
BaseMarkupFilter()
          Construct.
BaseMarkupFilter(IMarkupFilter parent)
          Construct.
 
Method Summary
 MarkupElement nextTag()
          Get the next MarkupElement from the parent MarkupFilter and handle it if the specific filter criteria are met.
protected abstract  MarkupElement nextTag(ComponentTag tag)
          Invoked with the next ComponentTag
 
Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
getCount, getNextFilter, nextComponentTag, setNextFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseMarkupFilter

public BaseMarkupFilter()
Construct.


BaseMarkupFilter

public BaseMarkupFilter(IMarkupFilter parent)
Construct.

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

nextTag

public final MarkupElement nextTag()
                            throws 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.

Returns:
Return the next eligible MarkupElement
Throws:
ParseException

nextTag

protected abstract MarkupElement nextTag(ComponentTag tag)
                                  throws ParseException
Invoked with the next ComponentTag

Parameters:
tag -
Returns:
the next tag
Throws:
ParseException


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