More intelligent parsing of <gml:identifier> elements.


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1548994 13f79535-47bb-0310-9956-ffa450edef68
Bug fix: the flag telling whether XML namespaces should be replaced needs to be copied to (un)marshallers.


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1549684 13f79535-47bb-0310-9956-ffa450edef68
Adjust the GML version number when the namespace changed (was GML 3.2.1).


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1549758 13f79535-47bb-0310-9956-ffa450edef68
Minor consolidation in JAXB annotations, and complete JAXB binding on
AbstractIdentifiedObject with capability to (un)marshall more than one name.


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1550045 13f79535-47bb-0310-9956-ffa450edef68
Slight modification of the policy about xlink:href. By default, write XLink attributes even if the metadata object is not nil.
The XLink is then for informative purpose. This change is made on the assumption that this behavior will be less surprising
for the users than omission of the metadata object from the XML output.


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1550306 13f79535-47bb-0310-9956-ffa450edef68
Allow ReferenceResolver to check for empty metadata.


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1550634 13f79535-47bb-0310-9956-ffa450edef68
Reorganized the metadata XML (un)marshalling tests in order to put them closer to the implementation classes used for the tests.
The initial intend of previous layout was to keep together the XML tests. However this appears to be confusing (the test classes
were not directly related to any SIS implementation classes) and not always practical since XML bindings with JAXB are sometime
closely related to package-privated methods. The sis-referencing module was testing XML close to the implementation classes for
this reason. This commit makes the sis-metadata module consistent with the sis-referencing module in this regard.


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1550841 13f79535-47bb-0310-9956-ffa450edef68
Merge from the JDK7 branch.


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK6@1550842 13f79535-47bb-0310-9956-ffa450edef68
Workaround for what seems to be a JAXB 2.1.10 in JDK 1.6.0_65 bug.
JAXB 2.2.4-2 in JDK 1.7.0_25 does not show this issue.


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK6@1550853 13f79535-47bb-0310-9956-ffa450edef68
Merge from the JDK6 branch.


git-svn-id: https://svn.apache.org/repos/asf/sis/trunk@1550857 13f79535-47bb-0310-9956-ffa450edef68
Minor bug fix in the information that are reported in case of test failure.


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1550858 13f79535-47bb-0310-9956-ffa450edef68
Uses shorts intead than integers for resource keys.
This is sufficient and avoid to fill the constants pool in ".class" files.


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1550874 13f79535-47bb-0310-9956-ffa450edef68
Marshal country codes using the 2-letters code instead than the 3-letters ones (SIS-153),
and consolidation of the way we handle language codes.


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1550973 13f79535-47bb-0310-9956-ffa450edef68
PT_Locale.unmarshall(...) shall use language and country codes together when building the Locale.


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1551090 13f79535-47bb-0310-9956-ffa450edef68
When a warning occurs at (un)marshalling time, leave the 'source' argument to null for now.
The previous attempt to provide a non-null value added more complexity than initially though,
and we had no consistent value. In a future version, the Marshaller or Unmarshaller instance
may be a more appropriate argument than what we had - but for now we wait to see a need for that.


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1551107 13f79535-47bb-0310-9956-ffa450edef68
Revert the 'parse' method name change in Locales. The 'parseLanguage' was not really better,
because it gave the impression that the method does not parse country and variant codes.


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1551243 13f79535-47bb-0310-9956-ffa450edef68
Added tests and more consistent references to http://schemas.opengis.net/iso/19139/20070417/resources/


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1551459 13f79535-47bb-0310-9956-ffa450edef68
Parsing of dates need to take in account the XML.TIMEZONE value (patch by Guilhem Legal).


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1551630 13f79535-47bb-0310-9956-ffa450edef68
More efficient replacement of ISO3 codes by ISO2 ones (avoid linear scan on all Locales).


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1551738 13f79535-47bb-0310-9956-ffa450edef68
Merge from the JDK7 branch.


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK6@1551742 13f79535-47bb-0310-9956-ffa450edef68