org.objectweb.cjdbc.controller.xml
Class ControllerParser

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.xml.ControllerParser

public class ControllerParser
extends java.lang.Object

Allows to parse an XML content containing the description of the controller confirming to C-JDBC-controller.dtd.

Version:
1.0
Author:
Emmanuel Cecchet, Nicolas Modrzyk

Field Summary
(package private) static Trace logger
          Logger instance.
private  org.xml.sax.XMLReader parser
          XML parser.
 
Constructor Summary
ControllerParser(ControllerFactory configure)
          Creates a new ControllerParser instance.
 
Method Summary
 void readXML(java.lang.String xml)
          Parses an XML content according to C-JDBC-controller DTD.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static Trace logger
Logger instance.


parser

private org.xml.sax.XMLReader parser
XML parser.

Constructor Detail

ControllerParser

public ControllerParser(ControllerFactory configure)
                 throws org.xml.sax.SAXException
Creates a new ControllerParser instance. This method Instanciates also a new ControllerHandler.

Parameters:
configure - a ControllerFactory object that contains the configuration to update with values from xml parsing
Throws:
org.xml.sax.SAXException - if an error occurs
Method Detail

readXML

public void readXML(java.lang.String xml)
             throws java.io.IOException,
                    org.xml.sax.SAXException
Parses an XML content according to C-JDBC-controller DTD.

Parameters:
xml - a String containing the XML content to parse
Throws:
org.xml.sax.SAXException - if an error occurs
java.io.IOException - if an error occurs


Copyright © 2002, 2003 - ObjectWeb Consortium - All Rights Reserved.