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

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

class XercesTracer
extends 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, 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(String publicId, String systemId, 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(String publicId,
                          String systemId,
                          InputSource source)
See Also:
EntityResolver.resolveEntity(java.lang.String, java.lang.String)

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 Exception
See Also:
XMLDocumentHandler.xmlDecl(int, int, int)

textDecl

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

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(org.enhydra.apache.xerces.utils.QName, org.enhydra.apache.xerces.framework.XMLAttrList, int)

endElement

public void endElement(org.enhydra.apache.xerces.utils.QName element)
Handle end element.
See Also:
XMLDocumentHandler.endElement(org.enhydra.apache.xerces.utils.QName)

startNamespaceDeclScope

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

endNamespaceDeclScope

public void endNamespaceDeclScope(int prefix)
Handle end of a namespace declaration scope.
See Also:
XMLDocumentHandler.startNamespaceDeclScope(int, int)

startEntityReference

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

endEntityReference

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

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(int, int)

comment

public void comment(int comment)
Handle a comment.
See Also:
XMLDocumentHandler.comment(int)

characters

public void characters(char[] ch,
                       int start,
                       int length)
Handle characters.
See Also:
XMLDocumentHandler.characters(int)

ignorableWhitespace

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

startDTD

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

internalSubset

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

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(org.enhydra.apache.xerces.utils.QName, int, int, org.enhydra.apache.xerces.framework.XMLContentSpec.Provider)

attlistDecl

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

internalPEDecl

public void internalPEDecl(int entityName,
                           int entityValue)
See Also:
XMLDocumentHandler.DTDHandler.internalPEDecl(int, int)

externalPEDecl

public void externalPEDecl(int entityName,
                           int publicId,
                           int systemId)
See Also:
XMLDocumentHandler.DTDHandler.externalPEDecl(int, int, int)

internalEntityDecl

public void internalEntityDecl(int entityName,
                               int entityValue)
See Also:
XMLDocumentHandler.DTDHandler.internalEntityDecl(int, int)

externalEntityDecl

public void externalEntityDecl(int entityName,
                               int publicId,
                               int systemId)
See Also:
XMLDocumentHandler.DTDHandler.externalEntityDecl(int, int, int)

unparsedEntityDecl

public void unparsedEntityDecl(int entityName,
                               int publicId,
                               int systemId,
                               int notationName)
See Also:
XMLDocumentHandler.DTDHandler.unparsedEntityDecl(int, int, int, int)

notationDecl

public void notationDecl(int notationName,
                         int publicId,
                         int systemId)
See Also:
XMLDocumentHandler.DTDHandler.notationDecl(int, int, int)


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