This project has retired. For details please refer to its Attic page.
Resource xref
View Javadoc
1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 
3   // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4   // Any modifications to this file will be lost upon recompilation of the source schema. 
5   // Generated on: 2013.05.27 at 06:54:03 PM EDT 
6   //
7   
8   
9   package org.apache.juddi.v3.client.mapping.wadl;
10  
11  import java.util.ArrayList;
12  import java.util.HashMap;
13  import java.util.List;
14  import java.util.Map;
15  import javax.xml.bind.annotation.XmlAccessType;
16  import javax.xml.bind.annotation.XmlAccessorType;
17  import javax.xml.bind.annotation.XmlAnyAttribute;
18  import javax.xml.bind.annotation.XmlAnyElement;
19  import javax.xml.bind.annotation.XmlAttribute;
20  import javax.xml.bind.annotation.XmlElement;
21  import javax.xml.bind.annotation.XmlElements;
22  import javax.xml.bind.annotation.XmlID;
23  import javax.xml.bind.annotation.XmlRootElement;
24  import javax.xml.bind.annotation.XmlSchemaType;
25  import javax.xml.bind.annotation.XmlType;
26  import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
27  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
28  import javax.xml.namespace.QName;
29  import org.w3c.dom.Element;
30  
31  
32  /**
33   * <p>Java class for anonymous complex type.
34   * 
35   * <p>The following schema fragment specifies the expected content contained within this class.
36   * 
37   * <pre>
38   * &lt;complexType>
39   *   &lt;complexContent>
40   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
41   *       &lt;sequence>
42   *         &lt;element ref="{http://wadl.dev.java.net/2009/02}doc" maxOccurs="unbounded" minOccurs="0"/>
43   *         &lt;element ref="{http://wadl.dev.java.net/2009/02}param" maxOccurs="unbounded" minOccurs="0"/>
44   *         &lt;choice maxOccurs="unbounded" minOccurs="0">
45   *           &lt;element ref="{http://wadl.dev.java.net/2009/02}method"/>
46   *           &lt;element ref="{http://wadl.dev.java.net/2009/02}resource"/>
47   *         &lt;/choice>
48   *         &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
49   *       &lt;/sequence>
50   *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
51   *       &lt;attribute name="type" type="{http://wadl.dev.java.net/2009/02}resource_type_list" />
52   *       &lt;attribute name="queryType" type="{http://www.w3.org/2001/XMLSchema}string" default="application/x-www-form-urlencoded" />
53   *       &lt;attribute name="path" type="{http://www.w3.org/2001/XMLSchema}string" />
54   *       &lt;anyAttribute processContents='lax' namespace='##other'/>
55   *     &lt;/restriction>
56   *   &lt;/complexContent>
57   * &lt;/complexType>
58   * </pre>
59   * 
60   * 
61   */
62  @XmlAccessorType(XmlAccessType.FIELD)
63  @XmlType(name = "", propOrder = {
64      "doc",
65      "param",
66      "methodOrResource",
67      "any"
68  })
69  @XmlRootElement(name = "resource")
70  public class Resource {
71  
72      protected List<Doc> doc;
73      protected List<Param> param;
74      @XmlElements({
75          @XmlElement(name = "resource", type = Resource.class),
76          @XmlElement(name = "method", type = Method.class)
77      })
78      protected List<Object> methodOrResource;
79      @XmlAnyElement(lax = true)
80      protected List<Object> any;
81      @XmlAttribute
82      @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
83      @XmlID
84      @XmlSchemaType(name = "ID")
85      protected String id;
86      @XmlAttribute
87      protected List<String> type;
88      @XmlAttribute
89      protected String queryType;
90      @XmlAttribute
91      protected String path;
92      @XmlAnyAttribute
93      private Map<QName, String> otherAttributes = new HashMap<QName, String>();
94  
95      /**
96       * Gets the value of the doc property.
97       * 
98       * <p>
99       * This accessor method returns a reference to the live list,
100      * not a snapshot. Therefore any modification you make to the
101      * returned list will be present inside the JAXB object.
102      * This is why there is not a <CODE>set</CODE> method for the doc property.
103      * 
104      * <p>
105      * For example, to add a new item, do as follows:
106      * <pre>
107      *    getDoc().add(newItem);
108      * </pre>
109      * 
110      * 
111      * <p>
112      * Objects of the following type(s) are allowed in the list
113      * {@link Doc }
114      * 
115      * 
116      */
117     public List<Doc> getDoc() {
118         if (doc == null) {
119             doc = new ArrayList<Doc>();
120         }
121         return this.doc;
122     }
123 
124     /**
125      * Gets the value of the param property.
126      * 
127      * <p>
128      * This accessor method returns a reference to the live list,
129      * not a snapshot. Therefore any modification you make to the
130      * returned list will be present inside the JAXB object.
131      * This is why there is not a <CODE>set</CODE> method for the param property.
132      * 
133      * <p>
134      * For example, to add a new item, do as follows:
135      * <pre>
136      *    getParam().add(newItem);
137      * </pre>
138      * 
139      * 
140      * <p>
141      * Objects of the following type(s) are allowed in the list
142      * {@link Param }
143      * 
144      * 
145      */
146     public List<Param> getParam() {
147         if (param == null) {
148             param = new ArrayList<Param>();
149         }
150         return this.param;
151     }
152 
153     /**
154      * Gets the value of the methodOrResource property.
155      * 
156      * <p>
157      * This accessor method returns a reference to the live list,
158      * not a snapshot. Therefore any modification you make to the
159      * returned list will be present inside the JAXB object.
160      * This is why there is not a <CODE>set</CODE> method for the methodOrResource property.
161      * 
162      * <p>
163      * For example, to add a new item, do as follows:
164      * <pre>
165      *    getMethodOrResource().add(newItem);
166      * </pre>
167      * 
168      * 
169      * <p>
170      * Objects of the following type(s) are allowed in the list
171      * {@link Resource }
172      * {@link Method }
173      * 
174      * 
175      */
176     public List<Object> getMethodOrResource() {
177         if (methodOrResource == null) {
178             methodOrResource = new ArrayList<Object>();
179         }
180         return this.methodOrResource;
181     }
182 
183     /**
184      * Gets the value of the any property.
185      * 
186      * <p>
187      * This accessor method returns a reference to the live list,
188      * not a snapshot. Therefore any modification you make to the
189      * returned list will be present inside the JAXB object.
190      * This is why there is not a <CODE>set</CODE> method for the any property.
191      * 
192      * <p>
193      * For example, to add a new item, do as follows:
194      * <pre>
195      *    getAny().add(newItem);
196      * </pre>
197      * 
198      * 
199      * <p>
200      * Objects of the following type(s) are allowed in the list
201      * {@link Element }
202      * {@link Object }
203      * 
204      * 
205      */
206     public List<Object> getAny() {
207         if (any == null) {
208             any = new ArrayList<Object>();
209         }
210         return this.any;
211     }
212 
213     /**
214      * Gets the value of the id property.
215      * 
216      * @return
217      *     possible object is
218      *     {@link String }
219      *     
220      */
221     public String getId() {
222         return id;
223     }
224 
225     /**
226      * Sets the value of the id property.
227      * 
228      * @param value
229      *     allowed object is
230      *     {@link String }
231      *     
232      */
233     public void setId(String value) {
234         this.id = value;
235     }
236 
237     /**
238      * Gets the value of the type property.
239      * 
240      * <p>
241      * This accessor method returns a reference to the live list,
242      * not a snapshot. Therefore any modification you make to the
243      * returned list will be present inside the JAXB object.
244      * This is why there is not a <CODE>set</CODE> method for the type property.
245      * 
246      * <p>
247      * For example, to add a new item, do as follows:
248      * <pre>
249      *    getType().add(newItem);
250      * </pre>
251      * 
252      * 
253      * <p>
254      * Objects of the following type(s) are allowed in the list
255      * {@link String }
256      * 
257      * 
258      */
259     public List<String> getType() {
260         if (type == null) {
261             type = new ArrayList<String>();
262         }
263         return this.type;
264     }
265 
266     /**
267      * Gets the value of the queryType property.
268      * 
269      * @return
270      *     possible object is
271      *     {@link String }
272      *     
273      */
274     public String getQueryType() {
275         if (queryType == null) {
276             return "application/x-www-form-urlencoded";
277         } else {
278             return queryType;
279         }
280     }
281 
282     /**
283      * Sets the value of the queryType property.
284      * 
285      * @param value
286      *     allowed object is
287      *     {@link String }
288      *     
289      */
290     public void setQueryType(String value) {
291         this.queryType = value;
292     }
293 
294     /**
295      * Gets the value of the path property.
296      * 
297      * @return
298      *     possible object is
299      *     {@link String }
300      *     
301      */
302     public String getPath() {
303         return path;
304     }
305 
306     /**
307      * Sets the value of the path property.
308      * 
309      * @param value
310      *     allowed object is
311      *     {@link String }
312      *     
313      */
314     public void setPath(String value) {
315         this.path = value;
316     }
317 
318     /**
319      * Gets a map that contains attributes that aren't bound to any typed property on this class.
320      * 
321      * <p>
322      * the map is keyed by the name of the attribute and 
323      * the value is the string value of the attribute.
324      * 
325      * the map returned by this method is live, and you can add new attribute
326      * by updating the map directly. Because of this design, there's no setter.
327      * 
328      * 
329      * @return
330      *     always non-null
331      */
332     public Map<QName, String> getOtherAttributes() {
333         return otherAttributes;
334     }
335 
336 }