1 Clazz.declarePackage ("org.xml.sax.helpers");
2 Clazz.load (["org.xml.sax.ContentHandler", "$.DTDHandler", "$.EntityResolver", "$.ErrorHandler", "$.XMLFilter"], "org.xml.sax.helpers.XMLFilterImpl", ["java.lang.NullPointerException", "org.xml.sax.InputSource", "$.SAXNotRecognizedException"], function () {
3 c$ = Clazz.decorateAsClass (function () {
6 this.entityResolver = null;
7 this.dtdHandler = null;
8 this.contentHandler = null;
9 this.errorHandler = null;
10 Clazz.instantialize (this, arguments);
11 }, org.xml.sax.helpers, "XMLFilterImpl", null, [org.xml.sax.XMLFilter, org.xml.sax.EntityResolver, org.xml.sax.DTDHandler, org.xml.sax.ContentHandler, org.xml.sax.ErrorHandler]);
12 Clazz.makeConstructor (c$,
15 Clazz.makeConstructor (c$,
17 this.setParent (parent);
18 }, "org.xml.sax.XMLReader");
19 Clazz.overrideMethod (c$, "setParent",
22 }, "org.xml.sax.XMLReader");
23 Clazz.overrideMethod (c$, "getParent",
27 Clazz.defineMethod (c$, "setFeature",
28 function (name, value) {
29 if (this.parent != null) {
30 this.parent.setFeature (name, value);
32 throw new org.xml.sax.SAXNotRecognizedException ("Feature: " + name);
34 Clazz.defineMethod (c$, "getFeature",
36 if (this.parent != null) {
37 return this.parent.getFeature (name);
39 throw new org.xml.sax.SAXNotRecognizedException ("Feature: " + name);
41 Clazz.defineMethod (c$, "setProperty",
42 function (name, value) {
43 if (this.parent != null) {
44 this.parent.setProperty (name, value);
46 throw new org.xml.sax.SAXNotRecognizedException ("Property: " + name);
48 Clazz.defineMethod (c$, "getProperty",
50 if (this.parent != null) {
51 return this.parent.getProperty (name);
53 throw new org.xml.sax.SAXNotRecognizedException ("Property: " + name);
55 Clazz.defineMethod (c$, "setEntityResolver",
57 this.entityResolver = resolver;
58 }, "org.xml.sax.EntityResolver");
59 Clazz.overrideMethod (c$, "getEntityResolver",
61 return this.entityResolver;
63 Clazz.defineMethod (c$, "setDTDHandler",
65 this.dtdHandler = handler;
66 }, "org.xml.sax.DTDHandler");
67 Clazz.overrideMethod (c$, "getDTDHandler",
69 return this.dtdHandler;
71 Clazz.defineMethod (c$, "setContentHandler",
73 this.contentHandler = handler;
74 }, "org.xml.sax.ContentHandler");
75 Clazz.overrideMethod (c$, "getContentHandler",
77 return this.contentHandler;
79 Clazz.defineMethod (c$, "setErrorHandler",
81 this.errorHandler = handler;
82 }, "org.xml.sax.ErrorHandler");
83 Clazz.overrideMethod (c$, "getErrorHandler",
85 return this.errorHandler;
87 Clazz.defineMethod (c$, "parse",
90 this.parent.parse (input);
91 }, "org.xml.sax.InputSource");
92 Clazz.defineMethod (c$, "parse",
94 this.parse ( new org.xml.sax.InputSource (systemId));
96 Clazz.defineMethod (c$, "resolveEntity",
97 function (publicId, systemId) {
98 if (this.entityResolver != null) {
99 return this.entityResolver.resolveEntity (publicId, systemId);
103 Clazz.defineMethod (c$, "notationDecl",
104 function (name, publicId, systemId) {
105 if (this.dtdHandler != null) {
106 this.dtdHandler.notationDecl (name, publicId, systemId);
108 Clazz.defineMethod (c$, "unparsedEntityDecl",
109 function (name, publicId, systemId, notationName) {
110 if (this.dtdHandler != null) {
111 this.dtdHandler.unparsedEntityDecl (name, publicId, systemId, notationName);
113 Clazz.defineMethod (c$, "setDocumentLocator",
115 this.locator = locator;
116 if (this.contentHandler != null) {
117 this.contentHandler.setDocumentLocator (locator);
118 }}, "org.xml.sax.Locator");
119 Clazz.defineMethod (c$, "startDocument",
121 if (this.contentHandler != null) {
122 this.contentHandler.startDocument ();
124 Clazz.defineMethod (c$, "endDocument",
126 if (this.contentHandler != null) {
127 this.contentHandler.endDocument ();
129 Clazz.defineMethod (c$, "startPrefixMapping",
130 function (prefix, uri) {
131 if (this.contentHandler != null) {
132 this.contentHandler.startPrefixMapping (prefix, uri);
134 Clazz.defineMethod (c$, "endPrefixMapping",
136 if (this.contentHandler != null) {
137 this.contentHandler.endPrefixMapping (prefix);
139 Clazz.defineMethod (c$, "startElement",
140 function (uri, localName, qName, atts) {
141 if (this.contentHandler != null) {
142 this.contentHandler.startElement (uri, localName, qName, atts);
143 }}, "~S,~S,~S,org.xml.sax.Attributes");
144 Clazz.defineMethod (c$, "endElement",
145 function (uri, localName, qName) {
146 if (this.contentHandler != null) {
147 this.contentHandler.endElement (uri, localName, qName);
149 Clazz.defineMethod (c$, "characters",
150 function (ch, start, length) {
151 if (this.contentHandler != null) {
152 this.contentHandler.characters (ch, start, length);
154 Clazz.defineMethod (c$, "ignorableWhitespace",
155 function (ch, start, length) {
156 if (this.contentHandler != null) {
157 this.contentHandler.ignorableWhitespace (ch, start, length);
159 Clazz.defineMethod (c$, "processingInstruction",
160 function (target, data) {
161 if (this.contentHandler != null) {
162 this.contentHandler.processingInstruction (target, data);
164 Clazz.defineMethod (c$, "skippedEntity",
166 if (this.contentHandler != null) {
167 this.contentHandler.skippedEntity (name);
169 Clazz.defineMethod (c$, "warning",
171 if (this.errorHandler != null) {
172 this.errorHandler.warning (e);
173 }}, "org.xml.sax.SAXParseException");
174 Clazz.defineMethod (c$, "error",
176 if (this.errorHandler != null) {
177 this.errorHandler.error (e);
178 }}, "org.xml.sax.SAXParseException");
179 Clazz.defineMethod (c$, "fatalError",
181 if (this.errorHandler != null) {
182 this.errorHandler.fatalError (e);
183 }}, "org.xml.sax.SAXParseException");
184 Clazz.defineMethod (c$, "setupParse",
186 if (this.parent == null) {
187 throw new NullPointerException ("No parent for filter");
188 }this.parent.setEntityResolver (this);
189 this.parent.setDTDHandler (this);
190 this.parent.setContentHandler (this);
191 this.parent.setErrorHandler (this);