1
2
3
4
5
6
7
8
9 package org.xmlhammer.model.preferences;
10
11 import java.util.ArrayList;
12 import java.util.List;
13 import javax.xml.bind.annotation.XmlAccessType;
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlAttribute;
16 import javax.xml.bind.annotation.XmlElement;
17 import javax.xml.bind.annotation.XmlRootElement;
18 import javax.xml.bind.annotation.XmlType;
19 import org.xmlhammer.model.preferences.Menu.Menuitem;
20
21
22 /***
23 * <p>Java class for menu element declaration.
24 *
25 * <p>The following schema fragment specifies the expected content contained within this class.
26 *
27 * <pre>
28 * <element name="menu">
29 * <complexType>
30 * <complexContent>
31 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
32 * <sequence maxOccurs="unbounded" minOccurs="0">
33 * <element name="menuitem">
34 * <complexType>
35 * <complexContent>
36 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
37 * <attribute name="src" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
38 * <attribute name="title" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
39 * </restriction>
40 * </complexContent>
41 * </complexType>
42 * </element>
43 * </sequence>
44 * <attribute name="title" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
45 * </restriction>
46 * </complexContent>
47 * </complexType>
48 * </element>
49 * </pre>
50 *
51 *
52 */
53 @XmlAccessorType(XmlAccessType.FIELD)
54 @XmlType(name = "", propOrder = {
55 "menuitem"
56 })
57 @XmlRootElement(name = "menu")
58 public class Menu {
59
60 @XmlElement(namespace = "http://www.xmlhammer.org/2007/preferences", required = true)
61 protected List<Menuitem> menuitem;
62 @XmlAttribute(required = true)
63 protected String title;
64
65 /***
66 * Gets the value of the menuitem property.
67 *
68 * <p>
69 * This accessor method returns a reference to the live list,
70 * not a snapshot. Therefore any modification you make to the
71 * returned list will be present inside the JAXB object.
72 * This is why there is not a <CODE>set</CODE> method for the menuitem property.
73 *
74 * <p>
75 * For example, to add a new item, do as follows:
76 * <pre>
77 * getMenuitem().add(newItem);
78 * </pre>
79 *
80 *
81 * <p>
82 * Objects of the following type(s) are allowed in the list
83 * {@link Menuitem }
84 *
85 *
86 */
87 public List<Menuitem> getMenuitem() {
88 if (menuitem == null) {
89 menuitem = new ArrayList<Menuitem>();
90 }
91 return this.menuitem;
92 }
93
94 /***
95 * Gets the value of the title property.
96 *
97 * @return
98 * possible object is
99 * {@link String }
100 *
101 */
102 public String getTitle() {
103 return title;
104 }
105
106 /***
107 * Sets the value of the title property.
108 *
109 * @param value
110 * allowed object is
111 * {@link String }
112 *
113 */
114 public void setTitle(String value) {
115 this.title = value;
116 }
117
118
119 /***
120 * <p>Java class for anonymous complex type.
121 *
122 * <p>The following schema fragment specifies the expected content contained within this class.
123 *
124 * <pre>
125 * <complexType>
126 * <complexContent>
127 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
128 * <attribute name="src" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
129 * <attribute name="title" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
130 * </restriction>
131 * </complexContent>
132 * </complexType>
133 * </pre>
134 *
135 *
136 */
137 @XmlAccessorType(XmlAccessType.FIELD)
138 @XmlType(name = "")
139 public static class Menuitem {
140
141 @XmlAttribute(required = true)
142 protected String src;
143 @XmlAttribute(required = true)
144 protected String title;
145
146 /***
147 * Gets the value of the src property.
148 *
149 * @return
150 * possible object is
151 * {@link String }
152 *
153 */
154 public String getSrc() {
155 return src;
156 }
157
158 /***
159 * Sets the value of the src property.
160 *
161 * @param value
162 * allowed object is
163 * {@link String }
164 *
165 */
166 public void setSrc(String value) {
167 this.src = value;
168 }
169
170 /***
171 * Gets the value of the title property.
172 *
173 * @return
174 * possible object is
175 * {@link String }
176 *
177 */
178 public String getTitle() {
179 return title;
180 }
181
182 /***
183 * Sets the value of the title property.
184 *
185 * @param value
186 * allowed object is
187 * {@link String }
188 *
189 */
190 public void setTitle(String value) {
191 this.title = value;
192 }
193
194 }
195
196 }