[
https://issues.apache.org/jira/browse/SIS-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14706138#comment-14706138
]
Martin Desruisseaux commented on SIS-173:
-----------------------------------------
We may do this work on {{DefaultParameterValueGroup}} first, since this class
would benefit a lot from {{XmlIdRef}} usage. Currently, all parameter
descriptor are copied twice: once after the parameter value, and once again
(the exact same descriptor) under the {{<gml:group>}} element.
See the
{{core/sis-referencing/src/test/resources/org/apache/sis/parameter/ParameterValueGroup.xml}}
file in the source code.
> Adds @XmlIdRef annotations
> --------------------------
>
> Key: SIS-173
> URL: https://issues.apache.org/jira/browse/SIS-173
> Project: Spatial Information Systems
> Issue Type: Task
> Components: Referencing
> Reporter: Martin Desruisseaux
>
> XML documents of objects in the {{gml}} namespace shall have a {{gml:id}}
> attribute allowing cross-references of the same objects in the document. SIS
> 0.4 provides this attribute (because it is mandatory) and annotates it with
> {{@XmlID}}, but does not really use it since we have no corresponding member
> annotated with {{@XmlIdRef}}.
> More specifically we need to:
> * Add a {{Context.isValidID(...)}} method.
> * Invoke the above {{isValid(...)}} method in
> {{AbstractIdentifiedObject.getID()}} in order to determine if we need to
> generate an other ID.
> * Add {{@XmlIdRef}} annotation somewhere and test.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)