Class TemplateBoundariesStructureHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void  text, boolean processable)
      Instructs the engine to insert the specified text.
      void insert​(IModel model, boolean processable)
      Instructs the engine to insert the specified model.
      void  name)
      Instructs the engine to remove a local variable.
      void reset()
      Resets all actions specified so far for the current processor execution.
      void setInliner​(IInliner inliner)
      Instructs the engine to set a new inliner.
      void  name,  value)
      Instructs the engine to set a new local variable.
      void  selectionTarget)
      Instructs the engine to set a new selection target.
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
    • Method Detail

      • insert

        public void insert​( 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​( 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.