001: /*
002: * @(#)XmlChars.java 1.1 00/08/05
003: *
004: * Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved.
005: */
006:
007: package com.sun.xml.dtdparser;
008:
009: import org.xml.sax.Locator;
010: import org.xml.sax.SAXException;
011: import org.xml.sax.SAXParseException;
012:
013: /**
014: * do-nothing implementation of DTDEventHandler.
015: */
016: public class DTDHandlerBase implements DTDEventListener {
017:
018: public void processingInstruction(String target, String data)
019: throws SAXException {
020: }
021:
022: public void setDocumentLocator(Locator loc) {
023: }
024:
025: public void fatalError(SAXParseException e) throws SAXException {
026: throw e;
027: }
028:
029: public void error(SAXParseException e) throws SAXException {
030: throw e;
031: }
032:
033: public void warning(SAXParseException err) throws SAXException {
034: }
035:
036: public void notationDecl(String name, String publicId,
037: String systemId) throws SAXException {
038: }
039:
040: public void unparsedEntityDecl(String name, String publicId,
041: String systemId, String notationName) throws SAXException {
042: }
043:
044: public void endDTD() throws SAXException {
045: }
046:
047: public void externalGeneralEntityDecl(String n, String p, String s)
048: throws SAXException {
049: }
050:
051: public void internalGeneralEntityDecl(String n, String v)
052: throws SAXException {
053: }
054:
055: public void externalParameterEntityDecl(String n, String p, String s)
056: throws SAXException {
057: }
058:
059: public void internalParameterEntityDecl(String n, String v)
060: throws SAXException {
061: }
062:
063: public void startDTD(InputEntity in) throws SAXException {
064: }
065:
066: public void comment(String n) throws SAXException {
067: }
068:
069: public void characters(char ch[], int start, int length)
070: throws SAXException {
071: }
072:
073: public void ignorableWhitespace(char ch[], int start, int length)
074: throws SAXException {
075: }
076:
077: public void startCDATA() throws SAXException {
078: }
079:
080: public void endCDATA() throws SAXException {
081: }
082:
083: public void startContentModel(String elementName,
084: short contentModelType) throws SAXException {
085: }
086:
087: public void endContentModel(String elementName,
088: short contentModelType) throws SAXException {
089: }
090:
091: public void attributeDecl(String elementName, String attributeName,
092: String attributeType, String[] enumeration,
093: short attributeUse, String defaultValue)
094: throws SAXException {
095: }
096:
097: public void childElement(String elementName, short occurence)
098: throws SAXException {
099: }
100:
101: public void mixedElement(String elementName) throws SAXException {
102: }
103:
104: public void startModelGroup() throws SAXException {
105: }
106:
107: public void endModelGroup(short occurence) throws SAXException {
108: }
109:
110: public void connector(short connectorType) throws SAXException {
111: }
112: }
|