Package com.icl.saxon.aelfred
Class DefaultHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.icl.saxon.aelfred.DefaultHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
,DeclHandler
,LexicalHandler
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.
- Version:
- $Date: 2000/02/28 04:43:05 $
- Author:
- David Brownell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
SAX2: called on attribute declarationsvoid
comment
(char[] buf, int off, int len) SAX2: called when comments are parsedvoid
elementDecl
(String name, String model) SAX2: called on element declarationsvoid
endCDATA()
SAX2: called after parsing CDATA charactersvoid
endDTD()
SAX2: called after the doctype is parsedvoid
SAX2: called after parsing a general entity in contentvoid
externalEntityDecl
(String name, String pubid, String sysid) SAX2: called on external entity declarationsvoid
internalEntityDecl
(String name, String value) SAX2: called on internal entity declarationsvoid
SAX2: called before parsing CDATA charactersvoid
SAX2: called when the doctype is partially parsedvoid
startEntity
(String name) SAX2: called before parsing a general entity in contentMethods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
DefaultHandler
public DefaultHandler()Constructs a handler which ignores all parsing events.
-
-
Method Details
-
startCDATA
SAX2: called before parsing CDATA characters- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
SAX2: called after parsing CDATA characters- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
startDTD
SAX2: called when the doctype is partially parsed- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
SAX2: called after the doctype is parsed- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
SAX2: called before parsing a general entity in content- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
SAX2: called after parsing a general entity in content- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
comment
SAX2: called when comments are parsed- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-
attributeDecl
public void attributeDecl(String element, String name, String type, String defaultType, String defaltValue) throws SAXException SAX2: called on attribute declarations- Specified by:
attributeDecl
in interfaceDeclHandler
- Throws:
SAXException
-
elementDecl
SAX2: called on element declarations- Specified by:
elementDecl
in interfaceDeclHandler
- Throws:
SAXException
-
externalEntityDecl
SAX2: called on external entity declarations- Specified by:
externalEntityDecl
in interfaceDeclHandler
- Throws:
SAXException
-
internalEntityDecl
SAX2: called on internal entity declarations- Specified by:
internalEntityDecl
in interfaceDeclHandler
- Throws:
SAXException
-