Class TemplateParser.TemplateParserContext
java.lang.Object
org.apache.sling.scripting.sightly.impl.html.dom.template.TemplateParser.TemplateParserContext
- All Implemented Interfaces:
DocumentHandler
- Enclosing class:
- TemplateParser
public static final class TemplateParser.TemplateParserContext
extends Object
implements DocumentHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onCharacters
(char[] ch, int off, int len) Receive notification of unparsed character data.void
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.
-
Constructor Details
-
TemplateParserContext
public TemplateParserContext()
-
-
Method Details
-
getTemplate
-
onStart
Description copied from interface:DocumentHandler
Receive notification of parsing start.- Specified by:
onStart
in interfaceDocumentHandler
- Throws:
IOException
- if the parsing operation cannot start
-
onEnd
Description copied from interface:DocumentHandler
Receive notification of parsing end.- Specified by:
onEnd
in interfaceDocumentHandler
- Throws:
IOException
- if the parsing operation cannot end
-
onStartElement
Description copied from interface:DocumentHandler
Receive notification of the beginning of an element.- Specified by:
onStartElement
in interfaceDocumentHandler
- Parameters:
name
- tag nameattList
- attribute listendSlash
- flag indicating whether the element is closed with an ending slash (xhtml-compliant)
-
onEndElement
Description copied from interface:DocumentHandler
Receive notification of the end of an element.- Specified by:
onEndElement
in interfaceDocumentHandler
- Parameters:
name
- tag name
-
onCharacters
public void onCharacters(char[] ch, int off, int len) Description copied from interface:DocumentHandler
Receive notification of unparsed character data.- Specified by:
onCharacters
in interfaceDocumentHandler
- Parameters:
ch
- the character bufferoff
- the offsetlen
- the length of the unparsed character data
-
onComment
- Specified by:
onComment
in interfaceDocumentHandler
- Throws:
IOException
-