[geotk] [JIRA] Created: (GEOTK-109) Better support of java.util.Locale during XML marshalling

Martin Desruisseaux (JIRA) jira at geomatys.com
Wed Jul 28 09:45:27 EDT 2010


Better support of java.util.Locale during XML marshalling
---------------------------------------------------------

                 Key: GEOTK-109
                 URL: http://jira.geotoolkit.org/browse/GEOTK-109
             Project: Geotoolkit
          Issue Type: Improvement
          Components: Metadata
    Affects Versions: 3.13
            Reporter: Martin Desruisseaux
            Priority: Minor


The {{locale}} attribute in {{DefaultMetadata}} has no JAXB annotation. We need to be able to produce an output like below:

{code:xml}
<gmd:locale>
  <gmd:PT_Locale id="locale-eng">
    <gmd:languageCode>
      <gmd:LanguageCode codeList="./resources/Codelists.xml#LanguageCode" codeListValue="eng">eng</gmd:LanguageCode>
    </gmd:languageCode>
    <gmd:country>
      <gmd:Country codeList="./resources/Codelists.xml#Country" codeListValue="GB">GB</gmd:Country>
    </gmd:country>
    <gmd:characterEncoding>
      <gmd:MD_CharacterSetCode codeList="./resources/Codelists.xml#MD_CharacterSetCode"
              codeListValue="8859part15">8859part15</gmd:MD_CharacterSetCode>
    </gmd:characterEncoding>
  </gmd:PT_Locale>
</gmd:locale>
{code}

This attribute is of collection of elements of kind {{CharacterString}} in ISO 19115, {{LanguageCode}} (a code list) in ISO 19139 and {{java.util.Locale}} in GeoAPI. Note that {{java.util.Locale}} has all the required information except the character set, which is represented by a separated class in the Java library.

As a side effect of this task, the Geotk {{LocalAdapter}} needs to be updated in order to change its output from:

{code:xml}
<language>
  <gco:characterString>eng</gco:characterString>
</language>
{code}

to


{code:xml}
<language>
  <gmd:LanguageCode codeList="./resources/codeList.xml#LanguageCode" codeListValue="eng"/>
</language>
{code}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.geotoolkit.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the Geotoolkit mailing list