com.icl.saxon.aelfred

Class DefaultHandler

Implemented Interfaces:
DeclHandler, LexicalHandler

public class DefaultHandler
extends org.xml.sax.helpers.DefaultHandler
implements LexicalHandler, DeclHandler

This class extends the SAX base handler class to support the SAX2 Lexical and Declaration handlers. All the handler methods do is return; except that the SAX base class handles fatal errors by throwing an exception.

Constructor Summary

DefaultHandler()
Constructs a handler which ignores all parsing events.

Method Summary

void
attributeDecl(String element, String name, String type, String defaultType, String defaltValue)
SAX2: called on attribute declarations
void
comment(buf[] , int off, int len)
SAX2: called when comments are parsed
void
elementDecl(String name, String model)
SAX2: called on element declarations
void
endCDATA()
SAX2: called after parsing CDATA characters
void
endDTD()
SAX2: called after the doctype is parsed
void
endEntity(String name)
SAX2: called after parsing a general entity in content
void
externalEntityDecl(String name, String pubid, String sysid)
SAX2: called on external entity declarations
void
internalEntityDecl(String name, String value)
SAX2: called on internal entity declarations
void
startCDATA()
SAX2: called before parsing CDATA characters
void
startDTD(String root, String pubid, String sysid)
SAX2: called when the doctype is partially parsed
void
startEntity(String name)
SAX2: called before parsing a general entity in content

Constructor Details

DefaultHandler

public DefaultHandler()
Constructs a handler which ignores all parsing events.

Method Details

attributeDecl

public void attributeDecl(String element,
                          String name,
                          String type,
                          String defaultType,
                          String defaltValue)
            throws SAXException
SAX2: called on attribute declarations

comment

public void comment(buf[] ,
                    int off,
                    int len)
            throws SAXException
SAX2: called when comments are parsed

elementDecl

public void elementDecl(String name,
                        String model)
            throws SAXException
SAX2: called on element declarations

endCDATA

public void endCDATA()
            throws SAXException
SAX2: called after parsing CDATA characters

endDTD

public void endDTD()
            throws SAXException
SAX2: called after the doctype is parsed

endEntity

public void endEntity(String name)
            throws SAXException
SAX2: called after parsing a general entity in content

externalEntityDecl

public void externalEntityDecl(String name,
                               String pubid,
                               String sysid)
            throws SAXException
SAX2: called on external entity declarations

internalEntityDecl

public void internalEntityDecl(String name,
                               String value)
            throws SAXException
SAX2: called on internal entity declarations

startCDATA

public void startCDATA()
            throws SAXException
SAX2: called before parsing CDATA characters

startDTD

public void startDTD(String root,
                     String pubid,
                     String sysid)
            throws SAXException
SAX2: called when the doctype is partially parsed

startEntity

public void startEntity(String name)
            throws SAXException
SAX2: called before parsing a general entity in content