Class TemplateBoundariesStructureHandler

    • Field Detail

      • insertText

        boolean insertText
      • insertTextValue

        java.lang.String insertTextValue
      • insertTextProcessable

        boolean insertTextProcessable
      • insertModel

        boolean insertModel
      • insertModelValue

        IModel insertModelValue
      • insertModelProcessable

        boolean insertModelProcessable
      • setLocalVariable

        boolean setLocalVariable
      • addedLocalVariables

        java.util.Map<java.lang.String,​java.lang.Object> addedLocalVariables
      • removeLocalVariable

        boolean removeLocalVariable
      • removedLocalVariableNames

        java.util.Set<java.lang.String> removedLocalVariableNames
      • setSelectionTarget

        boolean setSelectionTarget
      • selectionTargetObject

        java.lang.Object selectionTargetObject
      • setInliner

        boolean setInliner
      • setInlinerValue

        IInliner setInlinerValue
    • Constructor Detail

      • TemplateBoundariesStructureHandler

        TemplateBoundariesStructureHandler()
    • Method Detail

      • insert

        public void insert​(java.lang.String text,
                           boolean processable)
        Description copied from interface: ITemplateBoundariesStructureHandler

        Instructs the engine to insert the specified text.

        If the processed event is a ITemplateStart event, then the text will be inserted at the beginning of the template (just after the template start event). On the other hand, if the processed event is a ITemplateEnd event, then the text will be inserted at the end of the template (just before the template end event).

        Specified by:
        insert in interface ITemplateBoundariesStructureHandler
        Parameters:
        text - the text to be inserted.
        processable - whether the inserted text should be considered processable or not.
      • insert

        public void insert​(IModel model,
                           boolean processable)
        Description copied from interface: ITemplateBoundariesStructureHandler

        Instructs the engine to insert the specified model.

        If the processed event is a ITemplateStart event, then the model will be inserted at the beginning of the template (just after the template start event). On the other hand, if the processed event is a ITemplateEnd event, then the model will be inserted at the end of the template (just before the template end event).

        Specified by:
        insert in interface ITemplateBoundariesStructureHandler
        Parameters:
        model - the model to be inserted.
        processable - whether the inserted text should be considered processable or not.
      • setSelectionTarget

        public void setSelectionTarget​(java.lang.Object selectionTarget)
        Description copied from interface: ITemplateBoundariesStructureHandler

        Instructs the engine to set a new selection target.

        The selection target is the object on which selection expressions (*{...}) are executed. In the Standard Dialect, this selection target is usually modified by means of the th:object attribute, but custom processors can do it too. Note the selection target has the same scope as a local variable, and will therefore be accessible only inside the body of the element being processed.

        See ITemplateContext.getSelectionTarget()

        Specified by:
        setSelectionTarget in interface ITemplateBoundariesStructureHandler
        Parameters:
        selectionTarget - the selection target to be set.
      • resetAllButLocalVariables

        private void resetAllButLocalVariables()
      • applyContextModifications

        void applyContextModifications​(IEngineContext engineContext)