incubator-hise-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Anderson (JIRA)" <>
Subject [jira] Updated: (HISE-68) Converting JAXB to XMLBeans
Date Thu, 21 Oct 2010 04:52:17 GMT


Aaron Anderson updated HISE-68:

    Attachment: jaxb-patch.diff

Here is a patch that re-introduces JAXB marshalling to the current trunk. It uses the JAXB
Binder class to to map JAXB classes to DOM elements and vice versa. 

As a future enhancement a custom coded JAXB class for the tExpression type can be inserted
into the JAXB code generation process and an unmarshaller listener can be created to populate
the custom tExpression type with a NameSpace context value. This way after unmarshalling the
Binder and DOM document can be discarded while the necessary expression objects would still
have the namespacecontext property available for expression evaluation.

Another enhancement would be to create custom coded JAXB classes for the lax types that contain
content that needs to be unmarshalled properly. More specifically, the tFrom type. Without
the JAXB binding customization generateMixedExtensions="true" the tFrom children remain as
DOM objects and do not get unmarshalled. Even with generateMixedExtensions="true" the content
does get marshalled but it gets placed in a protected field that can only be accessed via
reflection. This is rather inelegant and should be remedied.

> Converting JAXB to XMLBeans
> ---------------------------
>                 Key: HISE-68
>                 URL:
>             Project: HISE
>          Issue Type: Task
>            Reporter: Michał Więcław
>             Fix For: 1.0.0
>         Attachments: HISE-68.patch, HISE-68.patch, jaxb-patch.diff, xmlbeans.diff

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message