Object
ResourceBundles
Localized resources for elements from OGC/ISO standards.
This class provides
ResourceBundle
or Properties
objects
in which keys can have the following patterns:
<class>
<class>.<member>
<class>
and <member>
are the UML identifiers as specified in the OGC/ISO standards.
Those identifiers for GeoAPI interfaces and methods are given by UML.identifier()
.
Example
The"CI_RoleCode.principalInvestigator"
key is associated to the following values:
Locale.ENGLISH
CodeList
:Principal investigator
Description
:Key party responsible for gathering information and conducting research.
Locale.FRENCH
CodeList
:Maître d’œuvre principal
Description
:Acteur qui a assuré la réalisation de la ressource, éventuellement en faisant appel à des co-traitants ou des sous-traitants.
- Since:
- 3.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic Properties
Returns the mapping from UML identifiers to Java classes.static ResourceBundle
Returns the localized resources for the code list labels.static ResourceBundle
descriptions
(Locale locale) Returns the localized resources for the property descriptions.
-
Method Details
-
codeLists
Returns the localized resources for the code list labels. Keys are<class>
or<class>.<member>
strings where<class>
and<member>
are UML identifiers as specified in the OGC/ISO standards. Values are human-readable texts in the specified locale if available, or in English as a fallback.Example
codeLists.getString("CI_RoleCode.principalInvestigator")
returnsPrincipal investigator
if the specified locale isLocale.ENGLISH
, orMaître d’œuvre principal
if the specified locale isLocale.FRENCH
.- Parameters:
locale
- the locale for which a resource bundle is desired, ornull
for the default locale.- Returns:
- localized texts for the specified or default locale.
-
descriptions
Returns the localized resources for the property descriptions. Keys are<class>
or<class>.<member>
strings where<class>
and<member>
are UML identifiers as specified in the OGC/ISO standards. Values are human-readable texts in the specified locale if available, or in English as a fallback.Example
descriptions.getString("CI_RoleCode.principalInvestigator")
returnsKey party responsible for gathering information and conducting research.
if the specified locale isLocale.ENGLISH
, orActeur qui a assuré la réalisation de la ressource, éventuellement en faisant appel à des co-traitants ou des sous-traitants.
if the specified locale isLocale.FRENCH
.- Parameters:
locale
- the locale for which a resource bundle is desired, ornull
for the default locale.- Returns:
- localized texts for the specified or default locale.
-
classIndex
Returns the mapping from UML identifiers to Java classes. The returned map is the converse ofUML.identifier()
.Examples
classIndex.getString("CRS")
returns"org.opengis.referencing.crs.CoordinateReferenceSystem"
.Performance note
This method loads the resources in a newProperties
instance every time that this method is invoked, becauseProperties
is a mutable object. Callers should invoke this method only once and cache the map.- Returns:
- mapping from UML identifiers to Java classes in a new
Properties
instance. - Throws:
IOException
- if the properties cannot be loaded.- See Also:
-