public final class WicketTagIdentifier extends AbstractMarkupFilter
Constructor and Description |
---|
WicketTagIdentifier(MarkupResourceStream markup)
Construct.
|
Modifier and Type | Method and Description |
---|---|
protected MarkupElement |
onComponentTag(ComponentTag tag)
Get the next tag from the next MarkupFilter in the chain and search for Wicket specific tags.
|
static void |
registerWellKnownTagName(String name)
Register a new well known wicket tag name (e.g.
|
getMarkupResourceStream, getNextFilter, getWicketNamespace, getWicketNamespace, nextElement, onSpecialTag, postProcess, setNextFilter
public WicketTagIdentifier(MarkupResourceStream markup)
markup
- The markup as known by nowprotected MarkupElement onComponentTag(ComponentTag tag) throws ParseException
Note: The xml parser - the next MarkupFilter in the chain - returns XmlTags which are a subclass of MarkupElement. The implementation of this filter will return either ComponentTag or WicketTag. Both are subclasses of MarkupElement and both maintain a reference to the XmlTag. But no XmlTag is returned.
onComponentTag
in class AbstractMarkupFilter
null
then no more tags are availableParseException
IMarkupFilter.nextElement()
public static void registerWellKnownTagName(String name)
name
- Copyright © 2006–2014 Apache Software Foundation. All rights reserved.