jaxws/src/java.xml.bind/share/classes/javax/xml/bind/annotation/XmlElementWrapper.java
equal
deleted
inserted
replaced
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 * <names> ... </names> |
47 * <names> ... </names> |
48 * <names> ... </names> |
48 * <names> ... </names> |
49 * |
49 * |
50 * // XML Serialization Form 2 ( Wrapped collection ) |
50 * // XML Serialization Form 2 ( Wrapped collection ) |
51 * <wrapperElement> |
51 * <wrapperElement> |
52 * <names> value-of-item </names> |
52 * <names> value-of-item </names> |
53 * <names> value-of-item </names> |
53 * <names> value-of-item </names> |
54 * .... |
54 * .... |
55 * </wrapperElement> |
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 * |