com.softwareag.tamino.db.api.response.sax
Class TSAXDispatchingLexicalHandler

java.lang.Object
  extended by com.softwareag.tamino.db.api.response.sax.TSAXDispatchingLexicalHandler
All Implemented Interfaces:
org.xml.sax.ext.LexicalHandler

public class TSAXDispatchingLexicalHandler
extends java.lang.Object
implements org.xml.sax.ext.LexicalHandler

TSAXDispatchingLexicalHandler implements the LexicalHandler interface. An instance of this class is responsible to dispatch all lexical events to either an info bases lexical handler or a query content based lexical handler.

Version:
$Revision: 1.4 $
Author:
Marcus Schreyer

Field Summary
static java.lang.String PROPERTY_ID
          The property id according to which a concrete LexicalHandler instance is set on an XMLReader instance.
 
Constructor Summary
TSAXDispatchingLexicalHandler(TSAXDispatchingDefaultHandler dispatchingDefaultHandler, org.xml.sax.ext.LexicalHandler infoLexicalHandler, org.xml.sax.ext.LexicalHandler queryLexicalHandler)
          Initialzes the handler with the given dispatching default handler, the information lexical hander and the query content based lexical handler.
 
Method Summary
 void comment(char[] ch, int start, int length)
          Report an XML comment anywhere in the document.
 void endCDATA()
          Report the end of a CDATA section.
 void endDTD()
          Report the end of DTD declarations.
 void endEntity(java.lang.String name)
          Report the end of an entity.
 void setInfoLexicalHandler(org.xml.sax.ext.LexicalHandler infoLexicalHandler)
          Sets the information specific lexical handler to which events might be dispatched.
 void setQueryLexicalHandler(org.xml.sax.ext.LexicalHandler queryLexicalHandler)
          Sets the query content specific decl handler to which events might be dispatched.
 void startCDATA()
          Report the start of a CDATA section.
 void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
          Report the start of DTD declarations, if any.
 void startEntity(java.lang.String name)
          Report the beginning of an entity in content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_ID

public static final java.lang.String PROPERTY_ID
The property id according to which a concrete LexicalHandler instance is set on an XMLReader instance. E.g.
 xmlReader.setProperty( TSAXWritingLexicalHandler.PROPERTY_ID , lexicalHandler ); 

See Also:
Constant Field Values
Constructor Detail

TSAXDispatchingLexicalHandler

public TSAXDispatchingLexicalHandler(TSAXDispatchingDefaultHandler dispatchingDefaultHandler,
                                     org.xml.sax.ext.LexicalHandler infoLexicalHandler,
                                     org.xml.sax.ext.LexicalHandler queryLexicalHandler)
Initialzes the handler with the given dispatching default handler, the information lexical hander and the query content based lexical handler.

Method Detail

setInfoLexicalHandler

public void setInfoLexicalHandler(org.xml.sax.ext.LexicalHandler infoLexicalHandler)
Sets the information specific lexical handler to which events might be dispatched.


setQueryLexicalHandler

public void setQueryLexicalHandler(org.xml.sax.ext.LexicalHandler queryLexicalHandler)
Sets the query content specific decl handler to which events might be dispatched.


comment

public void comment(char[] ch,
                    int start,
                    int length)
             throws org.xml.sax.SAXException
Report an XML comment anywhere in the document.

Specified by:
comment in interface org.xml.sax.ext.LexicalHandler
Throws:
org.xml.sax.SAXException

startCDATA

public void startCDATA()
                throws org.xml.sax.SAXException
Report the start of a CDATA section.

Specified by:
startCDATA in interface org.xml.sax.ext.LexicalHandler
Throws:
org.xml.sax.SAXException

endCDATA

public void endCDATA()
              throws org.xml.sax.SAXException
Report the end of a CDATA section.

Specified by:
endCDATA in interface org.xml.sax.ext.LexicalHandler
Throws:
org.xml.sax.SAXException

startDTD

public void startDTD(java.lang.String name,
                     java.lang.String publicId,
                     java.lang.String systemId)
              throws org.xml.sax.SAXException
Report the start of DTD declarations, if any.

Specified by:
startDTD in interface org.xml.sax.ext.LexicalHandler
Throws:
org.xml.sax.SAXException

endDTD

public void endDTD()
            throws org.xml.sax.SAXException
Report the end of DTD declarations.

Specified by:
endDTD in interface org.xml.sax.ext.LexicalHandler
Throws:
org.xml.sax.SAXException

endEntity

public void endEntity(java.lang.String name)
               throws org.xml.sax.SAXException
Report the end of an entity.

Specified by:
endEntity in interface org.xml.sax.ext.LexicalHandler
Throws:
org.xml.sax.SAXException

startEntity

public void startEntity(java.lang.String name)
                 throws org.xml.sax.SAXException
Report the beginning of an entity in content.

Specified by:
startEntity in interface org.xml.sax.ext.LexicalHandler
Throws:
org.xml.sax.SAXException


Copyright (c) 2013 Software AG. All Rights Reserved.