/openjdk7/jdk/src/share/classes/javax/security/auth/callback/ |
H A D | LanguageCallback.java | 46 private Locale locale; field in class:LanguageCallback 58 * @param locale the retrieved <code>Locale</code>. 62 public void setLocale(Locale locale) { argument 63 this.locale = locale; 77 return locale;
|
/openjdk7/jdk/src/share/classes/javax/print/attribute/ |
H A D | TextSyntax.java | 35 * includes a locale to indicate the natural language. Thus, a text attribute 57 private Locale locale; field in class:TextSyntax 60 * Constructs a TextAttribute with the specified string and locale. 63 * @param locale Natural language of the text string. null 64 * is interpreted to mean the default locale for as returned 70 protected TextSyntax(String value, Locale locale) { argument 72 this.locale = verify (locale); 82 private static Locale verify(Locale locale) { argument 83 if (locale [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/ |
H A D | CommonResourceBundle.java | 39 private static Locale locale = null; field in class:CommonResourceBundle 43 // Load the resource bundle of default locale 47 protected CommonResourceBundle(Locale locale) { argument 48 // Load the resource bundle of specified locale 49 bundle = ResourceBundle.getBundle(BASE_NAME, locale); 56 //**need to know where to get the locale 58 // .getProperty("omar.common.locale"); 60 locale = parseLocale(localeString); 67 public static CommonResourceBundle getInstance(Locale locale) { argument 70 instance = new CommonResourceBundle(locale); 86 getBundle(Locale locale) argument [all...] |
H A D | AbstractResourceBundle.java | 51 public static final String LOCALE = "com.sun.xml.internal.fastinfoset.locale"; 66 * Parse a locale string, return corresponding Locale instance. 69 * Name for the locale of interest. If null, use VM default locale. 73 Locale locale = null; 75 locale = Locale.getDefault(); 80 locale = new Locale(args[0]); 82 locale = new Locale(args[0], args[1]); 84 locale = new Locale(args[0], args[1], args[2]); 87 locale [all...] |
/openjdk7/jdk/src/share/classes/java/text/spi/ |
H A D | BreakIteratorProvider.java | 51 * for the given locale. 52 * @param locale the desired locale 54 * @exception NullPointerException if <code>locale</code> is null 55 * @exception IllegalArgumentException if <code>locale</code> isn't 61 public abstract BreakIterator getWordInstance(Locale locale); argument 66 * for the given locale. 67 * @param locale the desired locale 69 * @exception NullPointerException if <code>locale</cod 76 getLineInstance(Locale locale) argument 91 getCharacterInstance(Locale locale) argument 106 getSentenceInstance(Locale locale) argument [all...] |
H A D | NumberFormatProvider.java | 50 * monetary values for the specified locale. 52 * @param locale the desired locale. 53 * @exception NullPointerException if <code>locale</code> is null 54 * @exception IllegalArgumentException if <code>locale</code> isn't 61 public abstract NumberFormat getCurrencyInstance(Locale locale); argument 65 * integer values for the specified locale. 73 * @param locale the desired locale 74 * @exception NullPointerException if <code>locale</cod 82 getIntegerInstance(Locale locale) argument 97 getNumberInstance(Locale locale) argument 112 getPercentInstance(Locale locale) argument [all...] |
H A D | DateFormatProvider.java | 50 * with the given formatting style for the specified locale. 56 * @param locale the desired locale. 58 * or if <code>locale</code> isn't 62 * @exception NullPointerException if <code>locale</code> is null 66 public abstract DateFormat getTimeInstance(int style, Locale locale); argument 70 * with the given formatting style for the specified locale. 76 * @param locale the desired locale. 78 * or if <code>locale</cod 86 getDateInstance(int style, Locale locale) argument 113 getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) argument [all...] |
/openjdk7/jdk/test/java/util/PluggableLocale/providersrc/ |
H A D | CurrencyNameProviderImpl.java | 44 public String getSymbol(String c, Locale locale) { argument 45 if (!Utils.supportsLocale(Arrays.asList(avail), locale)) { 46 throw new IllegalArgumentException("locale is not supported: "+locale); 50 if (Utils.supportsLocale(avail[0], locale)) { 52 } else if (Utils.supportsLocale(avail[1], locale)) { 54 } else if (Utils.supportsLocale(avail[2], locale)) { 56 } else if (Utils.supportsLocale(avail[3], locale)) { 64 public String getDisplayName(String c, Locale locale) { argument 65 if (!Utils.supportsLocale(Arrays.asList(avail), locale)) { [all...] |
H A D | DateFormatProviderImpl.java | 68 public DateFormat getDateInstance(int style, Locale locale) { argument 70 if (Utils.supportsLocale(avail[i], locale)) { 71 return new FooDateFormat(datePattern[style]+dialect[i], locale); 74 throw new IllegalArgumentException("locale is not supported: "+locale); 77 public DateFormat getTimeInstance(int style, Locale locale) { argument 79 if (Utils.supportsLocale(avail[i], locale)) { 80 return new FooDateFormat(timePattern[style]+dialect[i], locale); 83 throw new IllegalArgumentException("locale is not supported: "+locale); 86 getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) argument [all...] |
H A D | BreakIteratorProviderImpl.java | 55 public BreakIterator getCharacterInstance(Locale locale) { argument 57 if (Utils.supportsLocale(avail[i], locale)) { 61 throw new IllegalArgumentException("locale is not supported: "+locale); 64 public BreakIterator getLineInstance(Locale locale) { argument 66 if (Utils.supportsLocale(avail[i], locale)) { 70 throw new IllegalArgumentException("locale is not supported: "+locale); 73 public BreakIterator getSentenceInstance(Locale locale) { argument 75 if (Utils.supportsLocale(avail[i], locale)) { 82 getWordInstance(Locale locale) argument [all...] |
H A D | NumberFormatProviderImpl.java | 66 public NumberFormat getCurrencyInstance(Locale locale) { argument 68 if (Utils.supportsLocale(avail[i], locale)) { 74 DecimalFormatSymbols.getInstance(locale)); 79 throw new IllegalArgumentException("locale is not supported: "+locale); 82 public NumberFormat getIntegerInstance(Locale locale) { argument 84 if (Utils.supportsLocale(avail[i], locale)) { 90 DecimalFormatSymbols.getInstance(locale)); 97 throw new IllegalArgumentException("locale is not supported: "+locale); 100 getNumberInstance(Locale locale) argument 114 getPercentInstance(Locale locale) argument [all...] |
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/code/ |
H A D | Printer.java | 57 * @param locale the locale in which the string is to be rendered 62 protected abstract String localize(Locale locale, String key, Object... args); argument 68 * @param locale locale settings 71 protected abstract String capturedVarId(CapturedType t, Locale locale); argument 83 protected String localize(Locale locale, String key, Object... args) { 84 return messages.getLocalizedString(locale, key, args); 88 protected String capturedVarId(CapturedType t, Locale locale) { 97 * @param locale th 100 visitTypes(List<Type> ts, Locale locale) argument 115 visitSymbols(List<Symbol> ts, Locale locale) argument 130 visit(Type t, Locale locale) argument 141 visit(Symbol s, Locale locale) argument 146 visitCapturedType(CapturedType t, Locale locale) argument 164 visitForAll(ForAll t, Locale locale) argument 169 visitUndetVar(UndetVar t, Locale locale) argument 178 visitArrayType(ArrayType t, Locale locale) argument 183 visitClassType(ClassType t, Locale locale) argument 201 visitMethodType(MethodType t, Locale locale) argument 206 visitPackageType(PackageType t, Locale locale) argument 211 visitWildcardType(WildcardType t, Locale locale) argument 221 visitErrorType(ErrorType t, Locale locale) argument 226 visitTypeVar(TypeVar t, Locale locale) argument 230 visitType(Type t, Locale locale) argument 247 className(ClassType t, boolean longform, Locale locale) argument 285 printMethodArgs(List<Type> args, boolean varArgs, Locale locale) argument 306 visitClassSymbol(ClassSymbol sym, Locale locale) argument 313 visitMethodSymbol(MethodSymbol s, Locale locale) argument 334 visitOperatorSymbol(OperatorSymbol s, Locale locale) argument 339 visitPackageSymbol(PackageSymbol s, Locale locale) argument 346 visitTypeSymbol(TypeSymbol s, Locale locale) argument 351 visitVarSymbol(VarSymbol s, Locale locale) argument 356 visitSymbol(Symbol s, Locale locale) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/awt/im/ |
H A D | InputMethodLocator.java | 34 * of an input method and a locale. Immutable class. 46 private Locale locale; field in class:InputMethodLocator 48 InputMethodLocator(InputMethodDescriptor descriptor, ClassLoader loader, Locale locale) { argument 54 this.locale = locale; 73 if (locale == null && otherLocator.locale != null 74 || locale != null && !locale.equals(otherLocator.locale)) { 107 isLocaleAvailable(Locale locale) argument [all...] |
/openjdk7/jdk/src/share/classes/java/util/spi/ |
H A D | LocaleNameProvider.java | 48 * IETF BCP47</a> language code and the given locale that is appropriate for 50 * For example, if <code>languageCode</code> is "fr" and <code>locale</code> 52 * is "en" and <code>locale</code> is fr_FR, getDisplayLanguage() will return "anglais". 53 * If the name returned cannot be localized according to <code>locale</code>, 58 * @param locale the desired locale 59 * @return the name of the given language code for the specified locale, or null if it's not 61 * @exception NullPointerException if <code>languageCode</code> or <code>locale</code> is null 63 * two or three lower-case letters, or <code>locale</code> isn't 69 public abstract String getDisplayLanguage(String languageCode, Locale locale); argument 97 getDisplayScript(String scriptCode, Locale locale) argument 125 getDisplayCountry(String countryCode, Locale locale) argument 143 getDisplayVariant(String variant, Locale locale) argument [all...] |
/openjdk7/jdk/test/sun/text/resources/Format/ |
H A D | Bug4651568.java | 27 *@summary Verifies the currency pattern for pt_BR locale 39 Locale locale = new Locale ("pt", "BR"); 40 Locale.setDefault(locale); 43 (DecimalFormat) NumberFormat.getCurrencyInstance(locale);
|
/openjdk7/jdk/src/share/classes/javax/accessibility/ |
H A D | AccessibleBundle.java | 39 * for a locale independent key from a predefined ResourceBundle for the 60 * The locale independent name of the state. This is a programmatic 69 * locale independent key stored in the role will be returned. 75 * @param locale the locale for which to obtain a localized string 79 Locale locale) { 82 loadResourceBundle(resourceBundleName, locale); 85 Object o = table.get(locale); 100 * locale independent key stored in the role will be returned. 102 * @param locale th 78 toDisplayString(String resourceBundleName, Locale locale) argument 105 toDisplayString(Locale locale) argument 129 loadResourceBundle(String resourceBundleName, Locale locale) argument [all...] |
/openjdk7/jdk/test/java/util/Locale/ |
H A D | Bug4152725.java | 26 * @summary Verify that the default locale can be specified from the 51 throw new RuntimeException("expected locale needs to be specified"); 54 Locale locale = Locale.getDefault(); 57 String language = locale.getLanguage(); 58 String country = locale.getCountry(); 59 String variant = locale.getVariant(); 72 throw new RuntimeException("expected default locale: " + args[0] 73 + ", actual default locale: " + localeID);
|
/openjdk7/jdk/test/java/util/ResourceBundle/ |
H A D | Bug4168625Getter.java | 53 public ResourceBundle getResourceBundle(String resource, Locale locale); argument
|
H A D | Test4318520.java | 25 @summary test that getBundle handles change in default locale correctly 43 private static void test(Locale locale) { argument 44 Locale.setDefault(locale); 48 if (!actualLocale.equals(locale.toString())) { 49 System.out.println("expected: " + locale + ", got: " + actualLocale);
|
H A D | Bug4168625Class.java | 47 public ResourceBundle getResourceBundle(String resource, Locale locale) { argument 49 return ResourceBundle.getBundle(resource, locale);
|
H A D | Bug6287579.java | 55 for (Locale locale : locales) { 57 String className = getResourceName(base, locale); 92 static String getResourceName(String base, Locale locale) { argument 93 if (locale.equals(ROOT)) { 97 sb.append('_').append(locale.getLanguage()); 98 if (locale.getCountry().length() > 0 99 || locale.getVariant().length() > 0) { 100 sb.append('_').append(locale.getCountry()); 102 if (locale.getVariant().length() > 0) { 103 sb.append('_').append(locale [all...] |
/openjdk7/jdk/src/share/classes/sun/util/resources/ |
H A D | LocaleData.java | 77 * locale coverage in the JRE. 87 public static ResourceBundle getCalendarData(Locale locale) { argument 88 return getBundle("sun.util.resources.CalendarData", locale); 95 public static OpenListResourceBundle getCurrencyNames(Locale locale) { argument 96 return (OpenListResourceBundle)getBundle("sun.util.resources.CurrencyNames", locale); 100 * Gets a locale names resource bundle, using privileges 103 public static OpenListResourceBundle getLocaleNames(Locale locale) { argument 104 return (OpenListResourceBundle)getBundle("sun.util.resources.LocaleNames", locale); 111 public static OpenListResourceBundle getTimeZoneNames(Locale locale) { argument 112 return (OpenListResourceBundle)getBundle("sun.util.resources.TimeZoneNames", locale); 119 getCollationData(Locale locale) argument 127 getDateFormatData(Locale locale) argument 135 getNumberFormatData(Locale locale) argument 139 getBundle(final String baseName, final Locale locale) argument 169 getCandidateLocales(String baseName, Locale locale) argument 211 getFallbackLocale(String baseName, Locale locale) argument [all...] |
/openjdk7/langtools/test/tools/javac/api/6406133/ |
H A D | T6406133.java | 27 * @summary Compiler API ignores locale settings 45 Locale locale; field in class:T6406133.DiagnosticTester 48 DiagnosticTester(Locale locale) { argument 49 this.locale = locale; 52 result = diagnostic.getMessage(locale); //6406133 58 Locale locale; field in class:T6406133.ProcessorTester 65 locale = env.getLocale(); 82 String exec(boolean useListener, Locale locale) { argument 86 DiagnosticTester listener = useListener ? new DiagnosticTester(locale) [all...] |
/openjdk7/jdk/src/share/classes/sun/util/ |
H A D | LocaleServiceProviderPool.java | 52 * locale sensitive service, such as {@link java.util.spi.LocaleNameProvider}. 59 * set of provider implementations of a particular locale sensitive service. 65 * A Set containing locale service providers that implement the 78 * Available locales for this locale sensitive service. This also contains 86 * different sets for each locale sensitive services. 91 * Provider locales for this locale sensitive service. 96 * Special locale for ja_JP with Japanese calendar 101 * Special locale for th_TH with Thai numbering system 125 * @param c class of the locale sensitive service 157 * Available locales for all locale sensitiv 285 isJRESupported(Locale locale) argument 300 getLocalizedObject(LocalizedObjectGetter<P, S> getter, Locale locale, Object... params) argument 319 getLocalizedObject(LocalizedObjectGetter<P, S> getter, Locale locale, OpenListResourceBundle bundle, String key, Object... params) argument 342 getLocalizedObject(LocalizedObjectGetter<P, S> getter, Locale locale, String bundleKey, OpenListResourceBundle bundle, String key, Object... params) argument 351 getLocalizedObjectImpl(LocalizedObjectGetter<P, S> getter, Locale locale, boolean isObjectProvider, String bundleKey, OpenListResourceBundle bundle, String key, Object... params) argument 435 findProvider(Locale locale) argument 470 getLookupLocales(Locale locale) argument 487 getLookupLocale(Locale locale) argument 540 getObject(P lsp, Locale locale, String key, Object... params) argument [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/dom/ |
H A D | CollatorFactoryBase.java | 46 public Collator getCollator(Locale locale) { argument 47 if (locale == DEFAULT_LOCALE) 50 return Collator.getInstance(locale);
|