View Javadoc

1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs 
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: 2007.09.26 at 09:37:45 PM IST 
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   * &lt;element name="menu">
29   *   &lt;complexType>
30   *     &lt;complexContent>
31   *       &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
32   *         &lt;sequence maxOccurs="unbounded" minOccurs="0">
33   *           &lt;element name="menuitem">
34   *             &lt;complexType>
35   *               &lt;complexContent>
36   *                 &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
37   *                   &lt;attribute name="src" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
38   *                   &lt;attribute name="title" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
39   *                 &lt;/restriction>
40   *               &lt;/complexContent>
41   *             &lt;/complexType>
42   *           &lt;/element>
43   *         &lt;/sequence>
44   *         &lt;attribute name="title" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
45   *       &lt;/restriction>
46   *     &lt;/complexContent>
47   *   &lt;/complexType>
48   * &lt;/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      * &lt;complexType>
126      *   &lt;complexContent>
127      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
128      *       &lt;attribute name="src" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
129      *       &lt;attribute name="title" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
130      *     &lt;/restriction>
131      *   &lt;/complexContent>
132      * &lt;/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 }