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:
  • Constructor Details

    • 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 Details

    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object