Interface ExtensibilityDirectiveData

    • Method Detail

      • getId

        java.lang.String getId()

        Returns the id of FreeMarker directive represented by implementing instance.

        Returns:
        String
      • getAction

        java.lang.String getAction()

        Gets the action being performed by the invocation of the associated ExtensibilityDirective type. The default set of actions include "merge", "remove", "replace", "before" and "after".

        Returns:
        A String representing the action being performed by the invocation of the associated ExtensibilityDirective type.
      • getTarget

        java.lang.String getTarget()

        Gets the id of the ExtensibilityDirective that the invocation of the associated ExtensibilityDirective type is targeting. This will only be expected to return a non-null value when the ExtensibilityDirective is being processed as part of an extension. Any action that has an effect on the existing model (such as "remove" or "replace") will always require target information.

        Returns:
        String
      • getDirectiveName

        java.lang.String getDirectiveName()

        Returns the name of the associated ExtensibilityDirective type.

        Returns:
        String
      • getBody

        freemarker.template.TemplateDirectiveBody getBody()

        Returns the TemplateDirectiveBody of the invocation of the associated ExtensibilityDirective type.

        Returns:
        A TemplateDirectiveBody associated with a single invocation of the associated ExtensibilityDirective.
      • render

        void render​(ModelWriter writer)
             throws freemarker.template.TemplateException,
                    java.io.IOException

        Renders the output provided by the directive. In most cases this will probably call the render method of the associated TemplateDirectiveBody. However, it is possible that rendering may possible by directive with an empty body.

        Parameters:
        writer - ModelWriter to send the rendered output to.
        Throws:
        freemarker.template.TemplateException
        java.io.IOException