001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: //
043: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs
044: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
045: // Any modifications to this file will be lost upon recompilation of the source schema.
046: // Generated on: 2006.12.09 at 06:26:06 PM PST
047: //
048:
049: package org.netbeans.modules.compapp.javaee.sunresources.generated.jaxrpcmapping11;
050:
051: import java.math.BigDecimal;
052: import java.util.ArrayList;
053: import java.util.List;
054: import javax.xml.bind.annotation.XmlAccessType;
055: import javax.xml.bind.annotation.XmlAccessorType;
056: import javax.xml.bind.annotation.XmlAttribute;
057: import javax.xml.bind.annotation.XmlElement;
058: import javax.xml.bind.annotation.XmlElements;
059: import javax.xml.bind.annotation.XmlID;
060: import javax.xml.bind.annotation.XmlType;
061: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
062: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
063:
064: /**
065: *
066: *
067: * The element describes the Java mapping to a known WSDL document.
068: *
069: * It contains the mapping between package names and XML namespaces,
070: * WSDL root types and Java artifacts, and the set of mappings for
071: * services.
072: *
073: *
074: *
075: * <p>Java class for java-wsdl-mappingType complex type.
076: *
077: * <p>The following schema fragment specifies the expected content contained within this class.
078: *
079: * <pre>
080: * <complexType name="java-wsdl-mappingType">
081: * <complexContent>
082: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
083: * <sequence>
084: * <element name="package-mapping" type="{http://java.sun.com/xml/ns/j2ee}package-mappingType" maxOccurs="unbounded"/>
085: * <element name="java-xml-type-mapping" type="{http://java.sun.com/xml/ns/j2ee}java-xml-type-mappingType" maxOccurs="unbounded" minOccurs="0"/>
086: * <element name="exception-mapping" type="{http://java.sun.com/xml/ns/j2ee}exception-mappingType" maxOccurs="unbounded" minOccurs="0"/>
087: * <sequence maxOccurs="unbounded" minOccurs="0">
088: * <element name="service-interface-mapping" type="{http://java.sun.com/xml/ns/j2ee}service-interface-mappingType" minOccurs="0"/>
089: * <element name="service-endpoint-interface-mapping" type="{http://java.sun.com/xml/ns/j2ee}service-endpoint-interface-mappingType" maxOccurs="unbounded"/>
090: * </sequence>
091: * </sequence>
092: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
093: * <attribute name="version" use="required" type="{http://java.sun.com/xml/ns/j2ee}dewey-versionType" fixed="1.1" />
094: * </restriction>
095: * </complexContent>
096: * </complexType>
097: * </pre>
098: *
099: *
100: */
101: @XmlAccessorType(XmlAccessType.FIELD)
102: @XmlType(name="java-wsdl-mappingType",propOrder={"packageMapping","javaXmlTypeMapping","exceptionMapping","serviceInterfaceMappingAndServiceEndpointInterfaceMapping"})
103: public class JavaWsdlMappingType {
104:
105: @XmlElement(name="package-mapping",required=true)
106: protected List<PackageMappingType> packageMapping;
107: @XmlElement(name="java-xml-type-mapping")
108: protected List<JavaXmlTypeMappingType> javaXmlTypeMapping;
109: @XmlElement(name="exception-mapping")
110: protected List<ExceptionMappingType> exceptionMapping;
111: @XmlElements({@XmlElement(name="service-endpoint-interface-mapping",type=ServiceEndpointInterfaceMappingType.class),@XmlElement(name="service-interface-mapping",type=ServiceInterfaceMappingType.class)})
112: protected List<Object> serviceInterfaceMappingAndServiceEndpointInterfaceMapping;
113: @XmlAttribute
114: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
115: @XmlID
116: protected java.lang.String id;
117: @XmlAttribute(required=true)
118: protected BigDecimal version;
119:
120: /**
121: * Gets the value of the packageMapping property.
122: *
123: * <p>
124: * This accessor method returns a reference to the live list,
125: * not a snapshot. Therefore any modification you make to the
126: * returned list will be present inside the JAXB object.
127: * This is why there is not a <CODE>set</CODE> method for the packageMapping property.
128: *
129: * <p>
130: * For example, to add a new item, do as follows:
131: * <pre>
132: * getPackageMapping().add(newItem);
133: * </pre>
134: *
135: *
136: * <p>
137: * Objects of the following type(s) are allowed in the list
138: * {@link PackageMappingType }
139: *
140: *
141: */
142: public List<PackageMappingType> getPackageMapping() {
143: if (packageMapping == null) {
144: packageMapping = new ArrayList<PackageMappingType>();
145: }
146: return this .packageMapping;
147: }
148:
149: /**
150: * Gets the value of the javaXmlTypeMapping property.
151: *
152: * <p>
153: * This accessor method returns a reference to the live list,
154: * not a snapshot. Therefore any modification you make to the
155: * returned list will be present inside the JAXB object.
156: * This is why there is not a <CODE>set</CODE> method for the javaXmlTypeMapping property.
157: *
158: * <p>
159: * For example, to add a new item, do as follows:
160: * <pre>
161: * getJavaXmlTypeMapping().add(newItem);
162: * </pre>
163: *
164: *
165: * <p>
166: * Objects of the following type(s) are allowed in the list
167: * {@link JavaXmlTypeMappingType }
168: *
169: *
170: */
171: public List<JavaXmlTypeMappingType> getJavaXmlTypeMapping() {
172: if (javaXmlTypeMapping == null) {
173: javaXmlTypeMapping = new ArrayList<JavaXmlTypeMappingType>();
174: }
175: return this .javaXmlTypeMapping;
176: }
177:
178: /**
179: * Gets the value of the exceptionMapping property.
180: *
181: * <p>
182: * This accessor method returns a reference to the live list,
183: * not a snapshot. Therefore any modification you make to the
184: * returned list will be present inside the JAXB object.
185: * This is why there is not a <CODE>set</CODE> method for the exceptionMapping property.
186: *
187: * <p>
188: * For example, to add a new item, do as follows:
189: * <pre>
190: * getExceptionMapping().add(newItem);
191: * </pre>
192: *
193: *
194: * <p>
195: * Objects of the following type(s) are allowed in the list
196: * {@link ExceptionMappingType }
197: *
198: *
199: */
200: public List<ExceptionMappingType> getExceptionMapping() {
201: if (exceptionMapping == null) {
202: exceptionMapping = new ArrayList<ExceptionMappingType>();
203: }
204: return this .exceptionMapping;
205: }
206:
207: /**
208: * Gets the value of the serviceInterfaceMappingAndServiceEndpointInterfaceMapping property.
209: *
210: * <p>
211: * This accessor method returns a reference to the live list,
212: * not a snapshot. Therefore any modification you make to the
213: * returned list will be present inside the JAXB object.
214: * This is why there is not a <CODE>set</CODE> method for the serviceInterfaceMappingAndServiceEndpointInterfaceMapping property.
215: *
216: * <p>
217: * For example, to add a new item, do as follows:
218: * <pre>
219: * getServiceInterfaceMappingAndServiceEndpointInterfaceMapping().add(newItem);
220: * </pre>
221: *
222: *
223: * <p>
224: * Objects of the following type(s) are allowed in the list
225: * {@link ServiceEndpointInterfaceMappingType }
226: * {@link ServiceInterfaceMappingType }
227: *
228: *
229: */
230: public List<Object> getServiceInterfaceMappingAndServiceEndpointInterfaceMapping() {
231: if (serviceInterfaceMappingAndServiceEndpointInterfaceMapping == null) {
232: serviceInterfaceMappingAndServiceEndpointInterfaceMapping = new ArrayList<Object>();
233: }
234: return this .serviceInterfaceMappingAndServiceEndpointInterfaceMapping;
235: }
236:
237: /**
238: * Gets the value of the id property.
239: *
240: * @return
241: * possible object is
242: * {@link java.lang.String }
243: *
244: */
245: public java.lang.String getId() {
246: return id;
247: }
248:
249: /**
250: * Sets the value of the id property.
251: *
252: * @param value
253: * allowed object is
254: * {@link java.lang.String }
255: *
256: */
257: public void setId(java.lang.String value) {
258: this .id = value;
259: }
260:
261: /**
262: * Gets the value of the version property.
263: *
264: * @return
265: * possible object is
266: * {@link BigDecimal }
267: *
268: */
269: public BigDecimal getVersion() {
270: if (version == null) {
271: return new BigDecimal("1.1");
272: } else {
273: return version;
274: }
275: }
276:
277: /**
278: * Sets the value of the version property.
279: *
280: * @param value
281: * allowed object is
282: * {@link BigDecimal }
283: *
284: */
285: public void setVersion(BigDecimal value) {
286: this.version = value;
287: }
288:
289: }
|