/** * Find a localized and/or branded value for a given key in the default system locale. * * @param table mapping from localized strings to objects * @param key the key to look for * @return the localized object or <code>null</code> if no key matches * @see #getLocalizedValue(Map,String,Locale) */ public static <T> T getLocalizedValue(Map<String,T> table, String key) { return getLocalizedValue(table, key, Locale.getDefault()); }
/** * Find a localized and/or branded value in a JAR manifest. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @param locale the locale to use * @return the value if found, else <code>null</code> */ public static String getLocalizedValue(Attributes attr, Attributes.Name key, Locale locale) { return getLocalizedValue(attr2Map(attr), key.toString().toLowerCase(Locale.US), locale); }
/** * Find a localized and/or branded value in a JAR manifest in the default system locale. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @return the value if found, else <code>null</code> */ public static String getLocalizedValue(Attributes attr, Attributes.Name key) { // Yes, US locale is intentional! The attribute name may only be ASCII anyway. // It is necessary to lowercase it *as ASCII* as in Turkish 'I' does not go to 'i'! return getLocalizedValue(attr2Map(attr), key.toString().toLowerCase(Locale.US)); }
/** Find a localized value for a given key in the default system locale. * * @param table mapping from localized strings to objects * @param key the key to look for * @return the localized object or <code>null</code> if no key matches * @see #getLocalizedValue(Map,String,Locale) */ public static Object getLocalizedValue (Map table, String key) { return getLocalizedValue (table, key, Locale.getDefault ()); }
/** * Find a localized and/or branded value for a given key in the default system locale. * * @param table mapping from localized strings to objects * @param key the key to look for * @return the localized object or <code>null</code> if no key matches * @see #getLocalizedValue(Map,String,Locale) */ public static <T> T getLocalizedValue(Map<String,T> table, String key) { return getLocalizedValue(table, key, Locale.getDefault()); }
/** * Find a localized and/or branded value for a given key in the default system locale. * * @param table mapping from localized strings to objects * @param key the key to look for * @return the localized object or <code>null</code> if no key matches * @see #getLocalizedValue(Map,String,Locale) */ public static <T> T getLocalizedValue(Map<String,T> table, String key) { return getLocalizedValue(table, key, Locale.getDefault()); }
/** Find a localized value for a given key in the default system locale. * * @param table mapping from localized strings to objects * @param key the key to look for * @return the localized object or <code>null</code> if no key matches * @see #getLocalizedValue(Map,String,Locale) */ public static Object getLocalizedValue (Map table, String key) { return getLocalizedValue (table, key, Locale.getDefault ()); }
/** Find a localized value in a JAR manifest. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @param locale the locale to use * @return the value if found, else <code>null</code> */ public static String getLocalizedValue (Attributes attr, Attributes.Name key, Locale locale) { return (String)getLocalizedValue (attr2Map (attr), key.toString ().toLowerCase (Locale.US), locale); }
/** Find a localized value in a JAR manifest in the default system locale. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @return the value if found, else <code>null</code> */ public static String getLocalizedValue (Attributes attr, Attributes.Name key) { // Yes, US locale is intentional! The attribute name may only be ASCII anyway. // It is necessary to lowercase it *as ASCII* as in Turkish 'I' does not go to 'i'! return (String)getLocalizedValue (attr2Map (attr), key.toString ().toLowerCase (Locale.US)); }
/** * Find a localized and/or branded value in a JAR manifest. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @param locale the locale to use * @return the value if found, else <code>null</code> */ public static String getLocalizedValue(Attributes attr, Attributes.Name key, Locale locale) { return getLocalizedValue(attr2Map(attr), key.toString().toLowerCase(Locale.US), locale); }
/** Find a localized value in a JAR manifest. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @param locale the locale to use * @return the value if found, else <code>null</code> */ public static String getLocalizedValue (Attributes attr, Attributes.Name key, Locale locale) { return (String)getLocalizedValue (attr2Map (attr), key.toString ().toLowerCase (Locale.US), locale); }
/** * Find a localized and/or branded value in a JAR manifest in the default system locale. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @return the value if found, else <code>null</code> */ public static String getLocalizedValue(Attributes attr, Attributes.Name key) { // Yes, US locale is intentional! The attribute name may only be ASCII anyway. // It is necessary to lowercase it *as ASCII* as in Turkish 'I' does not go to 'i'! return getLocalizedValue(attr2Map(attr), key.toString().toLowerCase(Locale.US)); }
/** Find a localized value in a JAR manifest in the default system locale. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @return the value if found, else <code>null</code> */ public static String getLocalizedValue (Attributes attr, Attributes.Name key) { // Yes, US locale is intentional! The attribute name may only be ASCII anyway. // It is necessary to lowercase it *as ASCII* as in Turkish 'I' does not go to 'i'! return (String)getLocalizedValue (attr2Map (attr), key.toString ().toLowerCase (Locale.US)); }
/** * Find a localized and/or branded value in a JAR manifest. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @param locale the locale to use * @return the value if found, else <code>null</code> */ public static String getLocalizedValue(Attributes attr, Attributes.Name key, Locale locale) { return getLocalizedValue(attr2Map(attr), key.toString().toLowerCase(Locale.US), locale); }
/** * Find a localized and/or branded value in a JAR manifest in the default system locale. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @return the value if found, else <code>null</code> */ public static String getLocalizedValue(Attributes attr, Attributes.Name key) { // Yes, US locale is intentional! The attribute name may only be ASCII anyway. // It is necessary to lowercase it *as ASCII* as in Turkish 'I' does not go to 'i'! return getLocalizedValue(attr2Map(attr), key.toString().toLowerCase(Locale.US)); }
if (idx == -1) { return NbBundle.getLocalizedValue(getManifest().getMainAttributes(), new Attributes.Name(attr)); } else { Attributes attrs = getManifest().getAttributes(section); if (attrs != null) { return NbBundle.getLocalizedValue(attrs, new Attributes.Name(realAttr)); } else { return null;
if (idx == -1) { return NbBundle.getLocalizedValue(getManifest().getMainAttributes(), new Attributes.Name(attr)); } else { Attributes attrs = getManifest().getAttributes(section); if (attrs != null) { return NbBundle.getLocalizedValue(attrs, new Attributes.Name(realAttr)); } else { return null;