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
public class DefaultHandler extends 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
Constructors Constructor Description DefaultHandler()Constructs a handler which ignores all parsing events.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattributeDecl(String element, String name, String type, String defaultType, String defaltValue)SAX2: 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 parsedvoidendEntity(String name)SAX2: 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 declarationsvoidstartCDATA()SAX2: called before parsing CDATA charactersvoidstartDTD(String root, String pubid, String sysid)SAX2: called when the doctype is partially parsedvoidstartEntity(String name)SAX2: called before parsing a general entity in content-
Methods 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
-
-
-
-
Method Detail
-
startCDATA
public void startCDATA() throws SAXExceptionSAX2: called before parsing CDATA characters- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXExceptionSAX2: called after parsing CDATA characters- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
startDTD
public void startDTD(String root, String pubid, String sysid) throws SAXException
SAX2: called when the doctype is partially parsed- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXExceptionSAX2: called after the doctype is parsed- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
public void startEntity(String name) throws SAXException
SAX2: called before parsing a general entity in content- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
public void endEntity(String name) throws SAXException
SAX2: called after parsing a general entity in content- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
comment
public void comment(char[] buf, int off, int len) throws SAXExceptionSAX2: 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
public void elementDecl(String name, String model) throws SAXException
SAX2: called on element declarations- Specified by:
elementDeclin interfaceDeclHandler- Throws:
SAXException
-
externalEntityDecl
public void externalEntityDecl(String name, String pubid, String sysid) throws SAXException
SAX2: called on external entity declarations- Specified by:
externalEntityDeclin interfaceDeclHandler- Throws:
SAXException
-
internalEntityDecl
public void internalEntityDecl(String name, String value) throws SAXException
SAX2: called on internal entity declarations- Specified by:
internalEntityDeclin interfaceDeclHandler- Throws:
SAXException
-
-