Package ro.sync.template
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.
-
Field Summary
Fields inherited from interface ro.sync.exml.editor.EditorTemplate
ARCHIVE_TEMPLATE, EDITOR_TEMPLATE, FILE_TEMPLATE, PROJECT_ARCHIVE_TEMPLATE -
Method Summary
Modifier and TypeMethodDescriptiongetContentInfo(String saveLocation) Gets the template content.getContentInfo(String saveLocation, boolean interactive) Returns the template content with editor variables expanded.getContentInfo(String saveLocation, boolean expandEditorVariables, boolean interactive) Returns the template content with editor variables expanded.Methods inherited from interface ro.sync.exml.editor.EditorTemplate
clone, getAdditionalInformation, getCaretPosition, getCustomizePageID, getDescription, getExtension, getFilenamePrefix, getFilenameSuffix, getLongDescription, getName, getSource, getTemplateType, getTypeProperty, isCustomizableMethods inherited from interface ro.sync.options.PersistentObject
checkValid, getNotPersistentFieldNames
-
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:
IOExceptionro.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-trueif we should expand interactive editor variables.- Returns:
- The expanded content.
- Throws:
IOExceptionro.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-trueto expand editor variables.interactive-trueif we should expand interactive editor variables.- Returns:
- The expanded content.
- Throws:
IOExceptionro.sync.exml.editor.xmleditor.transform.CancelledException
-