jdbcadmin.core.tools
Class ConfigurationHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
jdbcadmin.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)
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 |
ConfigurationHandler
public ConfigurationHandler()
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.