|
Oracle® Fusion Middleware Java API Reference for EclipseLink 11g Release 1 (11.1.1) E26376-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
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.
Example:
@XmlRootElement(name="customer")
public class Customer {
...
@XmlElements()
@XmlPaths()
public Object choice
...
}
Will create the following Schema:
...
<xsd:choice>
<xsd:element name="choice_element" minOccurs="0">
<xsd:complexType>
<xsd:choice>
<xsd:element name="string" type="xsd:string" minOccurs="0"/>
<xsd:element name="integer" type="xsd:int" minOccurs="0"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:choice>
...
Required Element Summary | |
---|---|
XmlPath[] |
value |
Element Detail |
---|
public abstract XmlPath[] value
|
Oracle® Fusion Middleware Java API Reference for EclipseLink 11g Release 1 (11.1.1) E26376-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |