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.XmlID;
21  import javax.xml.bind.annotation.XmlRootElement;
22  import javax.xml.bind.annotation.XmlSchemaType;
23  import javax.xml.bind.annotation.XmlType;
24  import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
25  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
26  import javax.xml.namespace.QName;
27  import org.w3c.dom.Element;
28  
29  
30  /**
31   * <p>Java class for anonymous complex type.
32   * 
33   * <p>The following schema fragment specifies the expected content contained within this class.
34   * 
35   * <pre>
36   * &lt;complexType>
37   *   &lt;complexContent>
38   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
39   *       &lt;sequence>
40   *         &lt;element ref="{http://wadl.dev.java.net/2009/02}doc" maxOccurs="unbounded" minOccurs="0"/>
41   *         &lt;element ref="{http://wadl.dev.java.net/2009/02}param" maxOccurs="unbounded" minOccurs="0"/>
42   *         &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
43   *       &lt;/sequence>
44   *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
45   *       &lt;attribute name="element" type="{http://www.w3.org/2001/XMLSchema}QName" />
46   *       &lt;attribute name="mediaType" type="{http://www.w3.org/2001/XMLSchema}string" />
47   *       &lt;attribute name="href" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
48   *       &lt;attribute name="profile" type="{http://wadl.dev.java.net/2009/02}uriList" />
49   *       &lt;anyAttribute processContents='lax' namespace='##other'/>
50   *     &lt;/restriction>
51   *   &lt;/complexContent>
52   * &lt;/complexType>
53   * </pre>
54   * 
55   * 
56   */
57  @XmlAccessorType(XmlAccessType.FIELD)
58  @XmlType(name = "", propOrder = {
59      "doc",
60      "param",
61      "any"
62  })
63  @XmlRootElement(name = "representation")
64  public class Representation {
65  
66      protected List<Doc> doc;
67      protected List<Param> param;
68      @XmlAnyElement(lax = true)
69      protected List<Object> any;
70      @XmlAttribute
71      @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
72      @XmlID
73      @XmlSchemaType(name = "ID")
74      protected String id;
75      @XmlAttribute
76      protected QName element;
77      @XmlAttribute
78      protected String mediaType;
79      @XmlAttribute
80      @XmlSchemaType(name = "anyURI")
81      protected String href;
82      @XmlAttribute
83      protected List<String> profile;
84      @XmlAnyAttribute
85      private Map<QName, String> otherAttributes = new HashMap<QName, String>();
86  
87      /**
88       * Gets the value of the doc property.
89       * 
90       * <p>
91       * This accessor method returns a reference to the live list,
92       * not a snapshot. Therefore any modification you make to the
93       * returned list will be present inside the JAXB object.
94       * This is why there is not a <CODE>set</CODE> method for the doc property.
95       * 
96       * <p>
97       * For example, to add a new item, do as follows:
98       * <pre>
99       *    getDoc().add(newItem);
100      * </pre>
101      * 
102      * 
103      * <p>
104      * Objects of the following type(s) are allowed in the list
105      * {@link Doc }
106      * 
107      * 
108      */
109     public List<Doc> getDoc() {
110         if (doc == null) {
111             doc = new ArrayList<Doc>();
112         }
113         return this.doc;
114     }
115 
116     /**
117      * Gets the value of the param property.
118      * 
119      * <p>
120      * This accessor method returns a reference to the live list,
121      * not a snapshot. Therefore any modification you make to the
122      * returned list will be present inside the JAXB object.
123      * This is why there is not a <CODE>set</CODE> method for the param property.
124      * 
125      * <p>
126      * For example, to add a new item, do as follows:
127      * <pre>
128      *    getParam().add(newItem);
129      * </pre>
130      * 
131      * 
132      * <p>
133      * Objects of the following type(s) are allowed in the list
134      * {@link Param }
135      * 
136      * 
137      */
138     public List<Param> getParam() {
139         if (param == null) {
140             param = new ArrayList<Param>();
141         }
142         return this.param;
143     }
144 
145     /**
146      * Gets the value of the any property.
147      * 
148      * <p>
149      * This accessor method returns a reference to the live list,
150      * not a snapshot. Therefore any modification you make to the
151      * returned list will be present inside the JAXB object.
152      * This is why there is not a <CODE>set</CODE> method for the any property.
153      * 
154      * <p>
155      * For example, to add a new item, do as follows:
156      * <pre>
157      *    getAny().add(newItem);
158      * </pre>
159      * 
160      * 
161      * <p>
162      * Objects of the following type(s) are allowed in the list
163      * {@link Element }
164      * {@link Object }
165      * 
166      * 
167      */
168     public List<Object> getAny() {
169         if (any == null) {
170             any = new ArrayList<Object>();
171         }
172         return this.any;
173     }
174 
175     /**
176      * Gets the value of the id property.
177      * 
178      * @return
179      *     possible object is
180      *     {@link String }
181      *     
182      */
183     public String getId() {
184         return id;
185     }
186 
187     /**
188      * Sets the value of the id property.
189      * 
190      * @param value
191      *     allowed object is
192      *     {@link String }
193      *     
194      */
195     public void setId(String value) {
196         this.id = value;
197     }
198 
199     /**
200      * Gets the value of the element property.
201      * 
202      * @return
203      *     possible object is
204      *     {@link QName }
205      *     
206      */
207     public QName getElement() {
208         return element;
209     }
210 
211     /**
212      * Sets the value of the element property.
213      * 
214      * @param value
215      *     allowed object is
216      *     {@link QName }
217      *     
218      */
219     public void setElement(QName value) {
220         this.element = value;
221     }
222 
223     /**
224      * Gets the value of the mediaType property.
225      * 
226      * @return
227      *     possible object is
228      *     {@link String }
229      *     
230      */
231     public String getMediaType() {
232         return mediaType;
233     }
234 
235     /**
236      * Sets the value of the mediaType property.
237      * 
238      * @param value
239      *     allowed object is
240      *     {@link String }
241      *     
242      */
243     public void setMediaType(String value) {
244         this.mediaType = value;
245     }
246 
247     /**
248      * Gets the value of the href property.
249      * 
250      * @return
251      *     possible object is
252      *     {@link String }
253      *     
254      */
255     public String getHref() {
256         return href;
257     }
258 
259     /**
260      * Sets the value of the href property.
261      * 
262      * @param value
263      *     allowed object is
264      *     {@link String }
265      *     
266      */
267     public void setHref(String value) {
268         this.href = value;
269     }
270 
271     /**
272      * Gets the value of the profile property.
273      * 
274      * <p>
275      * This accessor method returns a reference to the live list,
276      * not a snapshot. Therefore any modification you make to the
277      * returned list will be present inside the JAXB object.
278      * This is why there is not a <CODE>set</CODE> method for the profile property.
279      * 
280      * <p>
281      * For example, to add a new item, do as follows:
282      * <pre>
283      *    getProfile().add(newItem);
284      * </pre>
285      * 
286      * 
287      * <p>
288      * Objects of the following type(s) are allowed in the list
289      * {@link String }
290      * 
291      * 
292      */
293     public List<String> getProfile() {
294         if (profile == null) {
295             profile = new ArrayList<String>();
296         }
297         return this.profile;
298     }
299 
300     /**
301      * Gets a map that contains attributes that aren't bound to any typed property on this class.
302      * 
303      * <p>
304      * the map is keyed by the name of the attribute and 
305      * the value is the string value of the attribute.
306      * 
307      * the map returned by this method is live, and you can add new attribute
308      * by updating the map directly. Because of this design, there's no setter.
309      * 
310      * 
311      * @return
312      *     always non-null
313      */
314     public Map<QName, String> getOtherAttributes() {
315         return otherAttributes;
316     }
317 
318 }