Interface EditorTemplateWithContent

  • All Superinterfaces:
    java.lang.Cloneable, EditorTemplate, PersistentObject, java.io.Serializable

    @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public interface EditorTemplateWithContent
    extends EditorTemplate
    Editor template with predefined string content.
    • Method Detail

      • getContentInfo

        TemplateContentInfo getContentInfo​(java.lang.String saveLocation)
                                    throws java.io.IOException,
                                           ro.sync.exml.editor.xmleditor.transform.CancelledException
        Gets the template content.
        Parameters:
        saveLocation - The location where the new template will be saved.
        Returns:
        The template content. It can be null.
        Throws:
        java.io.IOException
        ro.sync.exml.editor.xmleditor.transform.CancelledException
      • getContentInfo

        TemplateContentInfo getContentInfo​(java.lang.String saveLocation,
                                           boolean interactive)
                                    throws java.io.IOException,
                                           ro.sync.exml.editor.xmleditor.transform.CancelledException
        Returns the template content with editor variables expanded.
        Parameters:
        saveLocation - The location where the content will be saved.
        interactive - true if we should expand interactive editor variables.
        Returns:
        The expanded content.
        Throws:
        java.io.IOException
        ro.sync.exml.editor.xmleditor.transform.CancelledException
      • getContentInfo

        TemplateContentInfo getContentInfo​(java.lang.String saveLocation,
                                           boolean expandEditorVariables,
                                           boolean interactive)
                                    throws java.io.IOException,
                                           ro.sync.exml.editor.xmleditor.transform.CancelledException
        Returns the template content with editor variables expanded.
        Parameters:
        saveLocation - The location where the content will be saved.
        expandEditorVariables - true to expand editor variables.
        interactive - true if we should expand interactive editor variables.
        Returns:
        The expanded content.
        Throws:
        java.io.IOException
        ro.sync.exml.editor.xmleditor.transform.CancelledException