1 Clazz.declarePackage ("org.xml.sax.ext");
\r
2 Clazz.load (["org.xml.sax.ext.Locator2", "org.xml.sax.helpers.LocatorImpl"], "org.xml.sax.ext.Locator2Impl", null, function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
4 this.encoding = null;
\r
6 Clazz.instantialize (this, arguments);
\r
7 }, org.xml.sax.ext, "Locator2Impl", org.xml.sax.helpers.LocatorImpl, org.xml.sax.ext.Locator2);
\r
8 Clazz.makeConstructor (c$,
\r
10 Clazz.superConstructor (this, org.xml.sax.ext.Locator2Impl, []);
\r
12 Clazz.makeConstructor (c$,
\r
13 function (locator) {
\r
14 Clazz.superConstructor (this, org.xml.sax.ext.Locator2Impl, [locator]);
\r
15 if (Clazz.instanceOf (locator, org.xml.sax.ext.Locator2)) {
\r
17 this.version = l2.getXMLVersion ();
\r
18 this.encoding = l2.getEncoding ();
\r
19 }}, "org.xml.sax.Locator");
\r
20 Clazz.defineMethod (c$, "getXMLVersion",
\r
22 return this.version;
\r
24 Clazz.defineMethod (c$, "getEncoding",
\r
26 return this.encoding;
\r
28 Clazz.defineMethod (c$, "setXMLVersion",
\r
29 function (version) {
\r
30 this.version = version;
\r
32 Clazz.defineMethod (c$, "setEncoding",
\r
33 function (encoding) {
\r
34 this.encoding = encoding;
\r