pl.edu.agh.cast.data.template.xml
Class TemplateXmlImporter

java.lang.Object
  extended by pl.edu.agh.cast.data.template.xml.TemplateXmlImporter

public class TemplateXmlImporter
extends Object

Class responsible for the import process of templates from specified XML files. The success of the import process is dependent on the XML files' validation results, which are checked with the default XML Schema.

Author:
AGH CAST Team

Constructor Summary
TemplateXmlImporter()
          Constructor.
TemplateXmlImporter(Class<?>[] classesWithAnnotations)
          The default constructor.
 
Method Summary
 Template importTemplate(File file)
          Imports a template from a given XML file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateXmlImporter

public TemplateXmlImporter(Class<?>[] classesWithAnnotations)
The default constructor.

Parameters:
classesWithAnnotations - the additional classes containing annotations

TemplateXmlImporter

public TemplateXmlImporter()
Constructor.

Method Detail

importTemplate

public Template importTemplate(File file)
                        throws IOException,
                               ParserConfigurationException,
                               SAXException
Imports a template from a given XML file.

Parameters:
file - the file from which a template is to be imported
Returns:
the imported template
Throws:
IOException
SAXException
ParserConfigurationException


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.