src/share/jaxws_classes/com/sun/xml/internal/dtdparser/DTDHandlerBase.java

changeset 0
373ffda63c9a
child 637
9c07ef4934dd
equal deleted inserted replaced
-1:000000000000 0:373ffda63c9a
1 /*
2 * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.xml.internal.dtdparser;
27
28 import org.xml.sax.Locator;
29 import org.xml.sax.SAXException;
30 import org.xml.sax.SAXParseException;
31
32 /**
33 * do-nothing implementation of DTDEventHandler.
34 */
35 public class DTDHandlerBase implements DTDEventListener {
36
37 public void processingInstruction(String target, String data)
38 throws SAXException {
39 }
40
41 public void setDocumentLocator(Locator loc) {
42 }
43
44 public void fatalError(SAXParseException e) throws SAXException {
45 throw e;
46 }
47
48 public void error(SAXParseException e) throws SAXException {
49 throw e;
50 }
51
52 public void warning(SAXParseException err) throws SAXException {
53 }
54
55 public void notationDecl(String name, String publicId, String systemId) throws SAXException {
56 }
57
58 public void unparsedEntityDecl(String name, String publicId,
59 String systemId, String notationName) throws SAXException {
60 }
61
62 public void endDTD() throws SAXException {
63 }
64
65 public void externalGeneralEntityDecl(String n, String p, String s) throws SAXException {
66 }
67
68 public void internalGeneralEntityDecl(String n, String v) throws SAXException {
69 }
70
71 public void externalParameterEntityDecl(String n, String p, String s) throws SAXException {
72 }
73
74 public void internalParameterEntityDecl(String n, String v) throws SAXException {
75 }
76
77 public void startDTD(InputEntity in) throws SAXException {
78 }
79
80 public void comment(String n) throws SAXException {
81 }
82
83 public void characters(char ch[], int start, int length) throws SAXException {
84 }
85
86 public void ignorableWhitespace(char ch[], int start, int length) throws SAXException {
87 }
88
89 public void startCDATA() throws SAXException {
90 }
91
92 public void endCDATA() throws SAXException {
93 }
94
95
96 public void startContentModel(String elementName, short contentModelType) throws SAXException {
97 }
98
99 public void endContentModel(String elementName, short contentModelType) throws SAXException {
100 }
101
102 public void attributeDecl(String elementName, String attributeName, String attributeType,
103 String[] enumeration, short attributeUse, String defaultValue) throws SAXException {
104 }
105
106 public void childElement(String elementName, short occurence) throws SAXException {
107 }
108
109 public void mixedElement(String elementName) throws SAXException {
110 }
111
112 public void startModelGroup() throws SAXException {
113 }
114
115 public void endModelGroup(short occurence) throws SAXException {
116 }
117
118 public void connector(short connectorType) throws SAXException {
119 }
120 }

mercurial