EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

Annotation Type XmlPaths

public @interface XmlPaths

Purpose: This annotation is used in conjunction with an XmlElements annotation to specify an XmlPath for each of the XmlElement annotations in the XmlElements. The number of XmlPath annotations must be the same as the number of XmlElement annotations and the order must be the same.

 public class Customer {
    public Object choice

Will create the following Schema:

       <xsd:element name="choice-element" minOccurs="0">
                <xsd:element name="string" type="xsd:string" minOccurs="0"/>
                <xsd:element name="integer" type="xsd:int" minOccurs="0"/>

Required Element Summary
 XmlPath[] value

Element Detail


public abstract XmlPath[] value

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference