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 java.util.ArrayList;
15  import java.util.HashMap;
16  import java.util.List;
17  import java.util.Map;
18  import javax.xml.bind.annotation.XmlAccessType;
19  import javax.xml.bind.annotation.XmlAccessorType;
20  import javax.xml.bind.annotation.XmlAnyAttribute;
21  import javax.xml.bind.annotation.XmlAnyElement;
22  import javax.xml.bind.annotation.XmlAttribute;
23  import javax.xml.bind.annotation.XmlMixed;
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.bind.annotation.adapters.CollapsedStringAdapter;
28  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
29  import javax.xml.namespace.QName;
30  
31  import com.atlassian.annotations.tenancy.TenantAware;
32  import org.w3c.dom.Element;
33  
34  import static com.atlassian.annotations.tenancy.TenancyScope.TENANTLESS;
35  
36  
37  /**
38   * <p>Java class for anonymous complex type.
39   *
40   * <p>The following schema fragment specifies the expected content contained within this class.
41   *
42   * <pre>
43   * &lt;complexType>
44   *   &lt;complexContent>
45   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
46   *       &lt;sequence>
47   *         &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
48   *       &lt;/sequence>
49   *       &lt;attribute name="title" type="{http://www.w3.org/2001/XMLSchema}string" />
50   *       &lt;attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
51   *       &lt;anyAttribute processContents='lax' namespace='##other'/>
52   *     &lt;/restriction>
53   *   &lt;/complexContent>
54   * &lt;/complexType>
55   * </pre>
56   */
57  @XmlAccessorType(XmlAccessType.FIELD)
58  @XmlType(name = "", propOrder = {
59          "content"
60  })
61  @XmlRootElement(name = "doc")
62  public class Doc {
63  
64      @XmlMixed
65      @XmlAnyElement(lax = true)
66      protected List<Object> content;
67      @XmlAttribute
68      protected String title;
69      @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
70      @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
71      @XmlSchemaType(name = "language")
72      protected String lang;
73      @XmlAnyAttribute
74      @TenantAware(TENANTLESS)
75      private Map<QName, String> otherAttributes = new HashMap<>();
76  
77      /**
78       * Gets the value of the content property.
79       *
80       * <p>
81       * This accessor method returns a reference to the live list,
82       * not a snapshot. Therefore any modification you make to the
83       * returned list will be present inside the JAXB object.
84       * This is why there is not a <CODE>set</CODE> method for the content property.
85       *
86       * <p>
87       * For example, to add a new item, do as follows:
88       * <pre>
89       *    getContent().add(newItem);
90       * </pre>
91       *
92       *
93       * <p>
94       * Objects of the following type(s) are allowed in the list
95       * {@link Element }
96       * {@link String }
97       * {@link Object }
98       */
99      public List<Object> getContent() {
100         if (content == null) {
101             content = new ArrayList<Object>();
102         }
103         return this.content;
104     }
105 
106     /**
107      * Gets the value of the title property.
108      *
109      * @return possible object is
110      * {@link String }
111      */
112     public String getTitle() {
113         return title;
114     }
115 
116     /**
117      * Sets the value of the title property.
118      *
119      * @param value allowed object is
120      *              {@link String }
121      */
122     public void setTitle(String value) {
123         this.title = value;
124     }
125 
126     /**
127      * Gets the value of the lang property.
128      *
129      * @return possible object is
130      * {@link String }
131      */
132     public String getLang() {
133         return lang;
134     }
135 
136     /**
137      * Sets the value of the lang property.
138      *
139      * @param value allowed object is
140      *              {@link String }
141      */
142     public void setLang(String value) {
143         this.lang = value;
144     }
145 
146     /**
147      * Gets a map that contains attributes that aren't bound to any typed property on this class.
148      *
149      * <p>
150      * the map is keyed by the name of the attribute and
151      * the value is the string value of the attribute.
152      *
153      * the map returned by this method is live, and you can add new attribute
154      * by updating the map directly. Because of this design, there's no setter.
155      *
156      * @return always non-null
157      */
158     public Map<QName, String> getOtherAttributes() {
159         return otherAttributes;
160     }
161 
162 }