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 "Introduction to XML Descriptors (ELUG)"

m (New page: <div style="float:right;border:1px solid #000000;padding:5px">__TOC__ Related Topics</div> This section introduces options...)
 
m
Line 1: Line 1:
 
<div style="float:right;border:1px solid #000000;padding:5px">__TOC__
 
<div style="float:right;border:1px solid #000000;padding:5px">__TOC__
 
[[Special:Whatlinkshere/Introduction to XML Descriptors (ELUG)|Related Topics]]</div>
 
[[Special:Whatlinkshere/Introduction to XML Descriptors (ELUG)|Related Topics]]</div>
 
 
This section introduces options specific to an XML descriptor.
 
This section introduces options specific to an XML descriptor.
  
Line 9: Line 8:
  
 
==XML Descriptor Concepts==
 
==XML Descriptor Concepts==
 
 
XML descriptors describe Java objects that you map to simple and complex types defined by an XML schema document (XSD).
 
XML descriptors describe Java objects that you map to simple and complex types defined by an XML schema document (XSD).
  
Using XML descriptors in an XML project, you can configure XML mappings (see [[Introduction%20to%20XML%20Mappings%20(ELUG)|XML Mapping Types]]), in memory, to XML elements defined by an XSD.
+
Using XML descriptors in an XML project, you can configure XML mappings (see [[Introduction%20to%20XML%20Mappings%20(ELUG)#XML Mapping Types|XML Mapping Types]]), in memory, to XML elements defined by an XSD.
  
 
For more information, see the following:
 
For more information, see the following:
 
 
* [[Creating%20an%20XML%20Descriptor%20(ELUG)|Creating an XML Descriptor]]
 
* [[Creating%20an%20XML%20Descriptor%20(ELUG)|Creating an XML Descriptor]]
 
* [[Configuring%20an%20XML%20Descriptor%20(ELUG)|Configuring an XML Descriptor]]
 
* [[Configuring%20an%20XML%20Descriptor%20(ELUG)|Configuring an XML Descriptor]]
Line 22: Line 19:
  
 
===XML Descriptors and Aggregation===
 
===XML Descriptors and Aggregation===
 
 
When working with descriptors for a parent (source) and a child (target) objects, you have to accomplish the following:
 
When working with descriptors for a parent (source) and a child (target) objects, you have to accomplish the following:
 
 
* if the source object exists, then you must ensure that the target object also exists;
 
* if the source object exists, then you must ensure that the target object also exists;
 
* if the source object is destroyed, then you must ensure that the target object is also destroyed.
 
* if the source object is destroyed, then you must ensure that the target object is also destroyed.
  
For more information, see [[Introduction%20to%20Descriptors%20(ELUG)| Descriptors and Aggregation]].
+
For more information, see [[Introduction%20to%20Descriptors%20(ELUG)#Descriptors and Aggregation| Descriptors and Aggregation]].
  
In your XML project, designate the descriptors for the source and target objects to reflect this relationship as [[#Composite Descriptors in XML Projects]].
+
In your XML project, designate the descriptors for the source and target objects to reflect this relationship as [[#Composite Descriptors in XML Projects|Composite Descriptors in XML Projects]].
  
  
  
 
====Composite Descriptors in XML Projects====
 
====Composite Descriptors in XML Projects====
 
 
In an XML project, descriptors are always composites.
 
In an XML project, descriptors are always composites.
  
Because XML descriptors are always composites, you can configure inheritance for an XML descriptor without considering its type (see [[Introduction%20to%20Descriptors%20(ELUG)|Descriptors and Inheritance]]).
+
Because XML descriptors are always composites, you can configure inheritance for an XML descriptor without considering its type (see [[Introduction%20to%20Descriptors%20(ELUG)#Descriptors and Inheritance|Descriptors and Inheritance]]).
  
  
Line 48: Line 42:
 
[[Category: Draft]]
 
[[Category: Draft]]
 
[[Category: Concept]]
 
[[Category: Concept]]
 +
[[Category: XML]]

Revision as of 09:30, 17 December 2007

This section introduces options specific to an XML descriptor.

For information on descriptor concepts and features common to more than one type of EclipseLink descriptors, see Introduction to Descriptors.


XML Descriptor Concepts

XML descriptors describe Java objects that you map to simple and complex types defined by an XML schema document (XSD).

Using XML descriptors in an XML project, you can configure XML mappings (see XML Mapping Types), in memory, to XML elements defined by an XSD.

For more information, see the following:


XML Descriptors and Aggregation

When working with descriptors for a parent (source) and a child (target) objects, you have to accomplish the following:

  • if the source object exists, then you must ensure that the target object also exists;
  • if the source object is destroyed, then you must ensure that the target object is also destroyed.

For more information, see Descriptors and Aggregation.

In your XML project, designate the descriptors for the source and target objects to reflect this relationship as Composite Descriptors in XML Projects.


Composite Descriptors in XML Projects

In an XML project, descriptors are always composites.

Because XML descriptors are always composites, you can configure inheritance for an XML descriptor without considering its type (see Descriptors and Inheritance).



Copyright Statement

Back to the top