edu.ntnu.item.jt.system
Class XMLParser

java.lang.Object
  extended by edu.ntnu.item.jt.system.XMLParser

public class XMLParser
extends java.lang.Object

Parses an XML file to config beans.

Author:
Jøran Vagnby Lillesand

Constructor Summary
XMLParser()
           
 
Method Summary
 PowerScanBean parse(java.io.File xmlConfig)
          Parses the supplied XML structured configuration file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLParser

public XMLParser()
Method Detail

parse

public PowerScanBean parse(java.io.File xmlConfig)
                    throws InvalidFileException,
                           ParserException
Parses the supplied XML structured configuration file.

Parameters:
xmlConfig - the XML file to be parsed
Returns:
the root bean containing references to every other piece of information in the configuration file.
Throws:
InvalidFileException - if the input file could not be read.
ParserException - if an error occured while generating beans from the XML config file, such as malstructured XML.