org.enhydra.xml.xmlc.parsers.xerces
Class XercesTracer

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.parsers.xerces.XercesTracer

class XercesTracer
extends java.lang.Object

Tracing for parser callbacks. Isolated in a class because it was getting to complex and crowding the actuall handlers.


Constructor Summary
protected XercesTracer(org.enhydra.apache.xerces.utils.StringPool stringPool, ParseTracer tracer)
          Constructor.
 
Method Summary
 void attlistDecl(org.enhydra.apache.xerces.utils.QName elementDecl, org.enhydra.apache.xerces.utils.QName attributeDecl, int attType, boolean attList, java.lang.String enumString, int attDefaultType, int attDefaultValue)
          
 void characters(char[] ch, int start, int length)
          Handle characters.
 void comment(int comment)
          Handle a comment.
 void elementDecl(org.enhydra.apache.xerces.utils.QName elementDecl, int contentSpecType, int contentSpecIndex, org.enhydra.apache.xerces.framework.XMLContentSpec.Provider contentSpecProvider)
          
 boolean enabled()
           
 void endCDATA()
          Handle for end of CDATA section.
 void endDocument()
          Handle end document.
 void endDTD()
           
 void endElement(org.enhydra.apache.xerces.utils.QName element)
          Handle end element.
 void endEntityReference(int entityName, int entityType, int entityContext, boolean processed)
          Handle the end of an entity reference.
 void endNamespaceDeclScope(int prefix)
          Handle end of a namespace declaration scope.
 void externalEntityDecl(int entityName, int publicId, int systemId)
          
 void externalPEDecl(int entityName, int publicId, int systemId)
          
 void ignorableWhitespace(char[] ch, int start, int length)
          Handle ignorable whitespace.
 void internalEntityDecl(int entityName, int entityValue)
          
 void internalPEDecl(int entityName, int entityValue)
          
 void internalSubset(int internalSubset)
           
 void notationDecl(int notationName, int publicId, int systemId)
          
 void processingInstruction(int target, int data)
          Handle processing instruction.
 void resolveEntity(java.lang.String publicId, java.lang.String systemId, org.xml.sax.InputSource source)
           
 void startCDATA()
          Handle start of CDATA section.
 void startDocument()
           
 void startDTD(org.enhydra.apache.xerces.utils.QName rootElement, int publicId, int systemId)
           
 void startElement(org.enhydra.apache.xerces.utils.QName element, org.enhydra.apache.xerces.framework.XMLAttrList attrList, int attrListHandle)
          Handle start of element.
 void startEntityReference(int entityName, int entityType, int entityContext, boolean processed)
          Handle the start of an entity reference.
 void startNamespaceDeclScope(int prefix, int uri)
          Handle start of a namespace declaration scope.
 void textDecl(int version, int encoding)
           
 void unparsedEntityDecl(int entityName, int publicId, int systemId, int notationName)
          
 void xmlDecl(int version, int encoding, int standalone)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XercesTracer

protected XercesTracer(org.enhydra.apache.xerces.utils.StringPool stringPool,
                       ParseTracer tracer)
Constructor.

Method Detail

enabled

public boolean enabled()

resolveEntity

public void resolveEntity(java.lang.String publicId,
                          java.lang.String systemId,
                          org.xml.sax.InputSource source)
See Also:
EntityHandler#resolveEntity

startDocument

public void startDocument()
See Also:
XMLDocumentHandler#startDocument

endDocument

public void endDocument()
Handle end document.

See Also:
XMLDocumentHandler#endDocument

xmlDecl

public void xmlDecl(int version,
                    int encoding,
                    int standalone)
             throws java.lang.Exception
java.lang.Exception
See Also:
XMLDocumentHandler#xmlDecl

textDecl

public void textDecl(int version,
                     int encoding)
              throws java.lang.Exception
java.lang.Exception
See Also:
XMLDocumentHandler#textDecl

startElement

public void startElement(org.enhydra.apache.xerces.utils.QName element,
                         org.enhydra.apache.xerces.framework.XMLAttrList attrList,
                         int attrListHandle)
Handle start of element.

See Also:
XMLDocumentHandler#startElement

endElement

public void endElement(org.enhydra.apache.xerces.utils.QName element)
Handle end element.

See Also:
XMLDocumentHandler#endElement

startNamespaceDeclScope

public void startNamespaceDeclScope(int prefix,
                                    int uri)
Handle start of a namespace declaration scope.

See Also:
XMLDocumentHandler#startNamespaceDeclScope

endNamespaceDeclScope

public void endNamespaceDeclScope(int prefix)
Handle end of a namespace declaration scope.

See Also:
XMLDocumentHandler#startNamespaceDeclScope

startEntityReference

public void startEntityReference(int entityName,
                                 int entityType,
                                 int entityContext,
                                 boolean processed)
Handle the start of an entity reference.

See Also:
XMLDocumentHandler#startEntityReference

endEntityReference

public void endEntityReference(int entityName,
                               int entityType,
                               int entityContext,
                               boolean processed)
Handle the end of an entity reference.

See Also:
XMLDocumentHandler#endEntityReference

startCDATA

public void startCDATA()
Handle start of CDATA section.

See Also:
XMLDocumentHandler#startCDATA

endCDATA

public void endCDATA()
Handle for end of CDATA section.

See Also:
XMLDocumentHandler#endCDATA

processingInstruction

public void processingInstruction(int target,
                                  int data)
Handle processing instruction.

See Also:
XMLDocumentHandler#processingInstruction

comment

public void comment(int comment)
Handle a comment.

See Also:
XMLDocumentHandler#comment

characters

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

See Also:
XMLDocumentHandler#characters

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
Handle ignorable whitespace.

See Also:
XMLDocumentHandler#ignorableWhitespace

startDTD

public void startDTD(org.enhydra.apache.xerces.utils.QName rootElement,
                     int publicId,
                     int systemId)
See Also:
XMLDocumentHandler.DTDHandler#startDTD

internalSubset

public void internalSubset(int internalSubset)
See Also:
XMLDocumentHandler.DTDHandler#internalSubset

endDTD

public void endDTD()
See Also:
XMLDocumentHandler.DTDHandler#endDTD

elementDecl

public void elementDecl(org.enhydra.apache.xerces.utils.QName elementDecl,
                        int contentSpecType,
                        int contentSpecIndex,
                        org.enhydra.apache.xerces.framework.XMLContentSpec.Provider contentSpecProvider)

See Also:
XMLDocumentHandler.DTDHandler#elementDecl

attlistDecl

public void attlistDecl(org.enhydra.apache.xerces.utils.QName elementDecl,
                        org.enhydra.apache.xerces.utils.QName attributeDecl,
                        int attType,
                        boolean attList,
                        java.lang.String enumString,
                        int attDefaultType,
                        int attDefaultValue)

See Also:
XMLDocumentHandler.DTDHandler#attlistDecl

internalPEDecl

public void internalPEDecl(int entityName,
                           int entityValue)

See Also:
XMLDocumentHandler.DTDHandler#internalPEDecl

externalPEDecl

public void externalPEDecl(int entityName,
                           int publicId,
                           int systemId)

See Also:
XMLDocumentHandler.DTDHandler#externalPEDecl

internalEntityDecl

public void internalEntityDecl(int entityName,
                               int entityValue)

See Also:
XMLDocumentHandler.DTDHandler#internalEntityDecl

externalEntityDecl

public void externalEntityDecl(int entityName,
                               int publicId,
                               int systemId)

See Also:
XMLDocumentHandler.DTDHandler#externalEntityDecl

unparsedEntityDecl

public void unparsedEntityDecl(int entityName,
                               int publicId,
                               int systemId,
                               int notationName)

See Also:
XMLDocumentHandler.DTDHandler#unparsedEntityDecl

notationDecl

public void notationDecl(int notationName,
                         int publicId,
                         int systemId)

See Also:
XMLDocumentHandler.DTDHandler#notationDecl


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.