public static final class TemplateParser.TemplateParserContext extends Object implements DocumentHandler
| Constructor and Description |
|---|
TemplateParserContext() |
| Modifier and Type | Method and Description |
|---|---|
Template |
getTemplate() |
void |
onCharacters(char[] ch,
int off,
int len)
Receive notification of unparsed character data.
|
void |
onComment(String text) |
void |
onEnd()
Receive notification of parsing end.
|
void |
onEndElement(String name)
Receive notification of the end of an element.
|
void |
onStart()
Receive notification of parsing start.
|
void |
onStartElement(String name,
AttributeList attList,
boolean endSlash)
Receive notification of the beginning of an element.
|
public Template getTemplate()
public void onStart()
throws IOException
DocumentHandleronStart in interface DocumentHandlerIOException - if the parsing operation cannot startpublic void onEnd()
throws IOException
DocumentHandleronEnd in interface DocumentHandlerIOException - if the parsing operation cannot endpublic void onStartElement(String name, AttributeList attList, boolean endSlash)
DocumentHandleronStartElement in interface DocumentHandlername - tag nameattList - attribute listendSlash - flag indicating whether the element is closed with
an ending slash (xhtml-compliant)public void onEndElement(String name)
DocumentHandleronEndElement in interface DocumentHandlername - tag namepublic void onCharacters(char[] ch,
int off,
int len)
DocumentHandleronCharacters in interface DocumentHandlerch - the character bufferoff - the offsetlen - the length of the unparsed character datapublic void onComment(String text) throws IOException
onComment in interface DocumentHandlerIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.