View Javadoc

1   // That is direct copy from jersey-1.8-atlassian branch. Used to support out-date XML namespace of grammars.xml
2   // see package-info.java for detailed explanations
3   
4   //
5   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 
6   // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
7   // Any modifications to this file will be lost upon recompilation of the source schema. 
8   // Generated on: 2011.06.24 at 12:17:19 PM CEST 
9   //
10  
11  
12  package com.atlassian.plugins.rest.doclet.generators.grammars;
13  
14  import com.atlassian.annotations.tenancy.TenantAware;
15  
16  import java.util.ArrayList;
17  import java.util.HashMap;
18  import java.util.List;
19  import java.util.Map;
20  import javax.xml.bind.annotation.XmlAccessType;
21  import javax.xml.bind.annotation.XmlAccessorType;
22  import javax.xml.bind.annotation.XmlAnyAttribute;
23  import javax.xml.bind.annotation.XmlAttribute;
24  import javax.xml.bind.annotation.XmlRootElement;
25  import javax.xml.bind.annotation.XmlSchemaType;
26  import javax.xml.bind.annotation.XmlType;
27  import javax.xml.namespace.QName;
28  
29  import static com.atlassian.annotations.tenancy.TenancyScope.TENANTLESS;
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://research.sun.com/wadl/2006/10}doc" maxOccurs="unbounded" minOccurs="0"/>
43   *       &lt;/sequence>
44   *       &lt;attribute name="href" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
45   *       &lt;anyAttribute processContents='lax' namespace='##other'/>
46   *     &lt;/restriction>
47   *   &lt;/complexContent>
48   * &lt;/complexType>
49   * </pre>
50   */
51  @XmlAccessorType(XmlAccessType.FIELD)
52  @XmlType(name = "", propOrder = {
53          "doc"
54  })
55  @XmlRootElement(name = "include")
56  public class Include {
57  
58      protected List<Doc> doc;
59      @XmlAttribute
60      @XmlSchemaType(name = "anyURI")
61      protected String href;
62      @XmlAnyAttribute
63      @TenantAware(TENANTLESS)
64      private Map<QName, String> otherAttributes = new HashMap<QName, String>();
65  
66      /**
67       * Gets the value of the doc property.
68       *
69       * <p>
70       * This accessor method returns a reference to the live list,
71       * not a snapshot. Therefore any modification you make to the
72       * returned list will be present inside the JAXB object.
73       * This is why there is not a <CODE>set</CODE> method for the doc property.
74       *
75       * <p>
76       * For example, to add a new item, do as follows:
77       * <pre>
78       *    getDoc().add(newItem);
79       * </pre>
80       *
81       *
82       * <p>
83       * Objects of the following type(s) are allowed in the list
84       * {@link Doc }
85       */
86      public List<Doc> getDoc() {
87          if (doc == null) {
88              doc = new ArrayList<Doc>();
89          }
90          return this.doc;
91      }
92  
93      /**
94       * Gets the value of the href property.
95       *
96       * @return possible object is
97       * {@link String }
98       */
99      public String getHref() {
100         return href;
101     }
102 
103     /**
104      * Sets the value of the href property.
105      *
106      * @param value allowed object is
107      *              {@link String }
108      */
109     public void setHref(String value) {
110         this.href = value;
111     }
112 
113     /**
114      * Gets a map that contains attributes that aren't bound to any typed property on this class.
115      *
116      * <p>
117      * the map is keyed by the name of the attribute and
118      * the value is the string value of the attribute.
119      *
120      * the map returned by this method is live, and you can add new attribute
121      * by updating the map directly. Because of this design, there's no setter.
122      *
123      * @return always non-null
124      */
125     public Map<QName, String> getOtherAttributes() {
126         return otherAttributes;
127     }
128 
129 }