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 IMarkupFiltergetNextFilter()IMarkupFilters are usually chained with the last filter retrieving the elements from the XML parser.MarkupElementnextElement()Skip all xml elements until the next tag.protected MarkupElementonComponentTag(ComponentTag tag)NoopvoidpostProcess(Markup markup)NoopvoidsetNextFilter(IMarkupFilter parent)This is the root filter.java.lang.StringtoString()-
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 java.text.ParseException
Skip all xml elements until the next tag.- Specified by:
nextElementin interfaceIMarkupFilter- Overrides:
nextElementin classAbstractMarkupFilter- Returns:
- Return the next eligible MarkupElement. Null, if no more found.
- Throws:
java.text.ParseException
-
getNextFilter
public final IMarkupFilter getNextFilter()
Description copied from interface:IMarkupFilterIMarkupFilters are usually chained with the last filter retrieving the elements from the XML parser.- Specified by:
getNextFilterin interfaceIMarkupFilter- Overrides:
getNextFilterin 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:
setNextFilterin interfaceIMarkupFilter- Overrides:
setNextFilterin classAbstractMarkupFilter- Parameters:
parent- The parent of this component The next element in the chain
-
onComponentTag
protected MarkupElement onComponentTag(ComponentTag tag) throws java.text.ParseException
Noop- Specified by:
onComponentTagin classAbstractMarkupFilter- Returns:
- Usually the same as the tag attribute
- Throws:
java.text.ParseException
-
postProcess
public final void postProcess(Markup markup)
Noop- Specified by:
postProcessin interfaceIMarkupFilter- Overrides:
postProcessin classAbstractMarkupFilter
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-