0c70af374765ff6c5384ee2c4f673657072ffc2b
[jalviewjs.git] / site / swingjs / j2s / org / xml / sax / SAXParseException.js
1 Clazz.declarePackage ("org.xml.sax");
2 Clazz.load (["org.xml.sax.SAXException"], "org.xml.sax.SAXParseException", 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, "SAXParseException", org.xml.sax.SAXException);
10 Clazz.makeConstructor (c$, 
11 function (message, locator) {
12 Clazz.superConstructor (this, org.xml.sax.SAXParseException, [message]);
13 if (locator != null) {
14 this.init (locator.getPublicId (), locator.getSystemId (), locator.getLineNumber (), locator.getColumnNumber ());
15 } else {
16 this.init (null, null, -1, -1);
17 }}, "~S,org.xml.sax.Locator");
18 Clazz.makeConstructor (c$, 
19 function (message, locator, e) {
20 Clazz.superConstructor (this, org.xml.sax.SAXParseException, [message, e]);
21 if (locator != null) {
22 this.init (locator.getPublicId (), locator.getSystemId (), locator.getLineNumber (), locator.getColumnNumber ());
23 } else {
24 this.init (null, null, -1, -1);
25 }}, "~S,org.xml.sax.Locator,Exception");
26 Clazz.makeConstructor (c$, 
27 function (message, publicId, systemId, lineNumber, columnNumber) {
28 Clazz.superConstructor (this, org.xml.sax.SAXParseException, [message]);
29 this.init (publicId, systemId, lineNumber, columnNumber);
30 }, "~S,~S,~S,~N,~N");
31 Clazz.makeConstructor (c$, 
32 function (message, publicId, systemId, lineNumber, columnNumber, e) {
33 Clazz.superConstructor (this, org.xml.sax.SAXParseException, [message, e]);
34 this.init (publicId, systemId, lineNumber, columnNumber);
35 }, "~S,~S,~S,~N,~N,Exception");
36 Clazz.defineMethod (c$, "init", 
37  function (publicId, systemId, lineNumber, columnNumber) {
38 this.publicId = publicId;
39 this.systemId = systemId;
40 this.lineNumber = lineNumber;
41 this.columnNumber = columnNumber;
42 }, "~S,~S,~N,~N");
43 Clazz.defineMethod (c$, "getPublicId", 
44 function () {
45 return this.publicId;
46 });
47 Clazz.defineMethod (c$, "getSystemId", 
48 function () {
49 return this.systemId;
50 });
51 Clazz.defineMethod (c$, "getLineNumber", 
52 function () {
53 return this.lineNumber;
54 });
55 Clazz.defineMethod (c$, "getColumnNumber", 
56 function () {
57 return this.columnNumber;
58 });
59 });