Class LocalizedString
- java.lang.Object
-
- org.openehealth.ipf.commons.ihe.xds.core.metadata.LocalizedString
-
- All Implemented Interfaces:
Serializable
public class LocalizedString extends Object implements Serializable
Representation of a localized string.All members of this class are allowed to be
null
.- Author:
- Jens Riemschneider
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocalizedString()
Constructs a localized string.LocalizedString(String value)
Constructs a localized string.LocalizedString(String value, String lang, String charset)
Constructs a localized string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getCharset()
String
getLang()
String
getValue()
int
hashCode()
void
setCharset(String charset)
void
setLang(String lang)
void
setValue(String value)
String
toString()
-
-
-
Constructor Detail
-
LocalizedString
public LocalizedString()
Constructs a localized string.
-
LocalizedString
public LocalizedString(String value, String lang, String charset)
Constructs a localized string.- Parameters:
value
- the value of the string.lang
- the language that the string is in.charset
- the charset used in the string.
-
LocalizedString
public LocalizedString(String value)
Constructs a localized string.- Parameters:
value
- the value of the string.
-
-
Method Detail
-
getLang
public String getLang()
- Returns:
- the language that the string is in.
-
setLang
public void setLang(String lang)
- Parameters:
lang
- the language that the string is in.
-
getCharset
public String getCharset()
- Returns:
- the charset used in the string.
-
setCharset
public void setCharset(String charset)
- Parameters:
charset
- the charset used in the string.
-
getValue
public String getValue()
- Returns:
- the value of the string.
-
setValue
public void setValue(String value)
- Parameters:
value
- the value of the string.
-
canEqual
protected boolean canEqual(Object other)
-
-