Class RootMarkupFilter
- java.lang.Object
-
- org.apache.wicket.markup.parser.AbstractMarkupFilter
-
- org.apache.wicket.markup.parser.filter.RootMarkupFilter
-
- All Implemented Interfaces:
IMarkupFilter
public final class RootMarkupFilter extends AbstractMarkupFilter
This is the root of all filters, which retrieves the next xml element from the xml parser.- Author:
- Juergen Donnerstag
-
-
Field Summary
-
Fields inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
REQUEST_COUNTER_KEY
-
-
Constructor Summary
Constructors Constructor Description RootMarkupFilter(IXmlPullParser parser, MarkupResourceStream resourceStream)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMarkupFilter
getNextFilter()
IMarkupFilters are usually chained with the last filter retrieving the elements from the XML parser.MarkupElement
nextElement()
Skip all xml elements until the next tag.protected MarkupElement
onComponentTag(ComponentTag tag)
Noopvoid
postProcess(Markup markup)
Noopvoid
setNextFilter(IMarkupFilter parent)
This is the root filter.String
toString()
-
Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
getMarkupResourceStream, getRequestUniqueId, getWicketNamespace, getWicketNamespace, onSpecialTag
-
-
-
-
Constructor Detail
-
RootMarkupFilter
public RootMarkupFilter(IXmlPullParser parser, MarkupResourceStream resourceStream)
Construct.- Parameters:
parser
-
-
-
Method Detail
-
nextElement
public final MarkupElement nextElement() throws ParseException
Skip all xml elements until the next tag.- Specified by:
nextElement
in interfaceIMarkupFilter
- Overrides:
nextElement
in classAbstractMarkupFilter
- Returns:
- Return the next eligible MarkupElement. Null, if no more found.
- Throws:
ParseException
-
getNextFilter
public final IMarkupFilter getNextFilter()
Description copied from interface:IMarkupFilter
IMarkupFilters are usually chained with the last filter retrieving the elements from the XML parser.- Specified by:
getNextFilter
in interfaceIMarkupFilter
- Overrides:
getNextFilter
in classAbstractMarkupFilter
- Returns:
- null. This is the root filter.
-
setNextFilter
public final void setNextFilter(IMarkupFilter parent)
This is the root filter. Operation not allowed. An exception will be thrown.- Specified by:
setNextFilter
in interfaceIMarkupFilter
- Overrides:
setNextFilter
in classAbstractMarkupFilter
- Parameters:
parent
- The parent of this component The next element in the chain
-
onComponentTag
protected MarkupElement onComponentTag(ComponentTag tag) throws ParseException
Noop- Specified by:
onComponentTag
in classAbstractMarkupFilter
- Returns:
- Usually the same as the tag attribute
- Throws:
ParseException
-
postProcess
public final void postProcess(Markup markup)
Noop- Specified by:
postProcess
in interfaceIMarkupFilter
- Overrides:
postProcess
in classAbstractMarkupFilter
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-