Package com.helger.xml.resourcebundle
Class XMLResourceBundle
java.lang.Object
java.util.ResourceBundle
com.helger.xml.resourcebundle.XMLResourceBundle
Helper class to handle XML based properties. It is read-only.
See Resource.Control Javadocs
See Resource.Control Javadocs
- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control -
Field Summary
Fields inherited from class java.util.ResourceBundle
parent -
Method Summary
Modifier and TypeMethodDescriptionstatic IMicroDocumentgetAsPropertiesXML(com.helger.commons.collection.impl.ICommonsMap<String, String> aMap) getKeys()static XMLResourceBundlegetXMLBundle(String sBaseName) static XMLResourceBundlegetXMLBundle(String sBaseName, Locale aLocale) static XMLResourceBundlegetXMLBundle(String sBaseName, Locale aLocale, ClassLoader aClassLoader) protected StringhandleGetObject(String sKey) Main internal lookupMore efficient version to retrieve the keySetMethods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, keySet, setParent
-
Method Details
-
readFromPropertiesXML
@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsOrderedMap<String,String> readFromPropertiesXML(@Nonnull @WillClose InputStream aIS) -
getAsPropertiesXML
@Nonnull public static IMicroDocument getAsPropertiesXML(@Nonnull com.helger.commons.collection.impl.ICommonsMap<String, String> aMap) -
getAllValues
-
handleKeySet
More efficient version to retrieve the keySet- Overrides:
handleKeySetin classResourceBundle- Returns:
- all resource names
-
handleGetObject
Main internal lookup- Specified by:
handleGetObjectin classResourceBundle- Returns:
- the string matching the passed key
-
getKeys
- Specified by:
getKeysin classResourceBundle
-
getXMLBundle
-
getXMLBundle
-
getXMLBundle
@Nonnull public static XMLResourceBundle getXMLBundle(@Nonnull String sBaseName, @Nonnull Locale aLocale, @Nonnull ClassLoader aClassLoader)
-