Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / swingjs / j2s / org / xml / sax / helpers / XMLReaderAdapter.js
index da9f37d..a48dfea 100644 (file)
-Clazz.declarePackage ("org.xml.sax.helpers");\r
-Clazz.load (["org.xml.sax.AttributeList", "$.ContentHandler", "$.Parser"], "org.xml.sax.helpers.XMLReaderAdapter", ["java.lang.NullPointerException", "org.xml.sax.InputSource", "$.SAXNotSupportedException", "org.xml.sax.helpers.XMLReaderFactory"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.xmlReader = null;\r
-this.documentHandler = null;\r
-this.qAtts = null;\r
-if (!Clazz.isClassDefined ("org.xml.sax.helpers.XMLReaderAdapter.AttributesAdapter")) {\r
-org.xml.sax.helpers.XMLReaderAdapter.$XMLReaderAdapter$AttributesAdapter$ ();\r
-}\r
-Clazz.instantialize (this, arguments);\r
-}, org.xml.sax.helpers, "XMLReaderAdapter", null, [org.xml.sax.Parser, org.xml.sax.ContentHandler]);\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-this.setup (org.xml.sax.helpers.XMLReaderFactory.createXMLReader ());\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (xmlReader) {\r
-this.setup (xmlReader);\r
-}, "org.xml.sax.XMLReader");\r
-Clazz.defineMethod (c$, "setup", \r
- function (xmlReader) {\r
-if (xmlReader == null) {\r
-throw  new NullPointerException ("XMLReader must not be null");\r
-}this.xmlReader = xmlReader;\r
-this.qAtts = Clazz.innerTypeInstance (org.xml.sax.helpers.XMLReaderAdapter.AttributesAdapter, this, null);\r
-}, "org.xml.sax.XMLReader");\r
-Clazz.overrideMethod (c$, "setLocale", \r
-function (locale) {\r
-throw  new org.xml.sax.SAXNotSupportedException ("setLocale not supported");\r
-}, "java.util.Locale");\r
-Clazz.overrideMethod (c$, "setEntityResolver", \r
-function (resolver) {\r
-this.xmlReader.setEntityResolver (resolver);\r
-}, "org.xml.sax.EntityResolver");\r
-Clazz.overrideMethod (c$, "setDTDHandler", \r
-function (handler) {\r
-this.xmlReader.setDTDHandler (handler);\r
-}, "org.xml.sax.DTDHandler");\r
-Clazz.overrideMethod (c$, "setDocumentHandler", \r
-function (handler) {\r
-this.documentHandler = handler;\r
-}, "org.xml.sax.DocumentHandler");\r
-Clazz.overrideMethod (c$, "setErrorHandler", \r
-function (handler) {\r
-this.xmlReader.setErrorHandler (handler);\r
-}, "org.xml.sax.ErrorHandler");\r
-Clazz.defineMethod (c$, "parse", \r
-function (systemId) {\r
-this.parse ( new org.xml.sax.InputSource (systemId));\r
-}, "~S");\r
-Clazz.defineMethod (c$, "parse", \r
-function (input) {\r
-this.setupXMLReader ();\r
-this.xmlReader.parse (input);\r
-}, "org.xml.sax.InputSource");\r
-Clazz.defineMethod (c$, "setupXMLReader", \r
- function () {\r
-this.xmlReader.setFeature ("http://xml.org/sax/features/namespace-prefixes", true);\r
-try {\r
-this.xmlReader.setFeature ("http://xml.org/sax/features/namespaces", false);\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, org.xml.sax.SAXException)) {\r
-} else {\r
-throw e;\r
-}\r
-}\r
-this.xmlReader.setContentHandler (this);\r
-});\r
-Clazz.overrideMethod (c$, "setDocumentLocator", \r
-function (locator) {\r
-if (this.documentHandler != null) this.documentHandler.setDocumentLocator (locator);\r
-}, "org.xml.sax.Locator");\r
-Clazz.overrideMethod (c$, "startDocument", \r
-function () {\r
-if (this.documentHandler != null) this.documentHandler.startDocument ();\r
-});\r
-Clazz.overrideMethod (c$, "endDocument", \r
-function () {\r
-if (this.documentHandler != null) this.documentHandler.endDocument ();\r
-});\r
-Clazz.overrideMethod (c$, "startPrefixMapping", \r
-function (prefix, uri) {\r
-}, "~S,~S");\r
-Clazz.overrideMethod (c$, "endPrefixMapping", \r
-function (prefix) {\r
-}, "~S");\r
-Clazz.overrideMethod (c$, "startElement", \r
-function (uri, localName, qName, atts) {\r
-if (this.documentHandler != null) {\r
-this.qAtts.setAttributes (atts);\r
-this.documentHandler.startElement (qName, this.qAtts);\r
-}}, "~S,~S,~S,org.xml.sax.Attributes");\r
-Clazz.overrideMethod (c$, "endElement", \r
-function (uri, localName, qName) {\r
-if (this.documentHandler != null) this.documentHandler.endElement (qName);\r
-}, "~S,~S,~S");\r
-Clazz.overrideMethod (c$, "characters", \r
-function (ch, start, length) {\r
-if (this.documentHandler != null) this.documentHandler.characters (ch, start, length);\r
-}, "~A,~N,~N");\r
-Clazz.overrideMethod (c$, "ignorableWhitespace", \r
-function (ch, start, length) {\r
-if (this.documentHandler != null) this.documentHandler.ignorableWhitespace (ch, start, length);\r
-}, "~A,~N,~N");\r
-Clazz.overrideMethod (c$, "processingInstruction", \r
-function (target, data) {\r
-if (this.documentHandler != null) this.documentHandler.processingInstruction (target, data);\r
-}, "~S,~S");\r
-Clazz.overrideMethod (c$, "skippedEntity", \r
-function (name) {\r
-}, "~S");\r
-c$.$XMLReaderAdapter$AttributesAdapter$ = function () {\r
-Clazz.pu$h(self.c$);\r
-c$ = Clazz.decorateAsClass (function () {\r
-Clazz.prepareCallback (this, arguments);\r
-this.attributes = null;\r
-Clazz.instantialize (this, arguments);\r
-}, org.xml.sax.helpers.XMLReaderAdapter, "AttributesAdapter", null, org.xml.sax.AttributeList);\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-});\r
-Clazz.defineMethod (c$, "setAttributes", \r
-function (a) {\r
-this.attributes = a;\r
-}, "org.xml.sax.Attributes");\r
-Clazz.overrideMethod (c$, "getLength", \r
-function () {\r
-return this.attributes.getLength ();\r
-});\r
-Clazz.overrideMethod (c$, "getName", \r
-function (a) {\r
-return this.attributes.getQName (a);\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getType", \r
-function (a) {\r
-return this.attributes.getType (a);\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getValue", \r
-function (a) {\r
-return this.attributes.getValue (a);\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getType", \r
-function (a) {\r
-return this.attributes.getType (a);\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getValue", \r
-function (a) {\r
-return this.attributes.getValue (a);\r
-}, "~S");\r
-c$ = Clazz.p0p ();\r
-};\r
-});\r
+Clazz.declarePackage ("org.xml.sax.helpers");
+Clazz.load (["org.xml.sax.AttributeList", "$.ContentHandler", "$.Parser"], "org.xml.sax.helpers.XMLReaderAdapter", ["java.lang.NullPointerException", "org.xml.sax.InputSource", "$.SAXNotSupportedException", "org.xml.sax.helpers.XMLReaderFactory"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.xmlReader = null;
+this.documentHandler = null;
+this.qAtts = null;
+if (!Clazz.isClassDefined ("org.xml.sax.helpers.XMLReaderAdapter.AttributesAdapter")) {
+org.xml.sax.helpers.XMLReaderAdapter.$XMLReaderAdapter$AttributesAdapter$ ();
+}
+Clazz.instantialize (this, arguments);
+}, org.xml.sax.helpers, "XMLReaderAdapter", null, [org.xml.sax.Parser, org.xml.sax.ContentHandler]);
+Clazz.makeConstructor (c$, 
+function () {
+this.setup (org.xml.sax.helpers.XMLReaderFactory.createXMLReader ());
+});
+Clazz.makeConstructor (c$, 
+function (xmlReader) {
+this.setup (xmlReader);
+}, "org.xml.sax.XMLReader");
+Clazz.defineMethod (c$, "setup", 
+ function (xmlReader) {
+if (xmlReader == null) {
+throw  new NullPointerException ("XMLReader must not be null");
+}this.xmlReader = xmlReader;
+this.qAtts = Clazz.innerTypeInstance (org.xml.sax.helpers.XMLReaderAdapter.AttributesAdapter, this, null);
+}, "org.xml.sax.XMLReader");
+Clazz.overrideMethod (c$, "setLocale", 
+function (locale) {
+throw  new org.xml.sax.SAXNotSupportedException ("setLocale not supported");
+}, "java.util.Locale");
+Clazz.overrideMethod (c$, "setEntityResolver", 
+function (resolver) {
+this.xmlReader.setEntityResolver (resolver);
+}, "org.xml.sax.EntityResolver");
+Clazz.overrideMethod (c$, "setDTDHandler", 
+function (handler) {
+this.xmlReader.setDTDHandler (handler);
+}, "org.xml.sax.DTDHandler");
+Clazz.overrideMethod (c$, "setDocumentHandler", 
+function (handler) {
+this.documentHandler = handler;
+}, "org.xml.sax.DocumentHandler");
+Clazz.overrideMethod (c$, "setErrorHandler", 
+function (handler) {
+this.xmlReader.setErrorHandler (handler);
+}, "org.xml.sax.ErrorHandler");
+Clazz.defineMethod (c$, "parse", 
+function (systemId) {
+this.parse ( new org.xml.sax.InputSource (systemId));
+}, "~S");
+Clazz.defineMethod (c$, "parse", 
+function (input) {
+this.setupXMLReader ();
+this.xmlReader.parse (input);
+}, "org.xml.sax.InputSource");
+Clazz.defineMethod (c$, "setupXMLReader", 
+ function () {
+this.xmlReader.setFeature ("http://xml.org/sax/features/namespace-prefixes", true);
+try {
+this.xmlReader.setFeature ("http://xml.org/sax/features/namespaces", false);
+} catch (e) {
+if (Clazz.exceptionOf (e, org.xml.sax.SAXException)) {
+} else {
+throw e;
+}
+}
+this.xmlReader.setContentHandler (this);
+});
+Clazz.overrideMethod (c$, "setDocumentLocator", 
+function (locator) {
+if (this.documentHandler != null) this.documentHandler.setDocumentLocator (locator);
+}, "org.xml.sax.Locator");
+Clazz.overrideMethod (c$, "startDocument", 
+function () {
+if (this.documentHandler != null) this.documentHandler.startDocument ();
+});
+Clazz.overrideMethod (c$, "endDocument", 
+function () {
+if (this.documentHandler != null) this.documentHandler.endDocument ();
+});
+Clazz.overrideMethod (c$, "startPrefixMapping", 
+function (prefix, uri) {
+}, "~S,~S");
+Clazz.overrideMethod (c$, "endPrefixMapping", 
+function (prefix) {
+}, "~S");
+Clazz.overrideMethod (c$, "startElement", 
+function (uri, localName, qName, atts) {
+if (this.documentHandler != null) {
+this.qAtts.setAttributes (atts);
+this.documentHandler.startElement (qName, this.qAtts);
+}}, "~S,~S,~S,org.xml.sax.Attributes");
+Clazz.overrideMethod (c$, "endElement", 
+function (uri, localName, qName) {
+if (this.documentHandler != null) this.documentHandler.endElement (qName);
+}, "~S,~S,~S");
+Clazz.overrideMethod (c$, "characters", 
+function (ch, start, length) {
+if (this.documentHandler != null) this.documentHandler.characters (ch, start, length);
+}, "~A,~N,~N");
+Clazz.overrideMethod (c$, "ignorableWhitespace", 
+function (ch, start, length) {
+if (this.documentHandler != null) this.documentHandler.ignorableWhitespace (ch, start, length);
+}, "~A,~N,~N");
+Clazz.overrideMethod (c$, "processingInstruction", 
+function (target, data) {
+if (this.documentHandler != null) this.documentHandler.processingInstruction (target, data);
+}, "~S,~S");
+Clazz.overrideMethod (c$, "skippedEntity", 
+function (name) {
+}, "~S");
+c$.$XMLReaderAdapter$AttributesAdapter$ = function () {
+Clazz.pu$h(self.c$);
+c$ = Clazz.decorateAsClass (function () {
+Clazz.prepareCallback (this, arguments);
+this.attributes = null;
+Clazz.instantialize (this, arguments);
+}, org.xml.sax.helpers.XMLReaderAdapter, "AttributesAdapter", null, org.xml.sax.AttributeList);
+Clazz.makeConstructor (c$, 
+function () {
+});
+Clazz.defineMethod (c$, "setAttributes", 
+function (a) {
+this.attributes = a;
+}, "org.xml.sax.Attributes");
+Clazz.overrideMethod (c$, "getLength", 
+function () {
+return this.attributes.getLength ();
+});
+Clazz.overrideMethod (c$, "getName", 
+function (a) {
+return this.attributes.getQName (a);
+}, "~N");
+Clazz.defineMethod (c$, "getType", 
+function (a) {
+return this.attributes.getType (a);
+}, "~N");
+Clazz.defineMethod (c$, "getValue", 
+function (a) {
+return this.attributes.getValue (a);
+}, "~N");
+Clazz.defineMethod (c$, "getType", 
+function (a) {
+return this.attributes.getType (a);
+}, "~S");
+Clazz.defineMethod (c$, "getValue", 
+function (a) {
+return this.attributes.getValue (a);
+}, "~S");
+c$ = Clazz.p0p ();
+};
+});