[geotk] [JIRA] Created: (GEOTK-108) XML marshalling is missing subtype attributes if the implementation is not the default one

Martin Desruisseaux (JIRA) jira at geomatys.com
Sun Jul 25 07:46:27 EDT 2010


XML marshalling is missing subtype attributes if the implementation is not the default one
------------------------------------------------------------------------------------------

                 Key: GEOTK-108
                 URL: http://jira.geotoolkit.org/browse/GEOTK-108
             Project: Geotoolkit
          Issue Type: Bug
          Components: Metadata
    Affects Versions: 3.13, 3.12, 3.11, 3.10, 3.09, 3.08, 3.07, 3.06, 3.05, 3.04, 3.03, 3.02, 3.01, 3.00
            Reporter: Martin Desruisseaux
            Assignee: Martin Desruisseaux
            Priority: Minor
             Fix For: 3.14


If a user provides his own implementation of an ISO 19115 metadata interface, and if that interface is a subtype of the type that appears in the method signature of the enclosing metadata, the attributes defines in the subtypes are not marshalled by JAXB. Exemple:

{code:java}
DataIdentification identification = new DataIdentification() {
    @Override
    public InternationalString getAbstract() {...} // Defined in Identification super type.

    @Override
    public InternationalString getEnvironmentDescription() {...} // Defined in DataIdentification.

    // etc.
};

DefaultMetadata metadata = new DefaultMetadata();
metadata.setIdentificationInfo(Collections.singleton(identification));
{code}

Marshalling the above metadata produce a XML tree containing the abstract attribute, but not the environment description.

This issue has been reported by Damiano Albani on the mailing list.


-- 
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