public final class DecoupledTemplateLogicBuilderMarkupHandler
extends org.attoparser.AbstractMarkupHandler
Implementation of IMarkupHandler used for building and populating instances of
DecoupledTemplateLogic as a result of parsing a decoupled template logic resource.
Once built and populated, instances of DecoupledTemplateLogic are handled over to
TemplateHandlerAdapterMarkupHandler instances which are one of the steps in
the template parsing chain (converting parser events into ITemplateHandler events).
Attributes specified here to be injected into the template are injected at real-time during the parsing operation
itself, so that overhead is minimal (and zero once the template is cached).
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_NAME_SEL |
static String |
TAG_NAME_ATTR |
static String |
TAG_NAME_LOGIC |
| Constructor and Description |
|---|
DecoupledTemplateLogicBuilderMarkupHandler(String templateName,
TemplateMode templateMode) |
| Modifier and Type | Method and Description |
|---|---|
DecoupledTemplateLogic |
getDecoupledTemplateLogic() |
void |
handleAttribute(char[] buffer,
int nameOffset,
int nameLen,
int nameLine,
int nameCol,
int operatorOffset,
int operatorLen,
int operatorLine,
int operatorCol,
int valueContentOffset,
int valueContentLen,
int valueOuterOffset,
int valueOuterLen,
int valueLine,
int valueCol) |
void |
handleAutoCloseElementEnd(char[] buffer,
int nameOffset,
int nameLen,
int line,
int col) |
void |
handleCloseElementEnd(char[] buffer,
int nameOffset,
int nameLen,
int line,
int col) |
void |
handleOpenElementEnd(char[] buffer,
int nameOffset,
int nameLen,
int line,
int col) |
void |
handleOpenElementStart(char[] buffer,
int nameOffset,
int nameLen,
int line,
int col) |
void |
handleStandaloneElementEnd(char[] buffer,
int nameOffset,
int nameLen,
boolean minimized,
int line,
int col) |
void |
handleStandaloneElementStart(char[] buffer,
int nameOffset,
int nameLen,
boolean minimized,
int line,
int col) |
handleAutoCloseElementStart, handleAutoOpenElementEnd, handleAutoOpenElementStart, handleCDATASection, handleCloseElementStart, handleComment, handleDocType, handleDocumentEnd, handleDocumentStart, handleInnerWhiteSpace, handleProcessingInstruction, handleText, handleUnmatchedCloseElementEnd, handleUnmatchedCloseElementStart, handleXmlDeclaration, setParseConfiguration, setParseSelection, setParseStatuspublic static final String TAG_NAME_LOGIC
public static final String TAG_NAME_ATTR
public static final String ATTRIBUTE_NAME_SEL
public DecoupledTemplateLogicBuilderMarkupHandler(String templateName, TemplateMode templateMode)
public DecoupledTemplateLogic getDecoupledTemplateLogic()
public void handleStandaloneElementStart(char[] buffer,
int nameOffset,
int nameLen,
boolean minimized,
int line,
int col)
throws org.attoparser.ParseException
handleStandaloneElementStart in interface org.attoparser.IElementHandlerhandleStandaloneElementStart in class org.attoparser.AbstractMarkupHandlerorg.attoparser.ParseExceptionpublic void handleStandaloneElementEnd(char[] buffer,
int nameOffset,
int nameLen,
boolean minimized,
int line,
int col)
throws org.attoparser.ParseException
handleStandaloneElementEnd in interface org.attoparser.IElementHandlerhandleStandaloneElementEnd in class org.attoparser.AbstractMarkupHandlerorg.attoparser.ParseExceptionpublic void handleOpenElementStart(char[] buffer,
int nameOffset,
int nameLen,
int line,
int col)
throws org.attoparser.ParseException
handleOpenElementStart in interface org.attoparser.IElementHandlerhandleOpenElementStart in class org.attoparser.AbstractMarkupHandlerorg.attoparser.ParseExceptionpublic void handleOpenElementEnd(char[] buffer,
int nameOffset,
int nameLen,
int line,
int col)
throws org.attoparser.ParseException
handleOpenElementEnd in interface org.attoparser.IElementHandlerhandleOpenElementEnd in class org.attoparser.AbstractMarkupHandlerorg.attoparser.ParseExceptionpublic void handleCloseElementEnd(char[] buffer,
int nameOffset,
int nameLen,
int line,
int col)
throws org.attoparser.ParseException
handleCloseElementEnd in interface org.attoparser.IElementHandlerhandleCloseElementEnd in class org.attoparser.AbstractMarkupHandlerorg.attoparser.ParseExceptionpublic void handleAutoCloseElementEnd(char[] buffer,
int nameOffset,
int nameLen,
int line,
int col)
throws org.attoparser.ParseException
handleAutoCloseElementEnd in interface org.attoparser.IElementHandlerhandleAutoCloseElementEnd in class org.attoparser.AbstractMarkupHandlerorg.attoparser.ParseExceptionpublic void handleAttribute(char[] buffer,
int nameOffset,
int nameLen,
int nameLine,
int nameCol,
int operatorOffset,
int operatorLen,
int operatorLine,
int operatorCol,
int valueContentOffset,
int valueContentLen,
int valueOuterOffset,
int valueOuterLen,
int valueLine,
int valueCol)
throws org.attoparser.ParseException
handleAttribute in interface org.attoparser.IAttributeSequenceHandlerhandleAttribute in class org.attoparser.AbstractMarkupHandlerorg.attoparser.ParseExceptionCopyright © 2016 The THYMELEAF team. All rights reserved.