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 void
attributeDecl(String element, String name, String type, String defaultType, String defaltValue)
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
endEntity(String name)
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
startCDATA()
SAX2: called before parsing CDATA charactersvoid
startDTD(String root, String pubid, String sysid)
SAX2: called when the doctype is partially parsedvoid
startEntity(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 SAXException
SAX2: called before parsing CDATA characters- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXException
SAX2: called after parsing CDATA characters- Specified by:
endCDATA
in 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:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXException
SAX2: called after the doctype is parsed- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
public void startEntity(String name) throws SAXException
SAX2: called before parsing a general entity in content- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
public void endEntity(String name) throws SAXException
SAX2: called after parsing a general entity in content- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
comment
public void comment(char[] buf, int off, int len) throws SAXException
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
public void elementDecl(String name, String model) throws SAXException
SAX2: called on element declarations- Specified by:
elementDecl
in interfaceDeclHandler
- Throws:
SAXException
-
externalEntityDecl
public void externalEntityDecl(String name, String pubid, String sysid) throws SAXException
SAX2: called on external entity declarations- Specified by:
externalEntityDecl
in interfaceDeclHandler
- Throws:
SAXException
-
internalEntityDecl
public void internalEntityDecl(String name, String value) throws SAXException
SAX2: called on internal entity declarations- Specified by:
internalEntityDecl
in interfaceDeclHandler
- Throws:
SAXException
-
-