fb8352102eaa0fa799292140761b04271d526477
[jalviewjs.git] / site / j2s / org / xml / sax / ext / Locator2Impl.js
1 Clazz.declarePackage ("org.xml.sax.ext");
2 Clazz.load (["org.xml.sax.ext.Locator2", "org.xml.sax.helpers.LocatorImpl"], "org.xml.sax.ext.Locator2Impl", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.encoding = null;
5 this.version = null;
6 Clazz.instantialize (this, arguments);
7 }, org.xml.sax.ext, "Locator2Impl", org.xml.sax.helpers.LocatorImpl, org.xml.sax.ext.Locator2);
8 Clazz.makeConstructor (c$, 
9 function () {
10 Clazz.superConstructor (this, org.xml.sax.ext.Locator2Impl, []);
11 });
12 Clazz.makeConstructor (c$, 
13 function (locator) {
14 Clazz.superConstructor (this, org.xml.sax.ext.Locator2Impl, [locator]);
15 if (Clazz.instanceOf (locator, org.xml.sax.ext.Locator2)) {
16 var l2 = locator;
17 this.version = l2.getXMLVersion ();
18 this.encoding = l2.getEncoding ();
19 }}, "org.xml.sax.Locator");
20 Clazz.defineMethod (c$, "getXMLVersion", 
21 function () {
22 return this.version;
23 });
24 Clazz.defineMethod (c$, "getEncoding", 
25 function () {
26 return this.encoding;
27 });
28 Clazz.defineMethod (c$, "setXMLVersion", 
29 function (version) {
30 this.version = version;
31 }, "~S");
32 Clazz.defineMethod (c$, "setEncoding", 
33 function (encoding) {
34 this.encoding = encoding;
35 }, "~S");
36 });