Class DummyLocalizable
- java.lang.Object
-
- org.apache.commons.math.exception.util.DummyLocalizable
-
- All Implemented Interfaces:
Serializable
,Localizable
public class DummyLocalizable extends Object implements Localizable
Dummy implementation of theLocalizable
interface, without localization.- Since:
- 2.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DummyLocalizable(String source)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocalizedString(Locale locale)
Get the localized string.String
getSourceString()
Get the source (non-localized) string.String
toString()
-
-
-
Constructor Detail
-
DummyLocalizable
public DummyLocalizable(String source)
Simple constructor.- Parameters:
source
- source text
-
-
Method Detail
-
getSourceString
public String getSourceString()
Get the source (non-localized) string.- Specified by:
getSourceString
in interfaceLocalizable
- Returns:
- source string
-
getLocalizedString
public String getLocalizedString(Locale locale)
Get the localized string.- Specified by:
getLocalizedString
in interfaceLocalizable
- Parameters:
locale
- locale into which to get the string- Returns:
- localized string or the source string if no localized version is available
-
-