Interface EditorTemplateWithContent

All Superinterfaces:
Cloneable, EditorTemplate, PersistentObject, Serializable

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

    • getContentInfo

      TemplateContentInfo getContentInfo(String saveLocation) throws 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:
      IOException
      ro.sync.exml.editor.xmleditor.transform.CancelledException
    • getContentInfo

      TemplateContentInfo getContentInfo(String saveLocation, boolean interactive) throws 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:
      IOException
      ro.sync.exml.editor.xmleditor.transform.CancelledException
    • getContentInfo

      TemplateContentInfo getContentInfo(String saveLocation, boolean expandEditorVariables, boolean interactive) throws 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:
      IOException
      ro.sync.exml.editor.xmleditor.transform.CancelledException