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 15:59, 20 December 2010


link="http://wiki.eclipse.org/EclipseLink"
EclipseLink
Website
Download
Community
Mailing ListForumsIRC
Bugzilla
Open
Help Wanted
Bug 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