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

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

public class TSAXDispatchingDeclHandler
extends java.lang.Object
implements org.xml.sax.ext.DeclHandler

TSAXDispatchingDeclHandler implements the DeclHandler interface. An instance of this class is responsible to dispatch all decl events to either a info bases decl handler or a query content based decl handler.

Version:
$Revision: 1.4 $
Author:
Marcus Schreyer

Field Summary
static java.lang.String PROPERTY_ID
          The property id according to which a concrete DeclHandler instance is set on an XMLReader instance.
 
Constructor Summary
TSAXDispatchingDeclHandler(TSAXDispatchingDefaultHandler dispatchingDefaultHandler, org.xml.sax.ext.DeclHandler infoDeclHandler, org.xml.sax.ext.DeclHandler queryDeclHandler)
          Initialzes the handler with the given dispatching default handler and the information and query content specific decl handlers.
 
Method Summary
 void attributeDecl(java.lang.String eName, java.lang.String aName, java.lang.String type, java.lang.String valueDefault, java.lang.String value)
          Report an attribute type declaration.
 void elementDecl(java.lang.String name, java.lang.String model)
          Report an element type declaration.
 void externalEntityDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
          Report a parsed external entity declaration.
 void internalEntityDecl(java.lang.String name, java.lang.String value)
          Report an internal entity declaration.
 void setInfoDeclHandler(org.xml.sax.ext.DeclHandler infoDeclHandler)
          Sets the information specific decl handler to which events might be dispatched.
 void setQueryDeclHandler(org.xml.sax.ext.DeclHandler queryDeclHandler)
          Sets the query content specific decl handler to which events might be dispatched.
 
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 DeclHandler instance is set on an XMLReader instance. E.g.
 xmlReader.setProperty( TSAXWritingLexicalHandler.PROPERTY_ID , lexicalHandler ); 

See Also:
Constant Field Values
Constructor Detail

TSAXDispatchingDeclHandler

public TSAXDispatchingDeclHandler(TSAXDispatchingDefaultHandler dispatchingDefaultHandler,
                                  org.xml.sax.ext.DeclHandler infoDeclHandler,
                                  org.xml.sax.ext.DeclHandler queryDeclHandler)
Initialzes the handler with the given dispatching default handler and the information and query content specific decl handlers.

Method Detail

setInfoDeclHandler

public void setInfoDeclHandler(org.xml.sax.ext.DeclHandler infoDeclHandler)
Sets the information specific decl handler to which events might be dispatched.


setQueryDeclHandler

public void setQueryDeclHandler(org.xml.sax.ext.DeclHandler queryDeclHandler)
Sets the query content specific decl handler to which events might be dispatched.


attributeDecl

public void attributeDecl(java.lang.String eName,
                          java.lang.String aName,
                          java.lang.String type,
                          java.lang.String valueDefault,
                          java.lang.String value)
                   throws org.xml.sax.SAXException
Report an attribute type declaration.

Specified by:
attributeDecl in interface org.xml.sax.ext.DeclHandler
Throws:
org.xml.sax.SAXException

elementDecl

public void elementDecl(java.lang.String name,
                        java.lang.String model)
                 throws org.xml.sax.SAXException
Report an element type declaration.

Specified by:
elementDecl in interface org.xml.sax.ext.DeclHandler
Throws:
org.xml.sax.SAXException

externalEntityDecl

public void externalEntityDecl(java.lang.String name,
                               java.lang.String publicId,
                               java.lang.String systemId)
                        throws org.xml.sax.SAXException
Report a parsed external entity declaration.

Specified by:
externalEntityDecl in interface org.xml.sax.ext.DeclHandler
Throws:
org.xml.sax.SAXException

internalEntityDecl

public void internalEntityDecl(java.lang.String name,
                               java.lang.String value)
                        throws org.xml.sax.SAXException
Report an internal entity declaration.

Specified by:
internalEntityDecl in interface org.xml.sax.ext.DeclHandler
Throws:
org.xml.sax.SAXException


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