cdd333f06268ac2ed67e429ddac807289f68888d
[jalviewjs.git] / site / j2s / org / xml / sax / ext / Locator2Impl.js
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
5 this.version = 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
9 function () {\r
10 Clazz.superConstructor (this, org.xml.sax.ext.Locator2Impl, []);\r
11 });\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
16 var l2 = locator;\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
21 function () {\r
22 return this.version;\r
23 });\r
24 Clazz.defineMethod (c$, "getEncoding", \r
25 function () {\r
26 return this.encoding;\r
27 });\r
28 Clazz.defineMethod (c$, "setXMLVersion", \r
29 function (version) {\r
30 this.version = version;\r
31 }, "~S");\r
32 Clazz.defineMethod (c$, "setEncoding", \r
33 function (encoding) {\r
34 this.encoding = encoding;\r
35 }, "~S");\r
36 });\r