- All Known Implementing Classes:
AbstractMarkupFilter
,AutoLabelTagHandler
,EnclosureHandler
,HeadForceTagIdHandler
,HtmlHandler
,HtmlHeaderSectionHandler
,HtmlProblemFinder
,InlineEnclosureHandler
,OpenCloseTagExpander
,RelativePathPrefixHandler
,RootMarkupFilter
,StyleAndScriptIdentifier
,WicketContainerTagHandler
,WicketLinkTagHandler
,WicketMessageTagHandler
,WicketNamespaceHandler
,WicketRemoveTagHandler
,WicketTagIdentifier
public interface IMarkupFilter
Wicket uses a streaming XML parser to read the markup. A chain of IMarkupFilters is used e.g. to
remove comments, allow for html typical markup (some tags don't need to be closed explicitly),
etc.
- Author:
- Juergen Donnerstag
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionIMarkupFilters are usually chained with the last filter retrieving the elements from the XML parser.Get the next MarkupElement from the parent MarkupFilter and handle it if the specific filter criteria are met.void
postProcess
(Markup markup) Called after all filters have been processed.void
setNextFilter
(IMarkupFilter parent) Set parent filter.
-
Method Details
-
getNextFilter
IMarkupFilters are usually chained with the last filter retrieving the elements from the XML parser.- Returns:
- The next filter in the chain, or null if the last one.
-
setNextFilter
Set parent filter.- Parameters:
parent
- The next element in the chain
-
nextElement
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. Null, if no more found.
- Throws:
ParseException
-
postProcess
Called after all filters have been processed.- Parameters:
markup
-
-