fb03788322d84cf819fd0cfb9e40bec60782b8f2
[jalviewjs.git] / site / swingjs / j2s / org / xml / sax / helpers / LocatorImpl.js
1 Clazz.declarePackage ("org.xml.sax.helpers");
2 Clazz.load (["org.xml.sax.Locator"], "org.xml.sax.helpers.LocatorImpl", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.publicId = null;
5 this.systemId = null;
6 this.lineNumber = 0;
7 this.columnNumber = 0;
8 Clazz.instantialize (this, arguments);
9 }, org.xml.sax.helpers, "LocatorImpl", null, org.xml.sax.Locator);
10 Clazz.makeConstructor (c$, 
11 function () {
12 });
13 Clazz.makeConstructor (c$, 
14 function (locator) {
15 this.setPublicId (locator.getPublicId ());
16 this.setSystemId (locator.getSystemId ());
17 this.setLineNumber (locator.getLineNumber ());
18 this.setColumnNumber (locator.getColumnNumber ());
19 }, "org.xml.sax.Locator");
20 Clazz.defineMethod (c$, "getPublicId", 
21 function () {
22 return this.publicId;
23 });
24 Clazz.defineMethod (c$, "getSystemId", 
25 function () {
26 return this.systemId;
27 });
28 Clazz.defineMethod (c$, "getLineNumber", 
29 function () {
30 return this.lineNumber;
31 });
32 Clazz.defineMethod (c$, "getColumnNumber", 
33 function () {
34 return this.columnNumber;
35 });
36 Clazz.defineMethod (c$, "setPublicId", 
37 function (publicId) {
38 this.publicId = publicId;
39 }, "~S");
40 Clazz.defineMethod (c$, "setSystemId", 
41 function (systemId) {
42 this.systemId = systemId;
43 }, "~S");
44 Clazz.defineMethod (c$, "setLineNumber", 
45 function (lineNumber) {
46 this.lineNumber = lineNumber;
47 }, "~N");
48 Clazz.defineMethod (c$, "setColumnNumber", 
49 function (columnNumber) {
50 this.columnNumber = columnNumber;
51 }, "~N");
52 });