jdbcadmin.core.tools
Class ConfigurationHandler

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byjdbcadmin.core.tools.ConfigurationHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class ConfigurationHandler
extends org.xml.sax.helpers.DefaultHandler

Handler SAX for configuration parsing

Author:
Thomas Recloux (trecloux@norsys.fr)

Constructor Summary
ConfigurationHandler()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
          
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
          
 IAccessAuthorization getAccessAuthorizations()
           
 ConnectionInfo getConnexionInfo()
           
 java.lang.String getLabel()
           
static ConfigurationHandler loadConfig(java.io.InputStream aConfStream)
          Loads the configuration using the specified stream
 void startDocument()
          
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
          
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationHandler

public ConfigurationHandler()
Method Detail

getAccessAuthorizations

public IAccessAuthorization getAccessAuthorizations()
Returns:
the authorizations

getConnexionInfo

public ConnectionInfo getConnexionInfo()
Returns:
connection informations

getLabel

public java.lang.String getLabel()
Returns:
the label

loadConfig

public static ConfigurationHandler loadConfig(java.io.InputStream aConfStream)
                                       throws TechnicalException
Loads the configuration using the specified stream

Parameters:
aConfStream - configuration stream
Returns:
the configuration handler
Throws:
TechnicalException - technical error.

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException

Throws:
org.xml.sax.SAXException

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)


endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)


characters

public void characters(char[] ch,
                       int start,
                       int length)



Copyright © 2004-2005 Norsys. All Rights Reserved.