public class TemplateController
extends java.lang.Object
TemplateController
class contains method for reading templates.Modifier and Type | Method and Description |
---|---|
static TemplateController |
getInstance()
Static methods return instance of
TemplateController . |
void |
readTemplate(ConfigData configData,
java.lang.String templateFile)
Reads a template defined by its path
templateFile . |
public static TemplateController getInstance()
TemplateController
. If the
instance
is null, initializes a new one.TemplateController
.public void readTemplate(ConfigData configData, java.lang.String templateFile) throws ConfigException, FileNotFoundException
templateFile
.configData
- the data containing editor data structure.templateFile
- the path to the file with template.ConfigException
- if the template or its XML schema isn't well-formed.FileNotFoundException
- if the template or its XML schema doesn't exist.