This project has retired. For details please refer to its Attic page.
Option 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.XmlRootElement;
21  import javax.xml.bind.annotation.XmlType;
22  import javax.xml.namespace.QName;
23  import org.w3c.dom.Element;
24  
25  
26  /**
27   * <p>Java class for anonymous complex type.
28   * 
29   * <p>The following schema fragment specifies the expected content contained within this class.
30   * 
31   * <pre>
32   * &lt;complexType>
33   *   &lt;complexContent>
34   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
35   *       &lt;sequence>
36   *         &lt;element ref="{http://wadl.dev.java.net/2009/02}doc" maxOccurs="unbounded" minOccurs="0"/>
37   *         &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
38   *       &lt;/sequence>
39   *       &lt;attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
40   *       &lt;attribute name="mediaType" type="{http://www.w3.org/2001/XMLSchema}string" />
41   *       &lt;anyAttribute processContents='lax' namespace='##other'/>
42   *     &lt;/restriction>
43   *   &lt;/complexContent>
44   * &lt;/complexType>
45   * </pre>
46   * 
47   * 
48   */
49  @XmlAccessorType(XmlAccessType.FIELD)
50  @XmlType(name = "", propOrder = {
51      "doc",
52      "any"
53  })
54  @XmlRootElement(name = "option")
55  public class Option {
56  
57      protected List<Doc> doc;
58      @XmlAnyElement(lax = true)
59      protected List<Object> any;
60      @XmlAttribute(required = true)
61      protected String value;
62      @XmlAttribute
63      protected String mediaType;
64      @XmlAnyAttribute
65      private Map<QName, String> otherAttributes = new HashMap<QName, String>();
66  
67      /**
68       * Gets the value of the doc property.
69       * 
70       * <p>
71       * This accessor method returns a reference to the live list,
72       * not a snapshot. Therefore any modification you make to the
73       * returned list will be present inside the JAXB object.
74       * This is why there is not a <CODE>set</CODE> method for the doc property.
75       * 
76       * <p>
77       * For example, to add a new item, do as follows:
78       * <pre>
79       *    getDoc().add(newItem);
80       * </pre>
81       * 
82       * 
83       * <p>
84       * Objects of the following type(s) are allowed in the list
85       * {@link Doc }
86       * 
87       * 
88       */
89      public List<Doc> getDoc() {
90          if (doc == null) {
91              doc = new ArrayList<Doc>();
92          }
93          return this.doc;
94      }
95  
96      /**
97       * Gets the value of the any property.
98       * 
99       * <p>
100      * This accessor method returns a reference to the live list,
101      * not a snapshot. Therefore any modification you make to the
102      * returned list will be present inside the JAXB object.
103      * This is why there is not a <CODE>set</CODE> method for the any property.
104      * 
105      * <p>
106      * For example, to add a new item, do as follows:
107      * <pre>
108      *    getAny().add(newItem);
109      * </pre>
110      * 
111      * 
112      * <p>
113      * Objects of the following type(s) are allowed in the list
114      * {@link Element }
115      * {@link Object }
116      * 
117      * 
118      */
119     public List<Object> getAny() {
120         if (any == null) {
121             any = new ArrayList<Object>();
122         }
123         return this.any;
124     }
125 
126     /**
127      * Gets the value of the value property.
128      * 
129      * @return
130      *     possible object is
131      *     {@link String }
132      *     
133      */
134     public String getValue() {
135         return value;
136     }
137 
138     /**
139      * Sets the value of the value property.
140      * 
141      * @param value
142      *     allowed object is
143      *     {@link String }
144      *     
145      */
146     public void setValue(String value) {
147         this.value = value;
148     }
149 
150     /**
151      * Gets the value of the mediaType property.
152      * 
153      * @return
154      *     possible object is
155      *     {@link String }
156      *     
157      */
158     public String getMediaType() {
159         return mediaType;
160     }
161 
162     /**
163      * Sets the value of the mediaType property.
164      * 
165      * @param value
166      *     allowed object is
167      *     {@link String }
168      *     
169      */
170     public void setMediaType(String value) {
171         this.mediaType = value;
172     }
173 
174     /**
175      * Gets a map that contains attributes that aren't bound to any typed property on this class.
176      * 
177      * <p>
178      * the map is keyed by the name of the attribute and 
179      * the value is the string value of the attribute.
180      * 
181      * the map returned by this method is live, and you can add new attribute
182      * by updating the map directly. Because of this design, there's no setter.
183      * 
184      * 
185      * @return
186      *     always non-null
187      */
188     public Map<QName, String> getOtherAttributes() {
189         return otherAttributes;
190     }
191 
192 }