Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / org / xml / sax / helpers / XMLFilterImpl.js
index bcda45b..5a71da8 100644 (file)
-Clazz.declarePackage ("org.xml.sax.helpers");\r
-Clazz.load (["org.xml.sax.ContentHandler", "$.DTDHandler", "$.EntityResolver", "$.ErrorHandler", "$.XMLFilter"], "org.xml.sax.helpers.XMLFilterImpl", ["java.lang.NullPointerException", "org.xml.sax.InputSource", "$.SAXNotRecognizedException"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.parent = null;\r
-this.locator = null;\r
-this.entityResolver = null;\r
-this.dtdHandler = null;\r
-this.contentHandler = null;\r
-this.errorHandler = null;\r
-Clazz.instantialize (this, arguments);\r
-}, org.xml.sax.helpers, "XMLFilterImpl", null, [org.xml.sax.XMLFilter, org.xml.sax.EntityResolver, org.xml.sax.DTDHandler, org.xml.sax.ContentHandler, org.xml.sax.ErrorHandler]);\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (parent) {\r
-this.setParent (parent);\r
-}, "org.xml.sax.XMLReader");\r
-Clazz.overrideMethod (c$, "setParent", \r
-function (parent) {\r
-this.parent = parent;\r
-}, "org.xml.sax.XMLReader");\r
-Clazz.overrideMethod (c$, "getParent", \r
-function () {\r
-return this.parent;\r
-});\r
-Clazz.defineMethod (c$, "setFeature", \r
-function (name, value) {\r
-if (this.parent != null) {\r
-this.parent.setFeature (name, value);\r
-} else {\r
-throw  new org.xml.sax.SAXNotRecognizedException ("Feature: " + name);\r
-}}, "~S,~B");\r
-Clazz.defineMethod (c$, "getFeature", \r
-function (name) {\r
-if (this.parent != null) {\r
-return this.parent.getFeature (name);\r
-} else {\r
-throw  new org.xml.sax.SAXNotRecognizedException ("Feature: " + name);\r
-}}, "~S");\r
-Clazz.defineMethod (c$, "setProperty", \r
-function (name, value) {\r
-if (this.parent != null) {\r
-this.parent.setProperty (name, value);\r
-} else {\r
-throw  new org.xml.sax.SAXNotRecognizedException ("Property: " + name);\r
-}}, "~S,~O");\r
-Clazz.defineMethod (c$, "getProperty", \r
-function (name) {\r
-if (this.parent != null) {\r
-return this.parent.getProperty (name);\r
-} else {\r
-throw  new org.xml.sax.SAXNotRecognizedException ("Property: " + name);\r
-}}, "~S");\r
-Clazz.defineMethod (c$, "setEntityResolver", \r
-function (resolver) {\r
-this.entityResolver = resolver;\r
-}, "org.xml.sax.EntityResolver");\r
-Clazz.overrideMethod (c$, "getEntityResolver", \r
-function () {\r
-return this.entityResolver;\r
-});\r
-Clazz.defineMethod (c$, "setDTDHandler", \r
-function (handler) {\r
-this.dtdHandler = handler;\r
-}, "org.xml.sax.DTDHandler");\r
-Clazz.overrideMethod (c$, "getDTDHandler", \r
-function () {\r
-return this.dtdHandler;\r
-});\r
-Clazz.defineMethod (c$, "setContentHandler", \r
-function (handler) {\r
-this.contentHandler = handler;\r
-}, "org.xml.sax.ContentHandler");\r
-Clazz.overrideMethod (c$, "getContentHandler", \r
-function () {\r
-return this.contentHandler;\r
-});\r
-Clazz.defineMethod (c$, "setErrorHandler", \r
-function (handler) {\r
-this.errorHandler = handler;\r
-}, "org.xml.sax.ErrorHandler");\r
-Clazz.overrideMethod (c$, "getErrorHandler", \r
-function () {\r
-return this.errorHandler;\r
-});\r
-Clazz.defineMethod (c$, "parse", \r
-function (input) {\r
-this.setupParse ();\r
-this.parent.parse (input);\r
-}, "org.xml.sax.InputSource");\r
-Clazz.defineMethod (c$, "parse", \r
-function (systemId) {\r
-this.parse ( new org.xml.sax.InputSource (systemId));\r
-}, "~S");\r
-Clazz.defineMethod (c$, "resolveEntity", \r
-function (publicId, systemId) {\r
-if (this.entityResolver != null) {\r
-return this.entityResolver.resolveEntity (publicId, systemId);\r
-} else {\r
-return null;\r
-}}, "~S,~S");\r
-Clazz.defineMethod (c$, "notationDecl", \r
-function (name, publicId, systemId) {\r
-if (this.dtdHandler != null) {\r
-this.dtdHandler.notationDecl (name, publicId, systemId);\r
-}}, "~S,~S,~S");\r
-Clazz.defineMethod (c$, "unparsedEntityDecl", \r
-function (name, publicId, systemId, notationName) {\r
-if (this.dtdHandler != null) {\r
-this.dtdHandler.unparsedEntityDecl (name, publicId, systemId, notationName);\r
-}}, "~S,~S,~S,~S");\r
-Clazz.defineMethod (c$, "setDocumentLocator", \r
-function (locator) {\r
-this.locator = locator;\r
-if (this.contentHandler != null) {\r
-this.contentHandler.setDocumentLocator (locator);\r
-}}, "org.xml.sax.Locator");\r
-Clazz.defineMethod (c$, "startDocument", \r
-function () {\r
-if (this.contentHandler != null) {\r
-this.contentHandler.startDocument ();\r
-}});\r
-Clazz.defineMethod (c$, "endDocument", \r
-function () {\r
-if (this.contentHandler != null) {\r
-this.contentHandler.endDocument ();\r
-}});\r
-Clazz.defineMethod (c$, "startPrefixMapping", \r
-function (prefix, uri) {\r
-if (this.contentHandler != null) {\r
-this.contentHandler.startPrefixMapping (prefix, uri);\r
-}}, "~S,~S");\r
-Clazz.defineMethod (c$, "endPrefixMapping", \r
-function (prefix) {\r
-if (this.contentHandler != null) {\r
-this.contentHandler.endPrefixMapping (prefix);\r
-}}, "~S");\r
-Clazz.defineMethod (c$, "startElement", \r
-function (uri, localName, qName, atts) {\r
-if (this.contentHandler != null) {\r
-this.contentHandler.startElement (uri, localName, qName, atts);\r
-}}, "~S,~S,~S,org.xml.sax.Attributes");\r
-Clazz.defineMethod (c$, "endElement", \r
-function (uri, localName, qName) {\r
-if (this.contentHandler != null) {\r
-this.contentHandler.endElement (uri, localName, qName);\r
-}}, "~S,~S,~S");\r
-Clazz.defineMethod (c$, "characters", \r
-function (ch, start, length) {\r
-if (this.contentHandler != null) {\r
-this.contentHandler.characters (ch, start, length);\r
-}}, "~A,~N,~N");\r
-Clazz.defineMethod (c$, "ignorableWhitespace", \r
-function (ch, start, length) {\r
-if (this.contentHandler != null) {\r
-this.contentHandler.ignorableWhitespace (ch, start, length);\r
-}}, "~A,~N,~N");\r
-Clazz.defineMethod (c$, "processingInstruction", \r
-function (target, data) {\r
-if (this.contentHandler != null) {\r
-this.contentHandler.processingInstruction (target, data);\r
-}}, "~S,~S");\r
-Clazz.defineMethod (c$, "skippedEntity", \r
-function (name) {\r
-if (this.contentHandler != null) {\r
-this.contentHandler.skippedEntity (name);\r
-}}, "~S");\r
-Clazz.defineMethod (c$, "warning", \r
-function (e) {\r
-if (this.errorHandler != null) {\r
-this.errorHandler.warning (e);\r
-}}, "org.xml.sax.SAXParseException");\r
-Clazz.defineMethod (c$, "error", \r
-function (e) {\r
-if (this.errorHandler != null) {\r
-this.errorHandler.error (e);\r
-}}, "org.xml.sax.SAXParseException");\r
-Clazz.defineMethod (c$, "fatalError", \r
-function (e) {\r
-if (this.errorHandler != null) {\r
-this.errorHandler.fatalError (e);\r
-}}, "org.xml.sax.SAXParseException");\r
-Clazz.defineMethod (c$, "setupParse", \r
- function () {\r
-if (this.parent == null) {\r
-throw  new NullPointerException ("No parent for filter");\r
-}this.parent.setEntityResolver (this);\r
-this.parent.setDTDHandler (this);\r
-this.parent.setContentHandler (this);\r
-this.parent.setErrorHandler (this);\r
-});\r
-});\r
+Clazz.declarePackage ("org.xml.sax.helpers");
+Clazz.load (["org.xml.sax.ContentHandler", "$.DTDHandler", "$.EntityResolver", "$.ErrorHandler", "$.XMLFilter"], "org.xml.sax.helpers.XMLFilterImpl", ["java.lang.NullPointerException", "org.xml.sax.InputSource", "$.SAXNotRecognizedException"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.parent = null;
+this.locator = null;
+this.entityResolver = null;
+this.dtdHandler = null;
+this.contentHandler = null;
+this.errorHandler = null;
+Clazz.instantialize (this, arguments);
+}, org.xml.sax.helpers, "XMLFilterImpl", null, [org.xml.sax.XMLFilter, org.xml.sax.EntityResolver, org.xml.sax.DTDHandler, org.xml.sax.ContentHandler, org.xml.sax.ErrorHandler]);
+Clazz.makeConstructor (c$, 
+function () {
+});
+Clazz.makeConstructor (c$, 
+function (parent) {
+this.setParent (parent);
+}, "org.xml.sax.XMLReader");
+Clazz.overrideMethod (c$, "setParent", 
+function (parent) {
+this.parent = parent;
+}, "org.xml.sax.XMLReader");
+Clazz.overrideMethod (c$, "getParent", 
+function () {
+return this.parent;
+});
+Clazz.defineMethod (c$, "setFeature", 
+function (name, value) {
+if (this.parent != null) {
+this.parent.setFeature (name, value);
+} else {
+throw  new org.xml.sax.SAXNotRecognizedException ("Feature: " + name);
+}}, "~S,~B");
+Clazz.defineMethod (c$, "getFeature", 
+function (name) {
+if (this.parent != null) {
+return this.parent.getFeature (name);
+} else {
+throw  new org.xml.sax.SAXNotRecognizedException ("Feature: " + name);
+}}, "~S");
+Clazz.defineMethod (c$, "setProperty", 
+function (name, value) {
+if (this.parent != null) {
+this.parent.setProperty (name, value);
+} else {
+throw  new org.xml.sax.SAXNotRecognizedException ("Property: " + name);
+}}, "~S,~O");
+Clazz.defineMethod (c$, "getProperty", 
+function (name) {
+if (this.parent != null) {
+return this.parent.getProperty (name);
+} else {
+throw  new org.xml.sax.SAXNotRecognizedException ("Property: " + name);
+}}, "~S");
+Clazz.defineMethod (c$, "setEntityResolver", 
+function (resolver) {
+this.entityResolver = resolver;
+}, "org.xml.sax.EntityResolver");
+Clazz.overrideMethod (c$, "getEntityResolver", 
+function () {
+return this.entityResolver;
+});
+Clazz.defineMethod (c$, "setDTDHandler", 
+function (handler) {
+this.dtdHandler = handler;
+}, "org.xml.sax.DTDHandler");
+Clazz.overrideMethod (c$, "getDTDHandler", 
+function () {
+return this.dtdHandler;
+});
+Clazz.defineMethod (c$, "setContentHandler", 
+function (handler) {
+this.contentHandler = handler;
+}, "org.xml.sax.ContentHandler");
+Clazz.overrideMethod (c$, "getContentHandler", 
+function () {
+return this.contentHandler;
+});
+Clazz.defineMethod (c$, "setErrorHandler", 
+function (handler) {
+this.errorHandler = handler;
+}, "org.xml.sax.ErrorHandler");
+Clazz.overrideMethod (c$, "getErrorHandler", 
+function () {
+return this.errorHandler;
+});
+Clazz.defineMethod (c$, "parse", 
+function (input) {
+this.setupParse ();
+this.parent.parse (input);
+}, "org.xml.sax.InputSource");
+Clazz.defineMethod (c$, "parse", 
+function (systemId) {
+this.parse ( new org.xml.sax.InputSource (systemId));
+}, "~S");
+Clazz.defineMethod (c$, "resolveEntity", 
+function (publicId, systemId) {
+if (this.entityResolver != null) {
+return this.entityResolver.resolveEntity (publicId, systemId);
+} else {
+return null;
+}}, "~S,~S");
+Clazz.defineMethod (c$, "notationDecl", 
+function (name, publicId, systemId) {
+if (this.dtdHandler != null) {
+this.dtdHandler.notationDecl (name, publicId, systemId);
+}}, "~S,~S,~S");
+Clazz.defineMethod (c$, "unparsedEntityDecl", 
+function (name, publicId, systemId, notationName) {
+if (this.dtdHandler != null) {
+this.dtdHandler.unparsedEntityDecl (name, publicId, systemId, notationName);
+}}, "~S,~S,~S,~S");
+Clazz.defineMethod (c$, "setDocumentLocator", 
+function (locator) {
+this.locator = locator;
+if (this.contentHandler != null) {
+this.contentHandler.setDocumentLocator (locator);
+}}, "org.xml.sax.Locator");
+Clazz.defineMethod (c$, "startDocument", 
+function () {
+if (this.contentHandler != null) {
+this.contentHandler.startDocument ();
+}});
+Clazz.defineMethod (c$, "endDocument", 
+function () {
+if (this.contentHandler != null) {
+this.contentHandler.endDocument ();
+}});
+Clazz.defineMethod (c$, "startPrefixMapping", 
+function (prefix, uri) {
+if (this.contentHandler != null) {
+this.contentHandler.startPrefixMapping (prefix, uri);
+}}, "~S,~S");
+Clazz.defineMethod (c$, "endPrefixMapping", 
+function (prefix) {
+if (this.contentHandler != null) {
+this.contentHandler.endPrefixMapping (prefix);
+}}, "~S");
+Clazz.defineMethod (c$, "startElement", 
+function (uri, localName, qName, atts) {
+if (this.contentHandler != null) {
+this.contentHandler.startElement (uri, localName, qName, atts);
+}}, "~S,~S,~S,org.xml.sax.Attributes");
+Clazz.defineMethod (c$, "endElement", 
+function (uri, localName, qName) {
+if (this.contentHandler != null) {
+this.contentHandler.endElement (uri, localName, qName);
+}}, "~S,~S,~S");
+Clazz.defineMethod (c$, "characters", 
+function (ch, start, length) {
+if (this.contentHandler != null) {
+this.contentHandler.characters (ch, start, length);
+}}, "~A,~N,~N");
+Clazz.defineMethod (c$, "ignorableWhitespace", 
+function (ch, start, length) {
+if (this.contentHandler != null) {
+this.contentHandler.ignorableWhitespace (ch, start, length);
+}}, "~A,~N,~N");
+Clazz.defineMethod (c$, "processingInstruction", 
+function (target, data) {
+if (this.contentHandler != null) {
+this.contentHandler.processingInstruction (target, data);
+}}, "~S,~S");
+Clazz.defineMethod (c$, "skippedEntity", 
+function (name) {
+if (this.contentHandler != null) {
+this.contentHandler.skippedEntity (name);
+}}, "~S");
+Clazz.defineMethod (c$, "warning", 
+function (e) {
+if (this.errorHandler != null) {
+this.errorHandler.warning (e);
+}}, "org.xml.sax.SAXParseException");
+Clazz.defineMethod (c$, "error", 
+function (e) {
+if (this.errorHandler != null) {
+this.errorHandler.error (e);
+}}, "org.xml.sax.SAXParseException");
+Clazz.defineMethod (c$, "fatalError", 
+function (e) {
+if (this.errorHandler != null) {
+this.errorHandler.fatalError (e);
+}}, "org.xml.sax.SAXParseException");
+Clazz.defineMethod (c$, "setupParse", 
+ function () {
+if (this.parent == null) {
+throw  new NullPointerException ("No parent for filter");
+}this.parent.setEntityResolver (this);
+this.parent.setDTDHandler (this);
+this.parent.setContentHandler (this);
+this.parent.setErrorHandler (this);
+});
+});