Class DummyLocalizable
- java.lang.Object
-
- org.apache.commons.math.exception.util.DummyLocalizable
-
- All Implemented Interfaces:
java.io.Serializable
,Localizable
public class DummyLocalizable extends java.lang.Object implements Localizable
Dummy implementation of theLocalizable
interface, without localization.- Since:
- 2.2
- Version:
- $Revision: 1003892 $ $Date: 2010-10-02 23:28:56 +0200 (sam. 02 oct. 2010) $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DummyLocalizable(java.lang.String source)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLocalizedString(java.util.Locale locale)
Get the localized string.java.lang.String
getSourceString()
Get the source (non-localized) string.java.lang.String
toString()
-
-
-
Method Detail
-
getSourceString
public java.lang.String getSourceString()
Get the source (non-localized) string.- Specified by:
getSourceString
in interfaceLocalizable
- Returns:
- source string
-
getLocalizedString
public java.lang.String getLocalizedString(java.util.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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-