Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362905

Summary: For DynamicJAXB, XmlAdapter's value type should be settable via XML Bindings
Product: z_Archived Reporter: Rick Barkhouse <rick.barkhouse>
Component: EclipselinkAssignee: Rick Barkhouse <rick.barkhouse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: blaise.doughan
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch - code changes
none
Patch - test changes none

Description Rick Barkhouse CLA 2011-11-04 09:57:47 EDT
To allow the user to use dynamic types as the Value type for an XmlAdapter, support must be added to allow value type to be specified in XML Bindings.

eg.:

<java-type name="addresslink.Customer">
 <xml-root-element/>
 <java-attributes>
    <xml-element java-attribute="id" type="java.lang.String"/>
    <xml-element java-attribute="name" type="java.lang.String"/>
    <xml-element java-attribute="address" name="link" namespace="http://www.w3.org/2005/Atom" type="addresslink.Address">
       <xml-java-type-adapter value="addresslink.LinkAdapter" value-type="addresslink.Link"/>
    </xml-element>
 </java-attributes>
</java-type>
Comment 1 Rick Barkhouse CLA 2011-11-04 10:00:38 EDT
Created attachment 206463 [details]
Patch - code changes
Comment 2 Rick Barkhouse CLA 2011-11-04 12:23:54 EDT
Created attachment 206474 [details]
Patch - test changes
Comment 3 Rick Barkhouse CLA 2011-11-04 14:14:50 EDT
Fixed, reviewed by bdoughan.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:04:20 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink