jaxws/src/java.xml.bind/share/classes/javax/xml/bind/annotation/XmlElementWrapper.java
changeset 29839 6d5d546e953b
parent 28887 88470f768658
child 32795 5a5710ee05a0
equal deleted inserted replaced
29838:fe5fd9871a13 29839:6d5d546e953b
    37  *
    37  *
    38  * This is primarily intended to be used to produce a wrapper
    38  * This is primarily intended to be used to produce a wrapper
    39  * XML element around collections. The annotation therefore supports
    39  * XML element around collections. The annotation therefore supports
    40  * two forms of serialization shown below.
    40  * two forms of serialization shown below.
    41  *
    41  *
    42  * <pre>
    42  * <pre>{@code
    43  *    //Example: code fragment
    43  *    //Example: code fragment
    44  *      int[] names;
    44  *      int[] names;
    45  *
    45  *
    46  *    // XML Serialization Form 1 (Unwrapped collection)
    46  *    // XML Serialization Form 1 (Unwrapped collection)
    47  *    &lt;names&gt; ... &lt;/names&gt;
    47  *    <names> ... </names>
    48  *    &lt;names&gt; ... &lt;/names&gt;
    48  *    <names> ... </names>
    49  *
    49  *
    50  *    // XML Serialization Form 2 ( Wrapped collection )
    50  *    // XML Serialization Form 2 ( Wrapped collection )
    51  *    &lt;wrapperElement&gt;
    51  *    <wrapperElement>
    52  *       &lt;names&gt; value-of-item &lt;/names&gt;
    52  *       <names> value-of-item </names>
    53  *       &lt;names&gt; value-of-item &lt;/names&gt;
    53  *       <names> value-of-item </names>
    54  *       ....
    54  *       ....
    55  *    &lt;/wrapperElement&gt;
    55  *    </wrapperElement>
    56  * </pre>
    56  * }</pre>
    57  *
    57  *
    58  * <p> The two serialized XML forms allow a null collection to be
    58  * <p> The two serialized XML forms allow a null collection to be
    59  * represented either by absence or presence of an element with a
    59  * represented either by absence or presence of an element with a
    60  * nillable attribute.
    60  * nillable attribute.
    61  *
    61  *