org.outerj.xreporter.authorisation
Class AuthorisationManagerImpl.AuthorisationCodesHandler

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.outerj.xreporter.authorisation.AuthorisationManagerImpl.AuthorisationCodesHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.apache.avalon.framework.activity.Initializable
Enclosing class:
AuthorisationManagerImpl

protected class AuthorisationManagerImpl.AuthorisationCodesHandler
extends org.xml.sax.helpers.DefaultHandler
implements org.apache.avalon.framework.activity.Initializable

ContentHandler to parse the file with datasource authorisation codes.


Field Summary
protected  java.lang.String currentCode
           
protected  java.util.HashSet currentDataSourceIds
           
protected  boolean inCode
           
protected  boolean inCodes
           
 
Constructor Summary
protected AuthorisationManagerImpl.AuthorisationCodesHandler()
           
 
Method Summary
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
 void initialize()
           
 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
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inCodes

protected boolean inCodes

inCode

protected boolean inCode

currentCode

protected java.lang.String currentCode

currentDataSourceIds

protected java.util.HashSet currentDataSourceIds
Constructor Detail

AuthorisationManagerImpl.AuthorisationCodesHandler

protected AuthorisationManagerImpl.AuthorisationCodesHandler()
Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
Throws:
java.lang.Exception

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException