public class MarkupParser extends AbstractMarkupParser
MarkupFactory
Modifier and Type | Class and Description |
---|---|
class |
MarkupParser.MarkupFilterList
A simple extension to ArrayList to manage Wicket MarkupFilter's more easily
|
Modifier and Type | Field and Description |
---|---|
static String |
WICKET
"wicket"
|
CONDITIONAL_COMMENT_OPENING
Constructor and Description |
---|
MarkupParser(IXmlPullParser xmlParser,
MarkupResourceStream resource)
Constructor.
|
MarkupParser(MarkupResourceStream resource)
Constructor.
|
MarkupParser(String markup)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(IMarkupFilter filter)
Add a markup filter
|
boolean |
add(IMarkupFilter filter,
Class<? extends IMarkupFilter> beforeFilter)
Add a markup filter before the 'beforeFilter'
|
MarkupParser.MarkupFilterList |
getMarkupFilters() |
protected MarkupParser.MarkupFilterList |
initializeMarkupFilters(Markup markup)
Initialize Wicket's MarkupParser with all necessary markup filters.
|
protected IMarkupFilter |
onAppendMarkupFilter(IMarkupFilter filter)
a) Allow subclasses to configure individual Wicket filters
|
compressWhitespace, getMarkupResourceStream, handleRawText, parse, postProcess, setWicketNamespace, toString
public static final String WICKET
public MarkupParser(MarkupResourceStream resource)
resource
- The markup resource (file)public MarkupParser(String markup)
markup
- The markup resource.public MarkupParser(IXmlPullParser xmlParser, MarkupResourceStream resource)
xmlParser
- The streaming xml parser to read and parse the markupresource
- The markup resource (file)public MarkupParser.MarkupFilterList getMarkupFilters()
getMarkupFilters
in class AbstractMarkupParser
public final boolean add(IMarkupFilter filter)
filter
- public final boolean add(IMarkupFilter filter, Class<? extends IMarkupFilter> beforeFilter)
filter
- beforeFilter
- protected IMarkupFilter onAppendMarkupFilter(IMarkupFilter filter)
b) Allows to disable Wicket filters via returning false
filter
- protected MarkupParser.MarkupFilterList initializeMarkupFilters(Markup markup)
initializeMarkupFilters
in class AbstractMarkupParser
markup
- Copyright © 2006–2022 Apache Software Foundation. All rights reserved.