Top Description Methods
javax.xml.bind.annotation

public @Interface XmlElementRefs

extends Annotation
Annotations
@Retention:RUNTIME
@Target:FIELD, METHOD
Imports
javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter, java.lang.annotation.Retention, .Target

Marks a property that refers to classes with XmlElement or JAXBElement.

Compared to an element property (property with XmlElement annotation), a reference property has a different substitution semantics. When a sub-class is assigned to a property, an element property produces the same tag name with @xsi:type, whereas a reference property produces a different tag name (the tag name that's on the the sub-class.)

This annotation can be used with the following annotations: XmlJavaTypeAdapter, XmlElementWrapper.

Author
Since
1.6, JAXB 2.0
See Also
XmlElementWrapper, XmlElementRef

Method Summary

Modifier and TypeMethod and Description
public XmlElementRef[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public XmlElementRef[] value()