107 * <pre>
108 * LetterBody lb = ObjectFactory.createLetterBody();
109 * JAXBElement<LetterBody> lbe = ObjectFactory.createLetterBody(lb);
110 * List gcl = lb.getContent(); //add mixed content to general content property.
111 * gcl.add("Dear Mr."); // add text information item as a String.
112 *
113 * // add child element information item
114 * gcl.add(ObjectFactory.createLetterBodyName("Robert Smith"));
115 * gcl.add("Your order of "); // add text information item as a String
116 *
117 * // add children element information items
118 * gcl.add(ObjectFactory.
119 * createLetterBodyQuantity(new BigInteger("1")));
120 * gcl.add(ObjectFactory.createLetterBodyProductName("Baby Monitor"));
121 * gcl.add("shipped from our warehouse"); // add text information item
122 * </pre>
123 *
124 * <p>See "Package Specification" in javax.xml.bind.package javadoc for
125 * additional common information.</p>
126 * @author Kohsuke Kawaguchi
127 * @since JAXB2.0
128 */
129 @Retention(RUNTIME)
130 @Target({FIELD,METHOD})
131 public @interface XmlMixed {
132 }
|
107 * <pre>
108 * LetterBody lb = ObjectFactory.createLetterBody();
109 * JAXBElement<LetterBody> lbe = ObjectFactory.createLetterBody(lb);
110 * List gcl = lb.getContent(); //add mixed content to general content property.
111 * gcl.add("Dear Mr."); // add text information item as a String.
112 *
113 * // add child element information item
114 * gcl.add(ObjectFactory.createLetterBodyName("Robert Smith"));
115 * gcl.add("Your order of "); // add text information item as a String
116 *
117 * // add children element information items
118 * gcl.add(ObjectFactory.
119 * createLetterBodyQuantity(new BigInteger("1")));
120 * gcl.add(ObjectFactory.createLetterBodyProductName("Baby Monitor"));
121 * gcl.add("shipped from our warehouse"); // add text information item
122 * </pre>
123 *
124 * <p>See "Package Specification" in javax.xml.bind.package javadoc for
125 * additional common information.</p>
126 * @author Kohsuke Kawaguchi
127 * @since 1.6, JAXB 2.0
128 */
129 @Retention(RUNTIME)
130 @Target({FIELD,METHOD})
131 public @interface XmlMixed {
132 }
|