Package org.apache.sis.internal.jaxb.lan
Class PT_Locale
java.lang.Object
org.apache.sis.internal.jaxb.lan.PT_Locale
A
Locale associated to Charset.
This class wraps the value in an XML element as specified by ISO 19115-3 standard.
See package documentation for more information about the handling of CodeList in ISO 19115-3.
This wrapper formats the locale like below:
For an alternative (simpler) format used in the legacy gmd namespace, see LocaleAdapter.- Since:
- 0.3
- Version:
- 1.0
- Author:
- Martin Desruisseaux (Geomatys), Cullen Rombach (Image Matters)
- See Also:
-
Constructor Details
-
PT_Locale
Creates a new wrapper for the given locale.- Parameters:
locale- the language and country components ofPT_Locale.
-
-
Method Details
-
getLocale
Returns the Java locale wrapped by thisPT_Localeinstance. This method returns a cached instance if possible.- Returns:
- the wrapped locale, or
nullif none.
-
first
Returns the first element of the given map, ornullif none.- Parameters:
locales- the locales and character sets, ornull.- Returns:
- the first element of the given map, or
null.
-
wrap
Wraps all elements of the given map in a sequence ofPT_Locale.- Parameters:
locales- the locales and character sets, ornull.- Returns:
- the all elements of the given map, or
nullif the given map is null or empty.
-