|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITemplateProvider
Template provider which provides access to import templates and groups.
| Method Summary | |
|---|---|
void |
exportTemplateToFile(IImportTemplate template,
File file)
Writes given template to the file. |
IImportTemplate |
importTemplateFromFile(File file)
Imports template from a given file. |
Collection<ImportTemplateGroup> |
readTemplateGroups()
Reads all template groups. |
Collection<IImportTemplate> |
readTemplates()
Reads import templates. |
void |
removeTemplate(UUID templateId)
Removes template with given id. |
void |
removeTemplateGroup(UUID groupId)
Removes templates group with given id. |
void |
saveTemplate(IImportTemplate template)
Saves given template. |
void |
saveTemplateGroup(ImportTemplateGroup group)
Saves given template group. |
| Method Detail |
|---|
void saveTemplate(IImportTemplate template)
throws TemplateException
template - template to save
TemplateException - when template cannot be saved as a result of core eclipse exceptions
void removeTemplate(UUID templateId)
throws TemplateException
templateId - id of template to remove
TemplateException - when Eclipse core error occurs
Collection<IImportTemplate> readTemplates()
throws TemplateException
TemplateException - when any error occurs during reading template
void exportTemplateToFile(IImportTemplate template,
File file)
throws TemplateException
template - template to writefile - destination file
TemplateException - when any I/O exception occurs during exporting template
IImportTemplate importTemplateFromFile(File file)
throws TemplateException
file - file which contains an import template
TemplateException - when the file does not exists or it not contains import template or any IOException occurred during
reading the file
void saveTemplateGroup(ImportTemplateGroup group)
throws TemplateException
group - group to save
TemplateException
void removeTemplateGroup(UUID groupId)
throws TemplateException
groupId - group id
TemplateException - when Eclipse core error occurs
Collection<ImportTemplateGroup> readTemplateGroups()
throws TemplateException
TemplateException - when any error occurs during reading template groups
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||