Package org.apache.sis.internal.jaxb.lan
Class LocalisedCharacterString
java.lang.Object
org.apache.sis.internal.jaxb.lan.LocalisedCharacterString
The
<LocalisedCharacterString> elements nested in a <textGroup> one.
This element contains a string for a given locale.- Since:
- 0.3
- Version:
- 0.3
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor only used by JAXB.LocalisedCharacterString(Locale locale, String text) Constructs a localized string for the given locale and text. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this string with the given object for equality.Returns the locale language for<LocalisedCharacterString>attribute.inthashCode()Returns a hash code value for this string.voidSets the locale language, using a string formatted as#locale-xxx, wherexxxare the two or three letters representing the language.toString()Returns a string representation of this object for debugging purpose.
-
Field Details
-
PREFIX
A prefix to concatenate with the language code. This is a hack for a common pattern found in the way locales are specified in ISO 19139:2007 files. See SIS-137 for more information.- See Also:
-
locale
Locale localeThe locale value for this string. -
text
String textThe text in the locale of this localized string. JAXB uses this field for formatting the<LocalisedCharacterString>elements in the XML tree at marshalling-time.
-
-
Constructor Details
-
LocalisedCharacterString
LocalisedCharacterString()Empty constructor only used by JAXB. -
LocalisedCharacterString
Constructs a localized string for the given locale and text.- Parameters:
locale- the string language.text- the string.
-
-
Method Details
-
getLocale
Returns the locale language for<LocalisedCharacterString>attribute.- Returns:
- the current locale.
- See Also:
-
setLocale
Sets the locale language, using a string formatted as#locale-xxx, wherexxxare the two or three letters representing the language.- Parameters:
localeId- the new locale.- See Also:
-
hashCode
public int hashCode()Returns a hash code value for this string. -
equals
Compares this string with the given object for equality. -
toString
Returns a string representation of this object for debugging purpose. Example:
-