public class InternationalStringTypeHelper extends Object
Constructor and Description |
---|
InternationalStringTypeHelper() |
Modifier and Type | Method and Description |
---|---|
InternationalStringType |
create(String internationalizeThis)
This is a convenience method that creates an InternationalStringType object from the given
String The string will be wrapped in a LocalizedStringType using the Locale, default Locale if
one hasn't been set
|
String |
getString(InternationalStringType internationalString)
This is is a convenience method that pulls the string value from the InternationalStringType
This convenience method will use the locale to get the string from the LocalizedStringType
|
void |
setLocale(Locale locale) |
public String getString(InternationalStringType internationalString)
internationalString
- the internationalStringType, null returns empty Stringpublic InternationalStringType create(String internationalizeThis)
internationalizeThis
- the string to be wrapped in the InternationalStringType, null
returns empty InternationalStringTypepublic void setLocale(Locale locale)
This work is licensed under a Creative Commons Attribution 4.0 International License.