Searched refs:baseName (Results 26 - 50 of 81) sorted by relevance

1234

/openjdk9/jdk/test/java/util/ResourceBundle/modules/xmlformat/src/bundles/jdk/test/resources/spi/
H A DMyResourcesProvider.java37 public ResourceBundle getBundle(String baseName, Locale locale) { argument
38 String xmlName = toXMLName(baseName, locale);
46 private String toXMLName(String baseName, Locale locale) { argument
47 StringBuilder sb = new StringBuilder(baseName.replace('.', '/'));
/openjdk9/jdk/src/java.base/share/classes/sun/util/resources/
H A DBundles.java105 public static ResourceBundle of(String baseName, Locale locale, Strategy strategy) { argument
106 return loadBundleOf(baseName, locale, strategy);
109 private static ResourceBundle loadBundleOf(String baseName, argument
112 Objects.requireNonNull(baseName);
116 CacheKey cacheKey = new CacheKey(baseName, targetLocale);
136 = strategy.getResourceBundleProviderType(baseName, targetLocale);
144 List<Locale> candidateLocales = strategy.getCandidateLocales(baseName, targetLocale);
145 bundle = findBundleOf(cacheKey, strategy, baseName, candidateLocales, 0);
147 throwMissingResourceException(baseName, targetLocale, cacheKey.getCause());
154 String baseName,
152 findBundleOf(CacheKey cacheKey, Strategy strategy, String baseName, List<Locale> candidateLocales, int index) argument
247 loadBundleFromProviders(String baseName, Locale locale, ServiceLoader<ResourceBundleProvider> providers, CacheKey cacheKey) argument
281 throwMissingResourceException(String baseName, Locale locale, Throwable cause) argument
357 getCandidateLocales(String baseName, Locale locale) argument
362 toBundleName(String baseName, Locale locale) argument
368 getResourceBundleProviderType(String baseName, Locale locale) argument
422 CacheKey(String baseName, Locale locale) argument
432 setName(String baseName) argument
[all...]
/openjdk9/jdk/test/java/util/ResourceBundle/Control/
H A DXMLResourceBundleTest.java38 public List<String> getFormats(String baseName) {
39 if (baseName == null) {
45 public ResourceBundle newBundle(String baseName, Locale locale,
51 if (baseName == null || locale == null
57 String bundleName = toBundleName(baseName, locale);
H A DLoadingStrategiesTest.java83 public List<Locale> getCandidateLocales(String baseName, argument
90 return super.getCandidateLocales(baseName, locale);
96 public String toBundleName(String baseName, Locale locale) { argument
97 if (baseName == null || locale == null) {
102 return baseName.replaceFirst("^([\\w\\.]+)\\.(\\w+)$",
105 return baseName;
110 public Locale getFallbackLocale(String baseName, Locale locale) { argument
111 if (baseName == null || locale == null) {
H A DStressTest.java196 public List<Locale> getCandidateLocales(String baseName, Locale locale) { argument
197 List<Locale> list = super.getCandidateLocales(baseName, locale);
204 public long getTimeToLive(String baseName, Locale locale) { argument
207 //System.out.println("TTL: " + baseName + "_" + locale + " for " + ttl);
210 public boolean needsReload(String baseName, Locale locale, argument
213 //System.out.println("Expired: " + baseName + "_" + locale + "." + format +
/openjdk9/jdk/src/jdk.localedata/share/classes/sun/util/resources/provider/
H A DLocaleDataProvider.java38 public ResourceBundle getBundle(String baseName, Locale locale) { argument
39 return loadResourceBundle(toBundleName(baseName, locale));
/openjdk9/jdk/src/java.base/share/classes/java/util/
H A DResourceBundle.java387 public ResourceBundle getBundle(String baseName, Locale locale, Module module) {
390 baseName, locale,
391 getDefaultControl(module, baseName));
432 * If not null, then this is the value of the {@code baseName} parameter
629 CacheKey(String baseName, Locale locale, Module module, Module caller) { argument
633 this.name = baseName;
820 * <code>getBundle(baseName, Locale.getDefault(), this.getClass().getClassLoader())</code>,
827 * @param baseName the base name of the resource bundle, a fully qualified class name
829 * if <code>baseName</code> is <code>null</code>
835 public static final ResourceBundle getBundle(String baseName) argument
880 getBundle(String baseName, Control control) argument
910 getBundle(String baseName, Locale locale) argument
955 getBundle(String baseName, Module module) argument
1005 getBundle(String baseName, Locale targetLocale, Module module) argument
1052 getBundle(String baseName, Locale targetLocale, Control control) argument
1266 getBundle(String baseName, Locale locale, ClassLoader loader) argument
1492 getBundle(String baseName, Locale targetLocale, ClassLoader loader, Control control) argument
1502 getDefaultControl(Class<?> caller, String baseName) argument
1506 getDefaultControl(Module targetModule, String baseName) argument
1525 getControl(String baseName) argument
1542 getBundleImpl(String baseName, Locale locale, Class<?> caller, Control control) argument
1560 getBundleImpl(String baseName, Locale locale, Class<?> caller, ClassLoader loader, Control control) argument
1586 getBundleFromModule(Class<?> caller, Module module, String baseName, Locale locale, Control control) argument
1602 getBundleImpl(Module callerModule, Module module, String baseName, Locale locale, Control control) argument
1861 getServiceLoader(Module module, String baseName) argument
1890 getResourceBundleProviderType(String baseName, ClassLoader loader) argument
1923 loadBundleFromProviders(String baseName, Locale locale, ServiceLoader<ResourceBundleProvider> providers, CacheKey cacheKey) argument
2037 throwMissingResourceException(String baseName, Locale locale, Throwable cause) argument
2671 getFormats(String baseName) argument
2856 getCandidateLocales(String baseName, Locale locale) argument
3024 getFallbackLocale(String baseName, Locale locale) argument
3142 newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) argument
3275 getTimeToLive(String baseName, Locale locale) argument
3331 needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime) argument
3418 toBundleName(String baseName, Locale locale) argument
3512 getFormats(String baseName) argument
3534 getFallbackLocale(String baseName, Locale locale) argument
3577 loadResourceBundle(Module callerModule, Module module, String baseName, Locale locale) argument
3635 loadPropertyResourceBundle(Module callerModule, Module module, String baseName, Locale locale) argument
[all...]
/openjdk9/jdk/test/java/util/ResourceBundle/
H A DTest4314141.java87 static void doTest(String baseName, String language, String country, String variant, argument
89 System.out.print("Looking for " + baseName + " \"" + language + "\", \"" + country + "\", \"" + variant + "\"");
90 ResourceBundle bundle = ResourceBundle.getBundle(baseName, new Locale(language, country, variant));
101 if (!name.equals(baseName + expectedSuffixes[nameCount++])) {
/openjdk9/langtools/test/tools/javap/classfile/
H A DT6887895.java50 String baseName = info.getBaseName();
51 System.out.println("found: " + name + " " + baseName);
52 if (baseName != null)
53 found.add(baseName);
/openjdk9/jdk/test/java/util/ResourceBundle/getBaseBundleName/
H A DTestGetBaseBundleName.java51 for (String baseName : new String[] {
57 ResourceBundle bundle = ResourceBundle.getBundle(baseName);
63 if (!baseName.equals(getBaseName(bundle))) {
69 ResourceBundle bundle_fr = ResourceBundle.getBundle(baseName);
74 if (!baseName.equals(getBaseName(bundle_fr))) {
98 throw new RuntimeException("Expected null baseName, got "
134 throw new RuntimeException("Expected null baseName, got "
140 throw new RuntimeException("Expected null baseName, got "
/openjdk9/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/
H A DImageLocationWriter.java61 String baseName;
66 baseName = fullName.substring("/modules/".length());
69 baseName = fullName.substring("/packages/".length());
85 baseName = fullName.substring(0, offset);
88 baseName = fullName;
95 .addAttribute(ATTRIBUTE_BASE, baseName)
/openjdk9/hotspot/test/serviceability/logging/
H A DTestQuotedLogOutputs.java47 String baseName = "test file.log";
48 Path filePath = Paths.get(baseName).toAbsolutePath();
80 output.shouldMatch("\\[logging *\\].*" + baseName); // Expect to see the log output listed
/openjdk9/langtools/src/java.compiler/share/classes/javax/tools/
H A DSimpleJavaFileObject.java192 String baseName = simpleName + kind.extension;
194 && (baseName.equals(toUri().getPath())
195 || toUri().getPath().endsWith("/" + baseName));
/openjdk9/jdk/src/java.base/share/classes/jdk/internal/misc/
H A DJavaUtilResourceBundleAccess.java56 * Returns a {@code ResourceBundle} of the given baseName and locale
60 ResourceBundle getBundle(String baseName, Locale locale, Module module); argument
/openjdk9/jdk/test/java/util/logging/Logger/logrb/
H A DTestLogrbResourceBundle.java208 final String baseName = getBaseName(b);
209 System.out.println("Testing " + test + " with " + baseName);
223 if (!Objects.equals(handler.lastBundleName, baseName)) {
280 final String baseName = getBaseName(b);
281 System.out.println("Testing " + test + " with " + baseName);
292 if (!Objects.equals(handler.lastBundleName, baseName)) {
341 final String baseName = getBaseName(b);
344 + baseName);
354 if (!Objects.equals(handler.lastBundleName, baseName)) {
/openjdk9/corba/src/java.corba/share/classes/com/sun/tools/corba/se/idl/toJavaPortable/
H A DTypedefGen.java209 // name baseName arrayDcl
212 String baseName;
215 baseName = (String)td.dynamicVariable (Compile.typedefInfo);
219 baseName = td.name ();
221 int startArray = baseName.indexOf ('[');
222 String arrayDcl = Util.sansArrayInfo (baseName.substring (startArray)) + "[]"; // Add an extra set because the first gets stripped off in the loop.
223 baseName = baseName.substring (0, startArray);
226 SymtabEntry baseEntry = (SymtabEntry)Util.symbolTable.get (baseName.replace ('.', '/'));
229 //baseName
[all...]
/openjdk9/jdk/make/src/classes/build/tools/cldrconverter/
H A DBundleGenerator.java52 public void generateBundle(String packageName, String baseName, String localeID, argument
/openjdk9/jdk/src/java.base/share/classes/java/util/spi/
H A DAbstractResourceBundleProvider.java63 * protected String toBundleName(String baseName, Locale locale) {
68 * public ResourceBundle getBundle(String baseName, Locale locale) {
71 * return super.getBundle(baseName, locale);
127 * Returns the bundle name for the given {@code baseName} and {@code
138 * <p>For example, if {@code baseName} is {@code "p.resources.Bundle"} then
151 * @param baseName the base name of the resource bundle, a fully qualified
156 protected String toBundleName(String baseName, Locale locale) { argument
158 .toBundleName(baseName, locale);
162 * Returns a {@code ResourceBundle} for the given {@code baseName} and
168 * bundle name for the {@code baseName} an
184 getBundle(String baseName, Locale locale) argument
[all...]
/openjdk9/corba/src/java.corba/share/classes/com/sun/corba/se/spi/logging/
H A DLogWrapperBase.java64 String baseName = LogWrapperBase.class.getName() ;
73 if (!cname.equals(wcname) && !cname.equals(baseName)) {
/openjdk9/jdk/src/java.base/share/classes/sun/util/cldr/
H A DCLDRLocaleProviderAdapter.java150 public List<Locale> getCandidateLocales(String baseName, Locale locale) { argument
151 List<Locale> candidates = super.getCandidateLocales(baseName, locale);
152 return applyParentLocales(baseName, candidates);
155 private List<Locale> applyParentLocales(String baseName, List<Locale> candidates) { argument
164 applied.addAll(applyParentLocales(baseName, super.getCandidateLocales(baseName, p)));
/openjdk9/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/
H A DPathFileObject.java132 PathFileObject getSibling(String baseName) { argument
134 path.resolveSibling(baseName),
136 new RelativeFile(relativePath.dirname(), baseName)
194 PathFileObject getSibling(String baseName) { argument
196 path.resolveSibling(baseName),
254 PathFileObject getSibling(String baseName) { argument
256 path.resolveSibling(baseName)
320 PathFileObject getSibling(String baseName) { argument
322 path.resolveSibling(baseName),
323 userPath.resolveSibling(baseName)
[all...]
/openjdk9/langtools/test/jdk/javadoc/tool/sampleapi/lib/sampleapi/generator/
H A DPackageGenerator.java201 String baseName = baseTag.getAttribute("basename");
245 members.appendList(processMembers(element, baseName, kind));
300 ? getUniqName(baseName)
301 : baseName + getUniqIndex(scope, baseName);
383 String baseName = fieldsNode.getAttribute("basename");
424 String declName = baseName + getUniqIndex(scope, baseName);
450 String baseName = sfNode.getAttribute("basename");
457 String fieldName = baseName
[all...]
/openjdk9/jdk/src/java.desktop/share/classes/java/beans/
H A DPropertyDescriptor.java51 // read and write method. If name == "foo" then the baseName is "Foo"
52 private String baseName; field in class:PropertyDescriptor
190 this.baseName = base;
562 if (y.baseName != null) {
563 baseName = y.baseName;
565 baseName = x.baseName;
653 baseName = old.baseName;
[all...]
/openjdk9/jdk/test/tools/pack200/
H A DUnpackerMemoryTest.java46 String jarFileName = Utils.baseName(packFile, Utils.PACK_FILE_EXT)
/openjdk9/jdk/test/javax/imageio/
H A DAppletResourceTest.java74 String baseName = "AppletResourceTest$BugStats";
77 reader.processWarningOccurred(baseName, "water");
362 public void processWarningOccurred(String baseName, String keyword) { argument
363 super.processWarningOccurred(baseName, keyword);

Completed in 311 milliseconds

1234