Package jmri.jmrix.maple
Class Bundle
- java.lang.Object
- 
- jmri.Bundle
- 
- jmri.jmrix.Bundle
- 
- jmri.jmrix.maple.Bundle
 
 
 
- 
 @ParametersAreNonnullByDefault @CheckReturnValue @Immutable public class Bundle extends Bundle 
- 
- 
Constructor SummaryConstructors Constructor Description Bundle()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringbundleName()protected static BundlegetBundle()(package private) static java.lang.StringgetMessage(java.lang.String key)Provides a translated string for a given key from the package resource bundle or parent.(package private) static java.lang.StringgetMessage(java.lang.String key, java.lang.Object... subs)Merges user data with a translated string for a given key from the package resource bundle or parent.(package private) static java.lang.StringgetMessage(java.util.Locale locale, java.lang.String key, java.lang.Object... subs)Merges user data with a translated string for a given key in a given locale from the package resource bundle or parent.protected java.lang.Stringretry(java.util.Locale locale, java.lang.String key)- 
Methods inherited from class jmri.BundleformatMessage, handleGetMessage, handleGetMessage, handleGetMessage, handleGetMessage
 
- 
 
- 
- 
- 
Constructor Detail- 
Bundlepublic Bundle() 
 
- 
 - 
Method Detail- 
getMessagestatic java.lang.String getMessage(java.lang.String key) Provides a translated string for a given key from the package resource bundle or parent.Note that this is intentionally package-local access. - Parameters:
- key- Bundle key to be translated
- Returns:
- Internationalized text
 
 - 
getMessagestatic java.lang.String getMessage(java.lang.String key, java.lang.Object... subs) Merges user data with a translated string for a given key from the package resource bundle or parent.Uses the transformation conventions of the Java MessageFormat utility. Note that this is intentionally package-local access. - Parameters:
- key- Bundle key to be translated
- subs- One or more objects to be inserted into the message
- Returns:
- Internationalized text
- See Also:
- MessageFormat
 
 - 
getMessagestatic java.lang.String getMessage(java.util.Locale locale, java.lang.String key, java.lang.Object... subs) Merges user data with a translated string for a given key in a given locale from the package resource bundle or parent.Uses the transformation conventions of the Java MessageFormat utility. Note that this is intentionally package-local access. - Parameters:
- locale- The locale to be used
- key- Bundle key to be translated
- subs- One or more objects to be inserted into the message
- Returns:
- Internationalized text
- See Also:
- MessageFormat
 
 - 
bundleName@CheckForNull protected java.lang.String bundleName() - Overrides:
- bundleNamein class- Bundle
 
 
- 
 
-