From 3c7c4a749baafcf375f4785a7668d3a25c9063e3 Mon Sep 17 00:00:00 2001 From: lresende Date: Fri, 13 Nov 2009 01:42:27 +0000 Subject: Moving 1.x trunk git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835700 13f79535-47bb-0310-9956-ffa450edef68 --- .../com/example/uszip/GetInfoByStateResponse.java | 158 +++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 sca-java-1.x/trunk/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java (limited to 'sca-java-1.x/trunk/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java') diff --git a/sca-java-1.x/trunk/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java b/sca-java-1.x/trunk/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java new file mode 100644 index 0000000000..1645e11ca2 --- /dev/null +++ b/sca-java-1.x/trunk/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java @@ -0,0 +1,158 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package com.example.uszip; + +import java.util.ArrayList; +import java.util.List; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="GetInfoByStateResult" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <any/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "getInfoByStateResult" +}) +@XmlRootElement(name = "GetInfoByStateResponse") +public class GetInfoByStateResponse { + + @XmlElement(name = "GetInfoByStateResult") + protected GetInfoByStateResponse.GetInfoByStateResult getInfoByStateResult; + + /** + * Gets the value of the getInfoByStateResult property. + * + * @return + * possible object is + * {@link GetInfoByStateResponse.GetInfoByStateResult } + * + */ + public GetInfoByStateResponse.GetInfoByStateResult getGetInfoByStateResult() { + return getInfoByStateResult; + } + + /** + * Sets the value of the getInfoByStateResult property. + * + * @param value + * allowed object is + * {@link GetInfoByStateResponse.GetInfoByStateResult } + * + */ + public void setGetInfoByStateResult(GetInfoByStateResponse.GetInfoByStateResult value) { + this.getInfoByStateResult = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <any/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "content" + }) + public static class GetInfoByStateResult { + + @XmlMixed + @XmlAnyElement(lax = true) + protected List content; + + /** + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getContent().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * {@link Object } + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + + } + +} -- cgit v1.2.3