cz.zcu.fav.kiv.editor.template
Class TemplateParser

java.lang.Object
  extended by cz.zcu.fav.kiv.editor.template.TemplateParser

public class TemplateParser
extends java.lang.Object

The TemplateParser class contains method for parsing template files.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Constructor Summary
TemplateParser()
          Initializes a newly created TemplateParser.
 
Method Summary
 void readTemplate(ConfigData configData, java.lang.String templateFile)
          Parses the file with template.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateParser

public TemplateParser()
Initializes a newly created TemplateParser. Sets up the SAX parser used for parsing.

Method Detail

readTemplate

public void readTemplate(ConfigData configData,
                         java.lang.String templateFile)
                  throws ConfigException,
                         FileNotFoundException
Parses the file with template.

Parameters:
configData - the data containing editor data structure.
templateFile - the path to the file with template.
Throws:
ConfigException - if the template or its XML schema isn't well-formed.
FileNotFoundException - if the template or its XML schema doesn't exist.