Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / text / DateFormatSymbols.js
index 9d9045b..790389d 100644 (file)
-Clazz.declarePackage ("java.text");\r
-Clazz.load (["java.util.Hashtable"], "java.text.DateFormatSymbols", ["java.lang.IllegalArgumentException", "$.InternalError", "java.util.Arrays", "java.util.Locale", "jssun.util.resources.LocaleData"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.eras = null;\r
-this.months = null;\r
-this.shortMonths = null;\r
-this.weekdays = null;\r
-this.shortWeekdays = null;\r
-this.ampms = null;\r
-this.zoneStrings = null;\r
-this.isZoneStringsSet = false;\r
-this.localPatternChars = null;\r
-this.locale = null;\r
-Clazz.instantialize (this, arguments);\r
-}, java.text, "DateFormatSymbols", null, Cloneable);\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-this.initializeData (java.util.Locale.getDefault ());\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (locale) {\r
-this.initializeData (locale);\r
-}, "java.util.Locale");\r
-c$.getInstance = Clazz.defineMethod (c$, "getInstance", \r
-function () {\r
-return java.text.DateFormatSymbols.getInstance (java.util.Locale.getDefault ());\r
-});\r
-c$.getInstance = Clazz.defineMethod (c$, "getInstance", \r
-function (locale) {\r
-return  new java.text.DateFormatSymbols (locale);\r
-}, "java.util.Locale");\r
-Clazz.defineMethod (c$, "getEras", \r
-function () {\r
-return this.duplicate (this.eras);\r
-});\r
-Clazz.defineMethod (c$, "setEras", \r
-function (newEras) {\r
-this.eras = this.duplicate (newEras);\r
-}, "~A");\r
-Clazz.defineMethod (c$, "getMonths", \r
-function () {\r
-return this.duplicate (this.months);\r
-});\r
-Clazz.defineMethod (c$, "setMonths", \r
-function (newMonths) {\r
-this.months = this.duplicate (newMonths);\r
-}, "~A");\r
-Clazz.defineMethod (c$, "getShortMonths", \r
-function () {\r
-return this.duplicate (this.shortMonths);\r
-});\r
-Clazz.defineMethod (c$, "setShortMonths", \r
-function (newShortMonths) {\r
-this.shortMonths = this.duplicate (newShortMonths);\r
-}, "~A");\r
-Clazz.defineMethod (c$, "getWeekdays", \r
-function () {\r
-return this.duplicate (this.weekdays);\r
-});\r
-Clazz.defineMethod (c$, "setWeekdays", \r
-function (newWeekdays) {\r
-this.weekdays = this.duplicate (newWeekdays);\r
-}, "~A");\r
-Clazz.defineMethod (c$, "getShortWeekdays", \r
-function () {\r
-return this.duplicate (this.shortWeekdays);\r
-});\r
-Clazz.defineMethod (c$, "setShortWeekdays", \r
-function (newShortWeekdays) {\r
-this.shortWeekdays = this.duplicate (newShortWeekdays);\r
-}, "~A");\r
-Clazz.defineMethod (c$, "getAmPmStrings", \r
-function () {\r
-return this.duplicate (this.ampms);\r
-});\r
-Clazz.defineMethod (c$, "setAmPmStrings", \r
-function (newAmpms) {\r
-this.ampms = this.duplicate (newAmpms);\r
-}, "~A");\r
-Clazz.defineMethod (c$, "setZoneStrings", \r
-function (newZoneStrings) {\r
-var aCopy =  new Array (newZoneStrings.length);\r
-for (var i = 0; i < newZoneStrings.length; ++i) {\r
-if (newZoneStrings[i].length < 5) {\r
-throw  new IllegalArgumentException ();\r
-}aCopy[i] = this.duplicate (newZoneStrings[i]);\r
-}\r
-this.zoneStrings = aCopy;\r
-this.isZoneStringsSet = true;\r
-}, "~A");\r
-Clazz.defineMethod (c$, "getLocalPatternChars", \r
-function () {\r
-return  String.instantialize (this.localPatternChars);\r
-});\r
-Clazz.defineMethod (c$, "setLocalPatternChars", \r
-function (newLocalPatternChars) {\r
-this.localPatternChars =  String.instantialize (newLocalPatternChars);\r
-}, "~S");\r
-Clazz.defineMethod (c$, "clone", \r
-function () {\r
-try {\r
-var other = Clazz.superCall (this, java.text.DateFormatSymbols, "clone", []);\r
-this.copyMembers (this, other);\r
-return other;\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, CloneNotSupportedException)) {\r
-throw  new InternalError ();\r
-} else {\r
-throw e;\r
-}\r
-}\r
-});\r
-Clazz.overrideMethod (c$, "hashCode", \r
-function () {\r
-var hashcode = 0;\r
-return hashcode;\r
-});\r
-Clazz.defineMethod (c$, "equals", \r
-function (obj) {\r
-if (this === obj) return true;\r
-if (obj == null || this.getClass () !== obj.getClass ()) return false;\r
-var that = obj;\r
-return (java.util.Arrays.equals (this.eras, that.eras) && java.util.Arrays.equals (this.months, that.months) && java.util.Arrays.equals (this.shortMonths, that.shortMonths) && java.util.Arrays.equals (this.weekdays, that.weekdays) && java.util.Arrays.equals (this.shortWeekdays, that.shortWeekdays) && java.util.Arrays.equals (this.ampms, that.ampms) && ((this.localPatternChars != null && this.localPatternChars.equals (that.localPatternChars)) || (this.localPatternChars == null && that.localPatternChars == null)));\r
-}, "~O");\r
-c$.cacheLookup = Clazz.defineMethod (c$, "cacheLookup", \r
- function (desiredLocale) {\r
-var rb = java.text.DateFormatSymbols.cachedLocaleData.get (desiredLocale);\r
-if (rb == null) {\r
-rb = jssun.util.resources.LocaleData.getDateFormatData (desiredLocale);\r
-java.text.DateFormatSymbols.cachedLocaleData.put (desiredLocale, rb);\r
-}return rb;\r
-}, "java.util.Locale");\r
-Clazz.defineMethod (c$, "initializeData", \r
- function (desiredLocale) {\r
-var i;\r
-var resource = java.text.DateFormatSymbols.cacheLookup (desiredLocale);\r
-this.eras = resource.getObject ("Eras");\r
-this.months = resource.getStringArray ("MonthNames");\r
-this.shortMonths = resource.getStringArray ("MonthAbbreviations");\r
-var lWeekdays = resource.getStringArray ("DayNames");\r
-this.weekdays =  new Array (8);\r
-this.weekdays[0] = "";\r
-for (i = 0; i < lWeekdays.length; i++) this.weekdays[i + 1] = lWeekdays[i];\r
-\r
-var sWeekdays = resource.getStringArray ("DayAbbreviations");\r
-this.shortWeekdays =  new Array (8);\r
-this.shortWeekdays[0] = "";\r
-for (i = 0; i < sWeekdays.length; i++) this.shortWeekdays[i + 1] = sWeekdays[i];\r
-\r
-this.ampms = resource.getStringArray ("AmPmMarkers");\r
-this.localPatternChars = resource.getString ("DateTimePatternChars");\r
-this.locale = desiredLocale;\r
-}, "java.util.Locale");\r
-Clazz.defineMethod (c$, "duplicate", \r
- function (srcArray) {\r
-var dstArray =  new Array (srcArray.length);\r
-System.arraycopy (srcArray, 0, dstArray, 0, srcArray.length);\r
-return dstArray;\r
-}, "~A");\r
-Clazz.defineMethod (c$, "copyMembers", \r
- function (src, dst) {\r
-dst.eras = this.duplicate (src.eras);\r
-dst.months = this.duplicate (src.months);\r
-dst.shortMonths = this.duplicate (src.shortMonths);\r
-dst.weekdays = this.duplicate (src.weekdays);\r
-dst.shortWeekdays = this.duplicate (src.shortWeekdays);\r
-dst.ampms = this.duplicate (src.ampms);\r
-if (src.zoneStrings != null) {\r
-if (dst.zoneStrings == null) {\r
-dst.zoneStrings =  new Array (src.zoneStrings.length);\r
-}for (var i = 0; i < dst.zoneStrings.length; ++i) {\r
-dst.zoneStrings[i] = this.duplicate (src.zoneStrings[i]);\r
-}\r
-} else {\r
-dst.zoneStrings = null;\r
-}dst.localPatternChars =  String.instantialize (src.localPatternChars);\r
-}, "java.text.DateFormatSymbols,java.text.DateFormatSymbols");\r
-Clazz.defineStatics (c$,\r
-"patternChars", "GyMdkHmsSEDFwWahKzZ",\r
-"millisPerHour", 3600000);\r
-c$.cachedLocaleData = c$.prototype.cachedLocaleData =  new java.util.Hashtable (3);\r
-});\r
+Clazz.declarePackage ("java.text");
+Clazz.load (["java.util.Hashtable"], "java.text.DateFormatSymbols", ["java.lang.IllegalArgumentException", "$.InternalError", "java.util.Arrays", "java.util.Locale", "jssun.util.resources.LocaleData"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.eras = null;
+this.months = null;
+this.shortMonths = null;
+this.weekdays = null;
+this.shortWeekdays = null;
+this.ampms = null;
+this.zoneStrings = null;
+this.isZoneStringsSet = false;
+this.localPatternChars = null;
+this.locale = null;
+Clazz.instantialize (this, arguments);
+}, java.text, "DateFormatSymbols", null, Cloneable);
+Clazz.makeConstructor (c$, 
+function () {
+this.initializeData (java.util.Locale.getDefault ());
+});
+Clazz.makeConstructor (c$, 
+function (locale) {
+this.initializeData (locale);
+}, "java.util.Locale");
+c$.getInstance = Clazz.defineMethod (c$, "getInstance", 
+function () {
+return java.text.DateFormatSymbols.getInstance (java.util.Locale.getDefault ());
+});
+c$.getInstance = Clazz.defineMethod (c$, "getInstance", 
+function (locale) {
+return  new java.text.DateFormatSymbols (locale);
+}, "java.util.Locale");
+Clazz.defineMethod (c$, "getEras", 
+function () {
+return this.duplicate (this.eras);
+});
+Clazz.defineMethod (c$, "setEras", 
+function (newEras) {
+this.eras = this.duplicate (newEras);
+}, "~A");
+Clazz.defineMethod (c$, "getMonths", 
+function () {
+return this.duplicate (this.months);
+});
+Clazz.defineMethod (c$, "setMonths", 
+function (newMonths) {
+this.months = this.duplicate (newMonths);
+}, "~A");
+Clazz.defineMethod (c$, "getShortMonths", 
+function () {
+return this.duplicate (this.shortMonths);
+});
+Clazz.defineMethod (c$, "setShortMonths", 
+function (newShortMonths) {
+this.shortMonths = this.duplicate (newShortMonths);
+}, "~A");
+Clazz.defineMethod (c$, "getWeekdays", 
+function () {
+return this.duplicate (this.weekdays);
+});
+Clazz.defineMethod (c$, "setWeekdays", 
+function (newWeekdays) {
+this.weekdays = this.duplicate (newWeekdays);
+}, "~A");
+Clazz.defineMethod (c$, "getShortWeekdays", 
+function () {
+return this.duplicate (this.shortWeekdays);
+});
+Clazz.defineMethod (c$, "setShortWeekdays", 
+function (newShortWeekdays) {
+this.shortWeekdays = this.duplicate (newShortWeekdays);
+}, "~A");
+Clazz.defineMethod (c$, "getAmPmStrings", 
+function () {
+return this.duplicate (this.ampms);
+});
+Clazz.defineMethod (c$, "setAmPmStrings", 
+function (newAmpms) {
+this.ampms = this.duplicate (newAmpms);
+}, "~A");
+Clazz.defineMethod (c$, "setZoneStrings", 
+function (newZoneStrings) {
+var aCopy =  new Array (newZoneStrings.length);
+for (var i = 0; i < newZoneStrings.length; ++i) {
+if (newZoneStrings[i].length < 5) {
+throw  new IllegalArgumentException ();
+}aCopy[i] = this.duplicate (newZoneStrings[i]);
+}
+this.zoneStrings = aCopy;
+this.isZoneStringsSet = true;
+}, "~A");
+Clazz.defineMethod (c$, "getLocalPatternChars", 
+function () {
+return  String.instantialize (this.localPatternChars);
+});
+Clazz.defineMethod (c$, "setLocalPatternChars", 
+function (newLocalPatternChars) {
+this.localPatternChars =  String.instantialize (newLocalPatternChars);
+}, "~S");
+Clazz.defineMethod (c$, "clone", 
+function () {
+try {
+var other = Clazz.superCall (this, java.text.DateFormatSymbols, "clone", []);
+this.copyMembers (this, other);
+return other;
+} catch (e) {
+if (Clazz.exceptionOf (e, CloneNotSupportedException)) {
+throw  new InternalError ();
+} else {
+throw e;
+}
+}
+});
+Clazz.overrideMethod (c$, "hashCode", 
+function () {
+var hashcode = 0;
+return hashcode;
+});
+Clazz.defineMethod (c$, "equals", 
+function (obj) {
+if (this === obj) return true;
+if (obj == null || this.getClass () !== obj.getClass ()) return false;
+var that = obj;
+return (java.util.Arrays.equals (this.eras, that.eras) && java.util.Arrays.equals (this.months, that.months) && java.util.Arrays.equals (this.shortMonths, that.shortMonths) && java.util.Arrays.equals (this.weekdays, that.weekdays) && java.util.Arrays.equals (this.shortWeekdays, that.shortWeekdays) && java.util.Arrays.equals (this.ampms, that.ampms) && ((this.localPatternChars != null && this.localPatternChars.equals (that.localPatternChars)) || (this.localPatternChars == null && that.localPatternChars == null)));
+}, "~O");
+c$.cacheLookup = Clazz.defineMethod (c$, "cacheLookup", 
+ function (desiredLocale) {
+var rb = java.text.DateFormatSymbols.cachedLocaleData.get (desiredLocale);
+if (rb == null) {
+rb = jssun.util.resources.LocaleData.getDateFormatData (desiredLocale);
+java.text.DateFormatSymbols.cachedLocaleData.put (desiredLocale, rb);
+}return rb;
+}, "java.util.Locale");
+Clazz.defineMethod (c$, "initializeData", 
+ function (desiredLocale) {
+var i;
+var resource = java.text.DateFormatSymbols.cacheLookup (desiredLocale);
+this.eras = resource.getObject ("Eras");
+this.months = resource.getStringArray ("MonthNames");
+this.shortMonths = resource.getStringArray ("MonthAbbreviations");
+var lWeekdays = resource.getStringArray ("DayNames");
+this.weekdays =  new Array (8);
+this.weekdays[0] = "";
+for (i = 0; i < lWeekdays.length; i++) this.weekdays[i + 1] = lWeekdays[i];
+
+var sWeekdays = resource.getStringArray ("DayAbbreviations");
+this.shortWeekdays =  new Array (8);
+this.shortWeekdays[0] = "";
+for (i = 0; i < sWeekdays.length; i++) this.shortWeekdays[i + 1] = sWeekdays[i];
+
+this.ampms = resource.getStringArray ("AmPmMarkers");
+this.localPatternChars = resource.getString ("DateTimePatternChars");
+this.locale = desiredLocale;
+}, "java.util.Locale");
+Clazz.defineMethod (c$, "duplicate", 
+ function (srcArray) {
+var dstArray =  new Array (srcArray.length);
+System.arraycopy (srcArray, 0, dstArray, 0, srcArray.length);
+return dstArray;
+}, "~A");
+Clazz.defineMethod (c$, "copyMembers", 
+ function (src, dst) {
+dst.eras = this.duplicate (src.eras);
+dst.months = this.duplicate (src.months);
+dst.shortMonths = this.duplicate (src.shortMonths);
+dst.weekdays = this.duplicate (src.weekdays);
+dst.shortWeekdays = this.duplicate (src.shortWeekdays);
+dst.ampms = this.duplicate (src.ampms);
+if (src.zoneStrings != null) {
+if (dst.zoneStrings == null) {
+dst.zoneStrings =  new Array (src.zoneStrings.length);
+}for (var i = 0; i < dst.zoneStrings.length; ++i) {
+dst.zoneStrings[i] = this.duplicate (src.zoneStrings[i]);
+}
+} else {
+dst.zoneStrings = null;
+}dst.localPatternChars =  String.instantialize (src.localPatternChars);
+}, "java.text.DateFormatSymbols,java.text.DateFormatSymbols");
+Clazz.defineStatics (c$,
+"patternChars", "GyMdkHmsSEDFwWahKzZ",
+"millisPerHour", 3600000);
+c$.cachedLocaleData = c$.prototype.cachedLocaleData =  new java.util.Hashtable (3);
+});