author | rgoel |
Mon, 30 Apr 2018 11:59:42 +0530 | |
changeset 49918 | 8b9c78f0a712 |
parent 49904 | cadca99d52e7 |
permissions | -rw-r--r-- |
26360
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
1 |
/* |
49918
8b9c78f0a712
8179071: Month value is inconsistent between CLDR and Java in some locales
rgoel
parents:
49904
diff
changeset
|
2 |
* Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved. |
26360
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
4 |
* |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. Oracle designates this |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
10 |
* |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
15 |
* accompanied this code). |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
16 |
* |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
20 |
* |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
22 |
* or visit www.oracle.com if you need additional information or have any |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
23 |
* questions. |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
24 |
*/ |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
25 |
|
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
26 |
package sun.util.locale.provider; |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
27 |
|
48251
57148c79bd75
8176841: Additional Unicode Language-Tag Extensions
naoto
parents:
47216
diff
changeset
|
28 |
import java.util.Map; |
57148c79bd75
8176841: Additional Unicode Language-Tag Extensions
naoto
parents:
47216
diff
changeset
|
29 |
|
26360
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
30 |
/** |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
31 |
* LocaleData meta info SPI |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
32 |
* |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
33 |
* @author Naoto Sato |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
34 |
*/ |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
35 |
public interface LocaleDataMetaInfo { |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
36 |
|
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
37 |
/** |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
38 |
* Returns the type of LocaleProviderAdapter for which this LocaleData |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
39 |
* provides the data. |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
40 |
* @return type The type of the adapter. |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
41 |
*/ |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
42 |
public LocaleProviderAdapter.Type getType(); |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
43 |
|
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
44 |
/** |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
45 |
* Returns the string concatenation of the supported language tags in |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
46 |
* this LocaleData instance |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
47 |
* @param category category of the locale data. |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
48 |
* @return concatenated language tags, separated by a space. |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
49 |
*/ |
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
50 |
public String availableLanguageTags(String category); |
48251
57148c79bd75
8176841: Additional Unicode Language-Tag Extensions
naoto
parents:
47216
diff
changeset
|
51 |
|
57148c79bd75
8176841: Additional Unicode Language-Tag Extensions
naoto
parents:
47216
diff
changeset
|
52 |
/** |
49904
cadca99d52e7
8181157: CLDR Timezone name fallback implementation
naoto
parents:
48251
diff
changeset
|
53 |
* Returns a map for time zone ids to their canonical ids. |
cadca99d52e7
8181157: CLDR Timezone name fallback implementation
naoto
parents:
48251
diff
changeset
|
54 |
* The map key is either an LDML's short id, or a valid |
cadca99d52e7
8181157: CLDR Timezone name fallback implementation
naoto
parents:
48251
diff
changeset
|
55 |
* TZDB zone id. |
cadca99d52e7
8181157: CLDR Timezone name fallback implementation
naoto
parents:
48251
diff
changeset
|
56 |
* @return map of ids to their canonical ids. |
48251
57148c79bd75
8176841: Additional Unicode Language-Tag Extensions
naoto
parents:
47216
diff
changeset
|
57 |
*/ |
49904
cadca99d52e7
8181157: CLDR Timezone name fallback implementation
naoto
parents:
48251
diff
changeset
|
58 |
default public Map<String, String> tzCanonicalIDs() { |
48251
57148c79bd75
8176841: Additional Unicode Language-Tag Extensions
naoto
parents:
47216
diff
changeset
|
59 |
return null; |
57148c79bd75
8176841: Additional Unicode Language-Tag Extensions
naoto
parents:
47216
diff
changeset
|
60 |
} |
49918
8b9c78f0a712
8179071: Month value is inconsistent between CLDR and Java in some locales
rgoel
parents:
49904
diff
changeset
|
61 |
|
8b9c78f0a712
8179071: Month value is inconsistent between CLDR and Java in some locales
rgoel
parents:
49904
diff
changeset
|
62 |
/** |
8b9c78f0a712
8179071: Month value is inconsistent between CLDR and Java in some locales
rgoel
parents:
49904
diff
changeset
|
63 |
* Returns a map for language aliases which specifies mapping from source language |
8b9c78f0a712
8179071: Month value is inconsistent between CLDR and Java in some locales
rgoel
parents:
49904
diff
changeset
|
64 |
* to from which it should be replaced. |
8b9c78f0a712
8179071: Month value is inconsistent between CLDR and Java in some locales
rgoel
parents:
49904
diff
changeset
|
65 |
* @return map of source language to replacement language, separated by a space. |
8b9c78f0a712
8179071: Month value is inconsistent between CLDR and Java in some locales
rgoel
parents:
49904
diff
changeset
|
66 |
*/ |
8b9c78f0a712
8179071: Month value is inconsistent between CLDR and Java in some locales
rgoel
parents:
49904
diff
changeset
|
67 |
default public Map<String, String> getLanguageAliasMap(){ |
8b9c78f0a712
8179071: Month value is inconsistent between CLDR and Java in some locales
rgoel
parents:
49904
diff
changeset
|
68 |
return null; |
8b9c78f0a712
8179071: Month value is inconsistent between CLDR and Java in some locales
rgoel
parents:
49904
diff
changeset
|
69 |
} |
26360
697f70835528
8038436: Re-examine the mechanism to determine available localedata and cldrdata
naoto
parents:
diff
changeset
|
70 |
} |