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