5a71da814f6728cb2fc2906ddf18bddea65de41c
[jalviewjs.git] / site / j2s / org / xml / sax / helpers / XMLFilterImpl.js
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 () {
4 this.parent = null;
5 this.locator = null;
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$, 
13 function () {
14 });
15 Clazz.makeConstructor (c$, 
16 function (parent) {
17 this.setParent (parent);
18 }, "org.xml.sax.XMLReader");
19 Clazz.overrideMethod (c$, "setParent", 
20 function (parent) {
21 this.parent = parent;
22 }, "org.xml.sax.XMLReader");
23 Clazz.overrideMethod (c$, "getParent", 
24 function () {
25 return this.parent;
26 });
27 Clazz.defineMethod (c$, "setFeature", 
28 function (name, value) {
29 if (this.parent != null) {
30 this.parent.setFeature (name, value);
31 } else {
32 throw  new org.xml.sax.SAXNotRecognizedException ("Feature: " + name);
33 }}, "~S,~B");
34 Clazz.defineMethod (c$, "getFeature", 
35 function (name) {
36 if (this.parent != null) {
37 return this.parent.getFeature (name);
38 } else {
39 throw  new org.xml.sax.SAXNotRecognizedException ("Feature: " + name);
40 }}, "~S");
41 Clazz.defineMethod (c$, "setProperty", 
42 function (name, value) {
43 if (this.parent != null) {
44 this.parent.setProperty (name, value);
45 } else {
46 throw  new org.xml.sax.SAXNotRecognizedException ("Property: " + name);
47 }}, "~S,~O");
48 Clazz.defineMethod (c$, "getProperty", 
49 function (name) {
50 if (this.parent != null) {
51 return this.parent.getProperty (name);
52 } else {
53 throw  new org.xml.sax.SAXNotRecognizedException ("Property: " + name);
54 }}, "~S");
55 Clazz.defineMethod (c$, "setEntityResolver", 
56 function (resolver) {
57 this.entityResolver = resolver;
58 }, "org.xml.sax.EntityResolver");
59 Clazz.overrideMethod (c$, "getEntityResolver", 
60 function () {
61 return this.entityResolver;
62 });
63 Clazz.defineMethod (c$, "setDTDHandler", 
64 function (handler) {
65 this.dtdHandler = handler;
66 }, "org.xml.sax.DTDHandler");
67 Clazz.overrideMethod (c$, "getDTDHandler", 
68 function () {
69 return this.dtdHandler;
70 });
71 Clazz.defineMethod (c$, "setContentHandler", 
72 function (handler) {
73 this.contentHandler = handler;
74 }, "org.xml.sax.ContentHandler");
75 Clazz.overrideMethod (c$, "getContentHandler", 
76 function () {
77 return this.contentHandler;
78 });
79 Clazz.defineMethod (c$, "setErrorHandler", 
80 function (handler) {
81 this.errorHandler = handler;
82 }, "org.xml.sax.ErrorHandler");
83 Clazz.overrideMethod (c$, "getErrorHandler", 
84 function () {
85 return this.errorHandler;
86 });
87 Clazz.defineMethod (c$, "parse", 
88 function (input) {
89 this.setupParse ();
90 this.parent.parse (input);
91 }, "org.xml.sax.InputSource");
92 Clazz.defineMethod (c$, "parse", 
93 function (systemId) {
94 this.parse ( new org.xml.sax.InputSource (systemId));
95 }, "~S");
96 Clazz.defineMethod (c$, "resolveEntity", 
97 function (publicId, systemId) {
98 if (this.entityResolver != null) {
99 return this.entityResolver.resolveEntity (publicId, systemId);
100 } else {
101 return null;
102 }}, "~S,~S");
103 Clazz.defineMethod (c$, "notationDecl", 
104 function (name, publicId, systemId) {
105 if (this.dtdHandler != null) {
106 this.dtdHandler.notationDecl (name, publicId, systemId);
107 }}, "~S,~S,~S");
108 Clazz.defineMethod (c$, "unparsedEntityDecl", 
109 function (name, publicId, systemId, notationName) {
110 if (this.dtdHandler != null) {
111 this.dtdHandler.unparsedEntityDecl (name, publicId, systemId, notationName);
112 }}, "~S,~S,~S,~S");
113 Clazz.defineMethod (c$, "setDocumentLocator", 
114 function (locator) {
115 this.locator = locator;
116 if (this.contentHandler != null) {
117 this.contentHandler.setDocumentLocator (locator);
118 }}, "org.xml.sax.Locator");
119 Clazz.defineMethod (c$, "startDocument", 
120 function () {
121 if (this.contentHandler != null) {
122 this.contentHandler.startDocument ();
123 }});
124 Clazz.defineMethod (c$, "endDocument", 
125 function () {
126 if (this.contentHandler != null) {
127 this.contentHandler.endDocument ();
128 }});
129 Clazz.defineMethod (c$, "startPrefixMapping", 
130 function (prefix, uri) {
131 if (this.contentHandler != null) {
132 this.contentHandler.startPrefixMapping (prefix, uri);
133 }}, "~S,~S");
134 Clazz.defineMethod (c$, "endPrefixMapping", 
135 function (prefix) {
136 if (this.contentHandler != null) {
137 this.contentHandler.endPrefixMapping (prefix);
138 }}, "~S");
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);
148 }}, "~S,~S,~S");
149 Clazz.defineMethod (c$, "characters", 
150 function (ch, start, length) {
151 if (this.contentHandler != null) {
152 this.contentHandler.characters (ch, start, length);
153 }}, "~A,~N,~N");
154 Clazz.defineMethod (c$, "ignorableWhitespace", 
155 function (ch, start, length) {
156 if (this.contentHandler != null) {
157 this.contentHandler.ignorableWhitespace (ch, start, length);
158 }}, "~A,~N,~N");
159 Clazz.defineMethod (c$, "processingInstruction", 
160 function (target, data) {
161 if (this.contentHandler != null) {
162 this.contentHandler.processingInstruction (target, data);
163 }}, "~S,~S");
164 Clazz.defineMethod (c$, "skippedEntity", 
165 function (name) {
166 if (this.contentHandler != null) {
167 this.contentHandler.skippedEntity (name);
168 }}, "~S");
169 Clazz.defineMethod (c$, "warning", 
170 function (e) {
171 if (this.errorHandler != null) {
172 this.errorHandler.warning (e);
173 }}, "org.xml.sax.SAXParseException");
174 Clazz.defineMethod (c$, "error", 
175 function (e) {
176 if (this.errorHandler != null) {
177 this.errorHandler.error (e);
178 }}, "org.xml.sax.SAXParseException");
179 Clazz.defineMethod (c$, "fatalError", 
180 function (e) {
181 if (this.errorHandler != null) {
182 this.errorHandler.fatalError (e);
183 }}, "org.xml.sax.SAXParseException");
184 Clazz.defineMethod (c$, "setupParse", 
185  function () {
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);
192 });
193 });