Class DefaultHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
net.sf.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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSAX2: called on attribute declarationsvoidcomment(char[] buf, int off, int len) SAX2: called when comments are parsedvoidelementDecl(String name, String model) SAX2: called on element declarationsvoidendCDATA()SAX2: called after parsing CDATA charactersvoidendDTD()SAX2: called after the doctype is parsedvoidSAX2: called after parsing a general entity in contentvoidexternalEntityDecl(String name, String pubid, String sysid) SAX2: called on external entity declarationsvoidinternalEntityDecl(String name, String value) SAX2: called on internal entity declarationsvoidSAX2: called before parsing CDATA charactersvoidSAX2: called when the doctype is partially parsedvoidstartEntity(String name) SAX2: called before parsing a general entity in contentMethods inherited from class DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
SAX2: called after parsing CDATA characters- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
startDTD
SAX2: called when the doctype is partially parsed- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
SAX2: called after the doctype is parsed- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
SAX2: called before parsing a general entity in content- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
SAX2: called after parsing a general entity in content- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
comment
SAX2: called when comments are parsed- Specified by:
commentin 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:
attributeDeclin interfaceDeclHandler- Throws:
SAXException
-
elementDecl
SAX2: called on element declarations- Specified by:
elementDeclin interfaceDeclHandler- Throws:
SAXException
-
externalEntityDecl
SAX2: called on external entity declarations- Specified by:
externalEntityDeclin interfaceDeclHandler- Throws:
SAXException
-
internalEntityDecl
SAX2: called on internal entity declarations- Specified by:
internalEntityDeclin interfaceDeclHandler- Throws:
SAXException
-