Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / swingjs / j2s / org / xml / sax / helpers / AttributeListImpl.js
index 10639ba..209bbf9 100644 (file)
-Clazz.declarePackage ("org.xml.sax.helpers");\r
-Clazz.load (["org.xml.sax.AttributeList", "java.util.Vector"], "org.xml.sax.helpers.AttributeListImpl", null, function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.names = null;\r
-this.types = null;\r
-this.values = null;\r
-Clazz.instantialize (this, arguments);\r
-}, org.xml.sax.helpers, "AttributeListImpl", null, org.xml.sax.AttributeList);\r
-Clazz.prepareFields (c$, function () {\r
-this.names =  new java.util.Vector ();\r
-this.types =  new java.util.Vector ();\r
-this.values =  new java.util.Vector ();\r
-});\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (atts) {\r
-this.setAttributeList (atts);\r
-}, "org.xml.sax.AttributeList");\r
-Clazz.defineMethod (c$, "setAttributeList", \r
-function (atts) {\r
-var count = atts.getLength ();\r
-this.clear ();\r
-for (var i = 0; i < count; i++) {\r
-this.addAttribute (atts.getName (i), atts.getType (i), atts.getValue (i));\r
-}\r
-}, "org.xml.sax.AttributeList");\r
-Clazz.defineMethod (c$, "addAttribute", \r
-function (name, type, value) {\r
-this.names.addElement (name);\r
-this.types.addElement (type);\r
-this.values.addElement (value);\r
-}, "~S,~S,~S");\r
-Clazz.defineMethod (c$, "removeAttribute", \r
-function (name) {\r
-var i = this.names.indexOf (name);\r
-if (i >= 0) {\r
-this.names.removeElementAt (i);\r
-this.types.removeElementAt (i);\r
-this.values.removeElementAt (i);\r
-}}, "~S");\r
-Clazz.defineMethod (c$, "clear", \r
-function () {\r
-this.names.removeAllElements ();\r
-this.types.removeAllElements ();\r
-this.values.removeAllElements ();\r
-});\r
-Clazz.defineMethod (c$, "getLength", \r
-function () {\r
-return this.names.size ();\r
-});\r
-Clazz.defineMethod (c$, "getName", \r
-function (i) {\r
-if (i < 0) {\r
-return null;\r
-}try {\r
-return this.names.elementAt (i);\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, ArrayIndexOutOfBoundsException)) {\r
-return null;\r
-} else {\r
-throw e;\r
-}\r
-}\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getType", \r
-function (i) {\r
-if (i < 0) {\r
-return null;\r
-}try {\r
-return this.types.elementAt (i);\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, ArrayIndexOutOfBoundsException)) {\r
-return null;\r
-} else {\r
-throw e;\r
-}\r
-}\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getValue", \r
-function (i) {\r
-if (i < 0) {\r
-return null;\r
-}try {\r
-return this.values.elementAt (i);\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, ArrayIndexOutOfBoundsException)) {\r
-return null;\r
-} else {\r
-throw e;\r
-}\r
-}\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getType", \r
-function (name) {\r
-return this.getType (this.names.indexOf (name));\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getValue", \r
-function (name) {\r
-return this.getValue (this.names.indexOf (name));\r
-}, "~S");\r
-});\r
+Clazz.declarePackage ("org.xml.sax.helpers");
+Clazz.load (["org.xml.sax.AttributeList", "java.util.Vector"], "org.xml.sax.helpers.AttributeListImpl", null, function () {
+c$ = Clazz.decorateAsClass (function () {
+this.names = null;
+this.types = null;
+this.values = null;
+Clazz.instantialize (this, arguments);
+}, org.xml.sax.helpers, "AttributeListImpl", null, org.xml.sax.AttributeList);
+Clazz.prepareFields (c$, function () {
+this.names =  new java.util.Vector ();
+this.types =  new java.util.Vector ();
+this.values =  new java.util.Vector ();
+});
+Clazz.makeConstructor (c$, 
+function () {
+});
+Clazz.makeConstructor (c$, 
+function (atts) {
+this.setAttributeList (atts);
+}, "org.xml.sax.AttributeList");
+Clazz.defineMethod (c$, "setAttributeList", 
+function (atts) {
+var count = atts.getLength ();
+this.clear ();
+for (var i = 0; i < count; i++) {
+this.addAttribute (atts.getName (i), atts.getType (i), atts.getValue (i));
+}
+}, "org.xml.sax.AttributeList");
+Clazz.defineMethod (c$, "addAttribute", 
+function (name, type, value) {
+this.names.addElement (name);
+this.types.addElement (type);
+this.values.addElement (value);
+}, "~S,~S,~S");
+Clazz.defineMethod (c$, "removeAttribute", 
+function (name) {
+var i = this.names.indexOf (name);
+if (i >= 0) {
+this.names.removeElementAt (i);
+this.types.removeElementAt (i);
+this.values.removeElementAt (i);
+}}, "~S");
+Clazz.defineMethod (c$, "clear", 
+function () {
+this.names.removeAllElements ();
+this.types.removeAllElements ();
+this.values.removeAllElements ();
+});
+Clazz.defineMethod (c$, "getLength", 
+function () {
+return this.names.size ();
+});
+Clazz.defineMethod (c$, "getName", 
+function (i) {
+if (i < 0) {
+return null;
+}try {
+return this.names.elementAt (i);
+} catch (e) {
+if (Clazz.exceptionOf (e, ArrayIndexOutOfBoundsException)) {
+return null;
+} else {
+throw e;
+}
+}
+}, "~N");
+Clazz.defineMethod (c$, "getType", 
+function (i) {
+if (i < 0) {
+return null;
+}try {
+return this.types.elementAt (i);
+} catch (e) {
+if (Clazz.exceptionOf (e, ArrayIndexOutOfBoundsException)) {
+return null;
+} else {
+throw e;
+}
+}
+}, "~N");
+Clazz.defineMethod (c$, "getValue", 
+function (i) {
+if (i < 0) {
+return null;
+}try {
+return this.values.elementAt (i);
+} catch (e) {
+if (Clazz.exceptionOf (e, ArrayIndexOutOfBoundsException)) {
+return null;
+} else {
+throw e;
+}
+}
+}, "~N");
+Clazz.defineMethod (c$, "getType", 
+function (name) {
+return this.getType (this.names.indexOf (name));
+}, "~S");
+Clazz.defineMethod (c$, "getValue", 
+function (name) {
+return this.getValue (this.names.indexOf (name));
+}, "~S");
+});