Tue, 09 Apr 2013 14:51:13 +0100
8010393: Update JAX-WS RI to 2.2.9-b12941
Reviewed-by: alanb, erikj
Contributed-by: miroslav.kos@oracle.com, martin.grebac@oracle.com
alanb@368 | 1 | /* |
alanb@368 | 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
alanb@368 | 3 | * |
alanb@368 | 4 | * Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved. |
alanb@368 | 5 | * |
alanb@368 | 6 | * The contents of this file are subject to the terms of either the GNU |
alanb@368 | 7 | * General Public License Version 2 only ("GPL") or the Common Development |
alanb@368 | 8 | * and Distribution License("CDDL") (collectively, the "License"). You |
alanb@368 | 9 | * may not use this file except in compliance with the License. You can |
alanb@368 | 10 | * obtain a copy of the License at |
alanb@368 | 11 | * http://glassfish.java.net/public/CDDL+GPL_1_1.html |
alanb@368 | 12 | * or packager/legal/LICENSE.txt. See the License for the specific |
alanb@368 | 13 | * language governing permissions and limitations under the License. |
alanb@368 | 14 | * |
alanb@368 | 15 | * When distributing the software, include this License Header Notice in each |
alanb@368 | 16 | * file and include the License file at packager/legal/LICENSE.txt. |
alanb@368 | 17 | * |
alanb@368 | 18 | * GPL Classpath Exception: |
alanb@368 | 19 | * Oracle designates this particular file as subject to the "Classpath" |
alanb@368 | 20 | * exception as provided by Oracle in the GPL Version 2 section of the License |
alanb@368 | 21 | * file that accompanied this code. |
alanb@368 | 22 | * |
alanb@368 | 23 | * Modifications: |
alanb@368 | 24 | * If applicable, add the following below the License Header, with the fields |
alanb@368 | 25 | * enclosed by brackets [] replaced by your own identifying information: |
alanb@368 | 26 | * "Portions Copyright [year] [name of copyright owner]" |
alanb@368 | 27 | * |
alanb@368 | 28 | * Contributor(s): |
alanb@368 | 29 | * If you wish your version of this file to be governed by only the CDDL or |
alanb@368 | 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] |
alanb@368 | 31 | * elects to include this software in this distribution under the [CDDL or GPL |
alanb@368 | 32 | * Version 2] license." If you don't indicate a single choice of license, a |
alanb@368 | 33 | * recipient has the option to distribute your version of this file under |
alanb@368 | 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to |
alanb@368 | 35 | * its licensees as provided above. However, if you add GPL Version 2 code |
alanb@368 | 36 | * and therefore, elected the GPL Version 2 license, then the option applies |
alanb@368 | 37 | * only if the new code is made subject to such option by the copyright |
alanb@368 | 38 | * holder. |
alanb@368 | 39 | */ |
alanb@368 | 40 | package com.oracle.xmlns.internal.webservices.jaxws_databinding; |
alanb@368 | 41 | import org.w3c.dom.Element; |
alanb@368 | 42 | |
alanb@368 | 43 | import javax.xml.bind.annotation.XmlAccessType; |
alanb@368 | 44 | import javax.xml.bind.annotation.XmlAccessorType; |
alanb@368 | 45 | import javax.xml.bind.annotation.XmlAnyAttribute; |
alanb@368 | 46 | import javax.xml.bind.annotation.XmlAnyElement; |
alanb@368 | 47 | import javax.xml.bind.annotation.XmlAttribute; |
alanb@368 | 48 | import javax.xml.bind.annotation.XmlElement; |
alanb@368 | 49 | import javax.xml.bind.annotation.XmlElementRef; |
alanb@368 | 50 | import javax.xml.bind.annotation.XmlElementRefs; |
alanb@368 | 51 | import javax.xml.bind.annotation.XmlType; |
alanb@368 | 52 | import javax.xml.namespace.QName; |
alanb@368 | 53 | import java.util.ArrayList; |
alanb@368 | 54 | import java.util.HashMap; |
alanb@368 | 55 | import java.util.List; |
alanb@368 | 56 | import java.util.Map; |
alanb@368 | 57 | |
alanb@368 | 58 | |
alanb@368 | 59 | /** |
alanb@368 | 60 | * This file was generated by JAXB-RI v2.2.6 and afterwards modified |
alanb@368 | 61 | * to implement appropriate Annotation |
alanb@368 | 62 | * |
alanb@368 | 63 | * <p>Java class for java-wsdl-mapping-type complex type. |
alanb@368 | 64 | * |
alanb@368 | 65 | * <p>The following schema fragment specifies the expected content contained within this class. |
alanb@368 | 66 | * |
alanb@368 | 67 | * <pre> |
alanb@368 | 68 | * <complexType name="java-wsdl-mapping-type"> |
alanb@368 | 69 | * <complexContent> |
alanb@368 | 70 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
alanb@368 | 71 | * <sequence> |
alanb@368 | 72 | * <element name="xml-schema-mapping" minOccurs="0"> |
alanb@368 | 73 | * <complexType> |
alanb@368 | 74 | * <complexContent> |
alanb@368 | 75 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
alanb@368 | 76 | * <sequence> |
alanb@368 | 77 | * <any maxOccurs="unbounded" minOccurs="0"/> |
alanb@368 | 78 | * </sequence> |
alanb@368 | 79 | * </restriction> |
alanb@368 | 80 | * </complexContent> |
alanb@368 | 81 | * </complexType> |
alanb@368 | 82 | * </element> |
alanb@368 | 83 | * <group ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}class-annotation" maxOccurs="unbounded" minOccurs="0"/> |
alanb@368 | 84 | * <element name="java-methods" minOccurs="0"> |
alanb@368 | 85 | * <complexType> |
alanb@368 | 86 | * <complexContent> |
alanb@368 | 87 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
alanb@368 | 88 | * <sequence> |
alanb@368 | 89 | * <element ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}java-method" maxOccurs="unbounded" minOccurs="0"/> |
alanb@368 | 90 | * </sequence> |
alanb@368 | 91 | * </restriction> |
alanb@368 | 92 | * </complexContent> |
alanb@368 | 93 | * </complexType> |
alanb@368 | 94 | * </element> |
alanb@368 | 95 | * </sequence> |
alanb@368 | 96 | * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> |
alanb@368 | 97 | * <attribute name="java-type-name" type="{http://www.w3.org/2001/XMLSchema}string" /> |
alanb@368 | 98 | * <attribute name="existing-annotations" type="{http://xmlns.oracle.com/webservices/jaxws-databinding}existing-annotations-type" /> |
alanb@368 | 99 | * <attribute name="databinding" type="{http://www.w3.org/2001/XMLSchema}string" /> |
alanb@368 | 100 | * <anyAttribute processContents='skip' namespace='##other'/> |
alanb@368 | 101 | * </restriction> |
alanb@368 | 102 | * </complexContent> |
alanb@368 | 103 | * </complexType> |
alanb@368 | 104 | * </pre> |
alanb@368 | 105 | * |
alanb@368 | 106 | * |
alanb@368 | 107 | */ |
alanb@368 | 108 | @XmlAccessorType(XmlAccessType.FIELD) |
alanb@368 | 109 | @XmlType(name = "java-wsdl-mapping-type", propOrder = { |
alanb@368 | 110 | "xmlSchemaMapping", |
alanb@368 | 111 | "classAnnotation", |
alanb@368 | 112 | "javaMethods" |
alanb@368 | 113 | }) |
alanb@368 | 114 | public class JavaWsdlMappingType { |
alanb@368 | 115 | |
alanb@368 | 116 | @XmlElement(name = "xml-schema-mapping") |
alanb@368 | 117 | protected JavaWsdlMappingType.XmlSchemaMapping xmlSchemaMapping; |
alanb@368 | 118 | @XmlElementRefs({ |
alanb@368 | 119 | @XmlElementRef(name = "web-service-client", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebServiceClient.class, required = false), |
alanb@368 | 120 | @XmlElementRef(name = "binding-type", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlBindingType.class, required = false), |
alanb@368 | 121 | @XmlElementRef(name = "web-service", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebService.class, required = false), |
alanb@368 | 122 | @XmlElementRef(name = "web-fault", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebFault.class, required = false), |
alanb@368 | 123 | @XmlElementRef(name = "service-mode", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlServiceMode.class, required = false), |
alanb@368 | 124 | @XmlElementRef(name = "mtom", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlMTOM.class, required = false), |
alanb@368 | 125 | @XmlElementRef(name = "handler-chain", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlHandlerChain.class, required = false), |
alanb@368 | 126 | @XmlElementRef(name = "soap-binding", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlSOAPBinding.class, required = false) |
alanb@368 | 127 | }) |
alanb@368 | 128 | @XmlAnyElement |
alanb@368 | 129 | protected List<Object> classAnnotation; |
alanb@368 | 130 | @XmlElement(name = "java-methods") |
alanb@368 | 131 | protected JavaWsdlMappingType.JavaMethods javaMethods; |
alanb@368 | 132 | @XmlAttribute(name = "name") |
alanb@368 | 133 | protected String name; |
alanb@368 | 134 | @XmlAttribute(name = "java-type-name") |
alanb@368 | 135 | protected String javaTypeName; |
alanb@368 | 136 | @XmlAttribute(name = "existing-annotations") |
alanb@368 | 137 | protected ExistingAnnotationsType existingAnnotations; |
alanb@368 | 138 | @XmlAttribute(name = "databinding") |
alanb@368 | 139 | protected String databinding; |
alanb@368 | 140 | @XmlAnyAttribute |
alanb@368 | 141 | private Map<QName, String> otherAttributes = new HashMap<QName, String>(); |
alanb@368 | 142 | |
alanb@368 | 143 | /** |
alanb@368 | 144 | * Gets the value of the xmlSchemaMapping property. |
alanb@368 | 145 | * |
alanb@368 | 146 | * @return |
alanb@368 | 147 | * possible object is |
alanb@368 | 148 | * {@link JavaWsdlMappingType.XmlSchemaMapping } |
alanb@368 | 149 | * |
alanb@368 | 150 | */ |
alanb@368 | 151 | public JavaWsdlMappingType.XmlSchemaMapping getXmlSchemaMapping() { |
alanb@368 | 152 | return xmlSchemaMapping; |
alanb@368 | 153 | } |
alanb@368 | 154 | |
alanb@368 | 155 | /** |
alanb@368 | 156 | * Sets the value of the xmlSchemaMapping property. |
alanb@368 | 157 | * |
alanb@368 | 158 | * @param value |
alanb@368 | 159 | * allowed object is |
alanb@368 | 160 | * {@link JavaWsdlMappingType.XmlSchemaMapping } |
alanb@368 | 161 | * |
alanb@368 | 162 | */ |
alanb@368 | 163 | public void setXmlSchemaMapping(JavaWsdlMappingType.XmlSchemaMapping value) { |
alanb@368 | 164 | this.xmlSchemaMapping = value; |
alanb@368 | 165 | } |
alanb@368 | 166 | |
alanb@368 | 167 | /** |
alanb@368 | 168 | * |
alanb@368 | 169 | * The class-annotation group defines the set of |
alanb@368 | 170 | * annotations applicable to the Java class |
alanb@368 | 171 | * declaration. |
alanb@368 | 172 | * Gets the value of the classAnnotation property. |
alanb@368 | 173 | * |
alanb@368 | 174 | * <p> |
alanb@368 | 175 | * This accessor method returns a reference to the live list, |
alanb@368 | 176 | * not a snapshot. Therefore any modification you make to the |
alanb@368 | 177 | * returned list will be present inside the JAXB object. |
alanb@368 | 178 | * This is why there is not a <CODE>set</CODE> method for the classAnnotation property. |
alanb@368 | 179 | * |
alanb@368 | 180 | * <p> |
alanb@368 | 181 | * For example, to add a new item, do as follows: |
alanb@368 | 182 | * <pre> |
alanb@368 | 183 | * getClassAnnotation().add(newItem); |
alanb@368 | 184 | * </pre> |
alanb@368 | 185 | * |
alanb@368 | 186 | * |
alanb@368 | 187 | * <p> |
alanb@368 | 188 | * Objects of the following type(s) are allowed in the list |
alanb@368 | 189 | * {@link XmlWebServiceClient } |
alanb@368 | 190 | * {@link XmlBindingType } |
alanb@368 | 191 | * {@link XmlWebService } |
alanb@368 | 192 | * {@link XmlWebFault } |
alanb@368 | 193 | * {@link XmlServiceMode } |
alanb@368 | 194 | * {@link XmlMTOM } |
alanb@368 | 195 | * {@link XmlHandlerChain } |
alanb@368 | 196 | * {@link Element } |
alanb@368 | 197 | * {@link XmlSOAPBinding } |
alanb@368 | 198 | * |
alanb@368 | 199 | * |
alanb@368 | 200 | */ |
alanb@368 | 201 | public List<Object> getClassAnnotation() { |
alanb@368 | 202 | if (classAnnotation == null) { |
alanb@368 | 203 | classAnnotation = new ArrayList<Object>(); |
alanb@368 | 204 | } |
alanb@368 | 205 | return this.classAnnotation; |
alanb@368 | 206 | } |
alanb@368 | 207 | |
alanb@368 | 208 | /** |
alanb@368 | 209 | * Gets the value of the javaMethods property. |
alanb@368 | 210 | * |
alanb@368 | 211 | * @return |
alanb@368 | 212 | * possible object is |
alanb@368 | 213 | * {@link JavaWsdlMappingType.JavaMethods } |
alanb@368 | 214 | * |
alanb@368 | 215 | */ |
alanb@368 | 216 | public JavaWsdlMappingType.JavaMethods getJavaMethods() { |
alanb@368 | 217 | return javaMethods; |
alanb@368 | 218 | } |
alanb@368 | 219 | |
alanb@368 | 220 | /** |
alanb@368 | 221 | * Sets the value of the javaMethods property. |
alanb@368 | 222 | * |
alanb@368 | 223 | * @param value |
alanb@368 | 224 | * allowed object is |
alanb@368 | 225 | * {@link JavaWsdlMappingType.JavaMethods } |
alanb@368 | 226 | * |
alanb@368 | 227 | */ |
alanb@368 | 228 | public void setJavaMethods(JavaWsdlMappingType.JavaMethods value) { |
alanb@368 | 229 | this.javaMethods = value; |
alanb@368 | 230 | } |
alanb@368 | 231 | |
alanb@368 | 232 | /** |
alanb@368 | 233 | * Gets the value of the name property. |
alanb@368 | 234 | * |
alanb@368 | 235 | * @return |
alanb@368 | 236 | * possible object is |
alanb@368 | 237 | * {@link String } |
alanb@368 | 238 | * |
alanb@368 | 239 | */ |
alanb@368 | 240 | public String getName() { |
alanb@368 | 241 | return name; |
alanb@368 | 242 | } |
alanb@368 | 243 | |
alanb@368 | 244 | /** |
alanb@368 | 245 | * Sets the value of the name property. |
alanb@368 | 246 | * |
alanb@368 | 247 | * @param value |
alanb@368 | 248 | * allowed object is |
alanb@368 | 249 | * {@link String } |
alanb@368 | 250 | * |
alanb@368 | 251 | */ |
alanb@368 | 252 | public void setName(String value) { |
alanb@368 | 253 | this.name = value; |
alanb@368 | 254 | } |
alanb@368 | 255 | |
alanb@368 | 256 | /** |
alanb@368 | 257 | * Gets the value of the javaTypeName property. |
alanb@368 | 258 | * |
alanb@368 | 259 | * @return |
alanb@368 | 260 | * possible object is |
alanb@368 | 261 | * {@link String } |
alanb@368 | 262 | * |
alanb@368 | 263 | */ |
alanb@368 | 264 | public String getJavaTypeName() { |
alanb@368 | 265 | return javaTypeName; |
alanb@368 | 266 | } |
alanb@368 | 267 | |
alanb@368 | 268 | /** |
alanb@368 | 269 | * Sets the value of the javaTypeName property. |
alanb@368 | 270 | * |
alanb@368 | 271 | * @param value |
alanb@368 | 272 | * allowed object is |
alanb@368 | 273 | * {@link String } |
alanb@368 | 274 | * |
alanb@368 | 275 | */ |
alanb@368 | 276 | public void setJavaTypeName(String value) { |
alanb@368 | 277 | this.javaTypeName = value; |
alanb@368 | 278 | } |
alanb@368 | 279 | |
alanb@368 | 280 | /** |
alanb@368 | 281 | * Gets the value of the classAnnotations property. |
alanb@368 | 282 | * |
alanb@368 | 283 | * @return |
alanb@368 | 284 | * possible object is |
alanb@368 | 285 | * {@link ExistingAnnotationsType } |
alanb@368 | 286 | * |
alanb@368 | 287 | */ |
alanb@368 | 288 | public ExistingAnnotationsType getExistingAnnotations() { |
alanb@368 | 289 | return existingAnnotations; |
alanb@368 | 290 | } |
alanb@368 | 291 | |
alanb@368 | 292 | /** |
alanb@368 | 293 | * Sets the value of the classAnnotations property. |
alanb@368 | 294 | * |
alanb@368 | 295 | * @param value |
alanb@368 | 296 | * allowed object is |
alanb@368 | 297 | * {@link ExistingAnnotationsType } |
alanb@368 | 298 | * |
alanb@368 | 299 | */ |
alanb@368 | 300 | public void setExistingAnnotations(ExistingAnnotationsType value) { |
alanb@368 | 301 | this.existingAnnotations = value; |
alanb@368 | 302 | } |
alanb@368 | 303 | |
alanb@368 | 304 | /** |
alanb@368 | 305 | * Gets the value of the databinding property. |
alanb@368 | 306 | * |
alanb@368 | 307 | * @return |
alanb@368 | 308 | * possible object is |
alanb@368 | 309 | * {@link String } |
alanb@368 | 310 | * |
alanb@368 | 311 | */ |
alanb@368 | 312 | public String getDatabinding() { |
alanb@368 | 313 | return databinding; |
alanb@368 | 314 | } |
alanb@368 | 315 | |
alanb@368 | 316 | /** |
alanb@368 | 317 | * Sets the value of the databinding property. |
alanb@368 | 318 | * |
alanb@368 | 319 | * @param value |
alanb@368 | 320 | * allowed object is |
alanb@368 | 321 | * {@link String } |
alanb@368 | 322 | * |
alanb@368 | 323 | */ |
alanb@368 | 324 | public void setDatabinding(String value) { |
alanb@368 | 325 | this.databinding = value; |
alanb@368 | 326 | } |
alanb@368 | 327 | |
alanb@368 | 328 | /** |
alanb@368 | 329 | * Gets a map that contains attributes that aren't bound to any typed property on this class. |
alanb@368 | 330 | * |
alanb@368 | 331 | * <p> |
alanb@368 | 332 | * the map is keyed by the name of the attribute and |
alanb@368 | 333 | * the value is the string value of the attribute. |
alanb@368 | 334 | * |
alanb@368 | 335 | * the map returned by this method is live, and you can add new attribute |
alanb@368 | 336 | * by updating the map directly. Because of this design, there's no setter. |
alanb@368 | 337 | * |
alanb@368 | 338 | * |
alanb@368 | 339 | * @return |
alanb@368 | 340 | * always non-null |
alanb@368 | 341 | */ |
alanb@368 | 342 | public Map<QName, String> getOtherAttributes() { |
alanb@368 | 343 | return otherAttributes; |
alanb@368 | 344 | } |
alanb@368 | 345 | |
alanb@368 | 346 | |
alanb@368 | 347 | /** |
alanb@368 | 348 | * <p>Java class for anonymous complex type. |
alanb@368 | 349 | * |
alanb@368 | 350 | * <p>The following schema fragment specifies the expected content contained within this class. |
alanb@368 | 351 | * |
alanb@368 | 352 | * <pre> |
alanb@368 | 353 | * <complexType> |
alanb@368 | 354 | * <complexContent> |
alanb@368 | 355 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
alanb@368 | 356 | * <sequence> |
alanb@368 | 357 | * <element ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}java-method" maxOccurs="unbounded" minOccurs="0"/> |
alanb@368 | 358 | * </sequence> |
alanb@368 | 359 | * </restriction> |
alanb@368 | 360 | * </complexContent> |
alanb@368 | 361 | * </complexType> |
alanb@368 | 362 | * </pre> |
alanb@368 | 363 | * |
alanb@368 | 364 | * |
alanb@368 | 365 | */ |
alanb@368 | 366 | @XmlAccessorType(XmlAccessType.FIELD) |
alanb@368 | 367 | @XmlType(name = "", propOrder = { |
alanb@368 | 368 | "javaMethod" |
alanb@368 | 369 | }) |
alanb@368 | 370 | public static class JavaMethods { |
alanb@368 | 371 | |
alanb@368 | 372 | @XmlElement(name = "java-method") |
alanb@368 | 373 | protected List<JavaMethod> javaMethod; |
alanb@368 | 374 | |
alanb@368 | 375 | /** |
alanb@368 | 376 | * Gets the value of the javaMethod property. |
alanb@368 | 377 | * |
alanb@368 | 378 | * <p> |
alanb@368 | 379 | * This accessor method returns a reference to the live list, |
alanb@368 | 380 | * not a snapshot. Therefore any modification you make to the |
alanb@368 | 381 | * returned list will be present inside the JAXB object. |
alanb@368 | 382 | * This is why there is not a <CODE>set</CODE> method for the javaMethod property. |
alanb@368 | 383 | * |
alanb@368 | 384 | * <p> |
alanb@368 | 385 | * For example, to add a new item, do as follows: |
alanb@368 | 386 | * <pre> |
alanb@368 | 387 | * getJavaMethod().add(newItem); |
alanb@368 | 388 | * </pre> |
alanb@368 | 389 | * |
alanb@368 | 390 | * |
alanb@368 | 391 | * <p> |
alanb@368 | 392 | * Objects of the following type(s) are allowed in the list |
alanb@368 | 393 | * {@link JavaMethod } |
alanb@368 | 394 | * |
alanb@368 | 395 | * |
alanb@368 | 396 | */ |
alanb@368 | 397 | public List<JavaMethod> getJavaMethod() { |
alanb@368 | 398 | if (javaMethod == null) { |
alanb@368 | 399 | javaMethod = new ArrayList<JavaMethod>(); |
alanb@368 | 400 | } |
alanb@368 | 401 | return this.javaMethod; |
alanb@368 | 402 | } |
alanb@368 | 403 | |
alanb@368 | 404 | } |
alanb@368 | 405 | |
alanb@368 | 406 | |
alanb@368 | 407 | /** |
alanb@368 | 408 | * <p>Java class for anonymous complex type. |
alanb@368 | 409 | * |
alanb@368 | 410 | * <p>The following schema fragment specifies the expected content contained within this class. |
alanb@368 | 411 | * |
alanb@368 | 412 | * <pre> |
alanb@368 | 413 | * <complexType> |
alanb@368 | 414 | * <complexContent> |
alanb@368 | 415 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
alanb@368 | 416 | * <sequence> |
alanb@368 | 417 | * <any maxOccurs="unbounded" minOccurs="0"/> |
alanb@368 | 418 | * </sequence> |
alanb@368 | 419 | * </restriction> |
alanb@368 | 420 | * </complexContent> |
alanb@368 | 421 | * </complexType> |
alanb@368 | 422 | * </pre> |
alanb@368 | 423 | * |
alanb@368 | 424 | * |
alanb@368 | 425 | */ |
alanb@368 | 426 | @XmlAccessorType(XmlAccessType.FIELD) |
alanb@368 | 427 | @XmlType(name = "", propOrder = { |
alanb@368 | 428 | "any" |
alanb@368 | 429 | }) |
alanb@368 | 430 | public static class XmlSchemaMapping { |
alanb@368 | 431 | |
alanb@368 | 432 | @XmlAnyElement(lax = true) |
alanb@368 | 433 | protected List<Object> any; |
alanb@368 | 434 | |
alanb@368 | 435 | /** |
alanb@368 | 436 | * Gets the value of the any property. |
alanb@368 | 437 | * |
alanb@368 | 438 | * <p> |
alanb@368 | 439 | * This accessor method returns a reference to the live list, |
alanb@368 | 440 | * not a snapshot. Therefore any modification you make to the |
alanb@368 | 441 | * returned list will be present inside the JAXB object. |
alanb@368 | 442 | * This is why there is not a <CODE>set</CODE> method for the any property. |
alanb@368 | 443 | * |
alanb@368 | 444 | * <p> |
alanb@368 | 445 | * For example, to add a new item, do as follows: |
alanb@368 | 446 | * <pre> |
alanb@368 | 447 | * getAny().add(newItem); |
alanb@368 | 448 | * </pre> |
alanb@368 | 449 | * |
alanb@368 | 450 | * |
alanb@368 | 451 | * <p> |
alanb@368 | 452 | * Objects of the following type(s) are allowed in the list |
alanb@368 | 453 | * {@link Object } |
alanb@368 | 454 | * |
alanb@368 | 455 | * |
alanb@368 | 456 | */ |
alanb@368 | 457 | public List<Object> getAny() { |
alanb@368 | 458 | if (any == null) { |
alanb@368 | 459 | any = new ArrayList<Object>(); |
alanb@368 | 460 | } |
alanb@368 | 461 | return this.any; |
alanb@368 | 462 | } |
alanb@368 | 463 | |
alanb@368 | 464 | } |
alanb@368 | 465 | |
alanb@368 | 466 | } |