fr.dyade.aaa.agent.conf

Class A3CMLSaxWrapper

Implemented Interfaces:
A3CMLWrapper

public class A3CMLSaxWrapper
extends DefaultHandler
implements A3CMLWrapper

XML SAX Wrapper for A3 configuration file.

Field Summary

protected A3CMLConfig
a3cmlConfig
protected Logger
logmon

Constructor Summary

A3CMLSaxWrapper()

Method Summary

void
endDocument()
Finalizes parsing of a document.
void
endElement(String uri, String localName, String rawName)
Receive notification of the end of an element.
void
error(SAXParseException e)
Handles notification of a recoverable parser error.
void
fatalError(SAXParseException e)
Handles notification of a non-recoverable parser error.
A3CMLConfig
parse(Reader cfgReader, String cfgName)
Parses the xml file named cfgFileName and calls handler methods.
void
startDocument()
Initializes parsing of a document.
void
startElement(String uri, String localName, String rawName, Attributes atts)
Receive notification of the start of an element.
void
warning(SAXParseException e)
Handles notification of a parser warning.

Field Details

a3cmlConfig

protected A3CMLConfig a3cmlConfig


logmon

protected Logger logmon

Constructor Details

A3CMLSaxWrapper

public A3CMLSaxWrapper()

Method Details

endDocument

public void endDocument()
            throws SAXException
Finalizes parsing of a document.


endElement

public void endElement(String uri,
                       String localName,
                       String rawName)
            throws SAXException
Receive notification of the end of an element.

Parameters:
uri - The Namespace URI
localName - The local name
rawName - The qualified name


error

public void error(SAXParseException e)
            throws SAXException
Handles notification of a recoverable parser error.

Parameters:
e - The warning information encoded as an exception.


fatalError

public void fatalError(SAXParseException e)
            throws SAXException
Handles notification of a non-recoverable parser error.

Parameters:
e - The warning information encoded as an exception.


parse

public A3CMLConfig parse(Reader cfgReader,
                         String cfgName)
            throws Exception
Parses the xml file named cfgFileName and calls handler methods. Calls only methode startDocument(), startElement, endElement and endDocument.

Parameters:


startDocument

public void startDocument()
            throws SAXException
Initializes parsing of a document.


startElement

public void startElement(String uri,
                         String localName,
                         String rawName,
                         Attributes atts)
            throws SAXException
Receive notification of the start of an element.

Parameters:
uri - The Namespace URI
localName - The local name
rawName - The qualified name
atts - The attributes attached to the element.


warning

public void warning(SAXParseException e)
            throws SAXException
Handles notification of a parser warning.

Parameters:
e - The warning information encoded as an exception.


Copyright B) 2004 Scalagent - All rights reserved