Package org.eclipse.net4j.util.om
Interface OMBundle.TranslationSupport
- 
- Enclosing interface:
- OMBundle
 
 public static interface OMBundle.TranslationSupportA facility for accessingresource bundles.- Author:
- Eike Stepper
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetString(java.lang.String key)Returns the string resource associated with the key.java.lang.StringgetString(java.lang.String key, boolean translate)Returns the string resource associated with the key.java.lang.StringgetString(java.lang.String key, boolean translate, java.lang.Object... args)Returns a string resource associated with the key, and performs substitutions.java.lang.StringgetString(java.lang.String key, java.lang.Object... args)Returns a string resource associated with the key, and performs substitutions.voidsetShouldTranslate(boolean shouldTranslate)Sets whether strings should be translated by default.booleanshouldTranslate()Indicates whether strings should be translated by default.
 
- 
- 
- 
Method Detail- 
shouldTranslateboolean shouldTranslate() Indicates whether strings should be translated by default.- Returns:
- trueif strings should be translated by default;- falseotherwise.
 
 - 
setShouldTranslatevoid setShouldTranslate(boolean shouldTranslate) Sets whether strings should be translated by default.- Parameters:
- shouldTranslate- whether strings should be translated by default.
 
 - 
getStringjava.lang.String getString(java.lang.String key) Returns the string resource associated with the key.- Parameters:
- key- the key of the string resource.
- Returns:
- the string resource associated with the key.
 
 - 
getStringjava.lang.String getString(java.lang.String key, boolean translate)Returns the string resource associated with the key.- Parameters:
- key- the key of the string resource.
- translate- whether the result is to be translated to the current locale.
- Returns:
- the string resource associated with the key.
 
 - 
getStringjava.lang.String getString(java.lang.String key, java.lang.Object... args)Returns a string resource associated with the key, and performs substitutions.- Parameters:
- key- the key of the string.
- args- the message substitutions.
- Returns:
- a string resource associated with the key.
- See Also:
- getString(String),- MessageFormat.format(String, Object...)
 
 - 
getStringjava.lang.String getString(java.lang.String key, boolean translate, java.lang.Object... args)Returns a string resource associated with the key, and performs substitutions.- Parameters:
- key- the key of the string.
- translate- whether the result is to be translated to the current locale.
- args- the message substitutions.
- Returns:
- a string resource associated with the key.
- See Also:
- getString(String),- MessageFormat.format(String, Object[])
 
 
- 
 
-