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

Bug 328822

Summary: JAXB Externalized Metadata: Support for adapter on XmlValue required
Product: z_Archived Reporter: David McCann <david.mccann>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 317962    
Attachments:
Description Flags
Proposed fix
none
Supporting tests none

Description David McCann CLA 2010-10-27 09:24:40 EDT
According to the spec section 8.9.10.2, XmlJavaTypeAdapter may be used with
@XmlValue.
Comment 1 David McCann CLA 2010-10-27 16:05:15 EDT
Created attachment 181873 [details]
Proposed fix
Comment 2 David McCann CLA 2010-10-27 16:05:29 EDT
Created attachment 181874 [details]
Supporting tests
Comment 3 David McCann CLA 2010-10-27 16:15:28 EDT
Example use:
<?xml version="1.0" encoding="US-ASCII"?>
<xml-bindings xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/oxm">
  <java-types>
    <java-type name="org.example.MyValueClass">
      <xml-root-element name="boolean" />
      <java-attributes>
        <xml-value java-attribute="blah">
          <xml-java-type-adapter value="org.example.MyValueAdapter" />
        </xml-value>
      </java-attributes>
    </java-type>
  </java-types>
</xml-bindings>

Reviewed by:  matt.macivor@oracle.com
Tests:  all unit tests pass as expected; jaxb/externalizedmetadata/xmlvalue/XmlValueTestCases
revision: 8427
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:25:46 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink