Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EclipseLink/UserGuide/MOXy/Simple Values/Collections/XMLDirectCollectionMapping"

(New page: {{EclipseLink_UserGuide |info=y |api=y |apis= * [http://www.eclipse.org/eclipselink/api/latest/javax/xml/bind/annotation/XmlAttribute.html XmlAttribute] * [http://www.eclipse.org/eclipseli...)
 
Line 8: Line 8:
 
}}
 
}}
 
=XML Direct Collection Mappings=
 
=XML Direct Collection Mappings=
XML direct mappings map a Java attribute directly to XML text nodes. You can use an XML direct mapping in the following scenarios:
+
XML direct collection mappings map a collection of simple Java values directly to XML text nodes. You can use an XML direct collection mapping in the following scenarios:
* [[#Mapping to an Attribute|Mapping to an Attribute]]
+
* [[#Mapping to Text Nodes|Mapping to Text Nodes]]
* [[#Mapping to a Text Node|Mapping to a Text Node]]
+
* [[#Mapping to Text Nodes with a Grouping Element|Mapping to Text Nodes with a Grouping Element]]
* [[#Mapping to a Specified Schema Type|Mapping to a Specified Schema Type]]
+
* [[#Mapping to a List Field with an XML Direct Mapping|Mapping to a List Field with an XML Direct Mapping]]
+
* [[#Mapping with a Simple Type Translator|Mapping with a Simple Type Translator]]
+
* [[#Mapping to a Union Field with an XML Direct Mapping|Mapping to a Union Field with an XML Direct Mapping]]
+
* [[#Mapping to a Union of Lists with an XML Direct Mapping|Mapping to a Union of Lists with an XML Direct Mapping]]
+
* [[#Mapping to a Union of Unions with an XML Direct Mapping|Mapping to a Union of Unions with an XML Direct Mapping]]
+
  
  
==Mapping to an Attribute==
+
 
 +
==Mapping to Text Nodes==
 +
 
 +
 
 +
==Mapping to Text Nodes with a Grouping Element==

Revision as of 16:59, 20 December 2010


Eclipselink-logo.gif
EclipseLink
Website
Download
Community
Mailing ListForumsIRCmattermost
Issues
OpenHelp WantedBug Day
Contribute
Browse Source

XML Direct Collection Mappings

XML direct collection mappings map a collection of simple Java values directly to XML text nodes. You can use an XML direct collection mapping in the following scenarios:


Mapping to Text Nodes

Mapping to Text Nodes with a Grouping Element

Back to the top