pt.moredata.dataentry.core.generator
Class DaoGeneratorConfigScanner

java.lang.Object
  extended bypt.moredata.dataentry.core.generator.DaoGeneratorConfigScanner

public class DaoGeneratorConfigScanner
extends java.lang.Object

This is a scanner of DOM tree. Example:

     javax.xml.parsers.DocumentBuilderFactory builderFactory = javax.xml.parsers.DocumentBuilderFactory.newInstance();
     javax.xml.parsers.DocumentBuilder builder = builderFactory.newDocumentBuilder();
     org.w3c.dom.Document document = builder.parse (new org.xml.sax.InputSource (???));
     DaoGeneratorConfigScanner scanner = new DaoGeneratorConfigScanner (document);
     scanner.visitDocument();
 

See Also:
Document, Element, NamedNodeMap

Field Summary
protected  java.io.InputStream sourceIS
          Nome do ficheiro de configuracao.
 
Constructor Summary
DaoGeneratorConfigScanner(org.w3c.dom.Document document)
          Create new DaoGeneratorConfigScanner with org.w3c.dom.Document.
DaoGeneratorConfigScanner(java.io.InputStream is)
          Cria um novo objecto para ler a configuracao de um ficheiro com o nome por defeito.
 
Method Summary
 DAOInfoMap loadConfig()
          Carrega do ficheiro de configuraçao a informacao para aceder a base de dados.
protected  void visitDocument()
          Scan through org.w3c.dom.Document document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceIS

protected java.io.InputStream sourceIS
Nome do ficheiro de configuracao.

Constructor Detail

DaoGeneratorConfigScanner

public DaoGeneratorConfigScanner(org.w3c.dom.Document document)
Create new DaoGeneratorConfigScanner with org.w3c.dom.Document.


DaoGeneratorConfigScanner

public DaoGeneratorConfigScanner(java.io.InputStream is)
Cria um novo objecto para ler a configuracao de um ficheiro com o nome por defeito.

Method Detail

visitDocument

protected void visitDocument()
Scan through org.w3c.dom.Document document.


loadConfig

public DAOInfoMap loadConfig()
                      throws java.io.FileNotFoundException
Carrega do ficheiro de configuraçao a informacao para aceder a base de dados.

Throws:
java.io.FileNotFoundException