View Javadoc

1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-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: 2008.07.04 at 11:56:00 PM CEST 
6   //
7   
8   
9   package org.springframework.ws.samples.airline.schema;
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.XmlElement;
16  import javax.xml.bind.annotation.XmlType;
17  import javax.xml.datatype.XMLGregorianCalendar;
18  
19  
20  /**
21   * <p>Java class for Ticket complex type.
22   * 
23   * <p>The following schema fragment specifies the expected content contained within this class.
24   * 
25   * <pre>
26   * &lt;complexType name="Ticket">
27   *   &lt;complexContent>
28   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29   *       &lt;all>
30   *         &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}long"/>
31   *         &lt;element name="issueDate" type="{http://www.w3.org/2001/XMLSchema}date"/>
32   *         &lt;element name="passengers">
33   *           &lt;complexType>
34   *             &lt;complexContent>
35   *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
36   *                 &lt;sequence>
37   *                   &lt;element name="passenger" type="{http://www.springframework.org/spring-ws/samples/airline/schemas/types}Name" maxOccurs="9"/>
38   *                 &lt;/sequence>
39   *               &lt;/restriction>
40   *             &lt;/complexContent>
41   *           &lt;/complexType>
42   *         &lt;/element>
43   *         &lt;element name="flight" type="{http://www.springframework.org/spring-ws/samples/airline/schemas/types}Flight"/>
44   *       &lt;/all>
45   *     &lt;/restriction>
46   *   &lt;/complexContent>
47   * &lt;/complexType>
48   * </pre>
49   * 
50   * 
51   */
52  @XmlAccessorType(XmlAccessType.FIELD)
53  @XmlType(name = "Ticket", propOrder = {
54  
55  })
56  public class Ticket {
57  
58      protected long id;
59      @XmlElement(required = true)
60      protected XMLGregorianCalendar issueDate;
61      @XmlElement(required = true)
62      protected Ticket.Passengers passengers;
63      @XmlElement(required = true)
64      protected Flight flight;
65  
66      /**
67       * Gets the value of the id property.
68       * 
69       */
70      public long getId() {
71          return id;
72      }
73  
74      /**
75       * Sets the value of the id property.
76       * 
77       */
78      public void setId(long value) {
79          this.id = value;
80      }
81  
82      /**
83       * Gets the value of the issueDate property.
84       * 
85       * @return
86       *     possible object is
87       *     {@link XMLGregorianCalendar }
88       *     
89       */
90      public XMLGregorianCalendar getIssueDate() {
91          return issueDate;
92      }
93  
94      /**
95       * Sets the value of the issueDate property.
96       * 
97       * @param value
98       *     allowed object is
99       *     {@link XMLGregorianCalendar }
100      *     
101      */
102     public void setIssueDate(XMLGregorianCalendar value) {
103         this.issueDate = value;
104     }
105 
106     /**
107      * Gets the value of the passengers property.
108      * 
109      * @return
110      *     possible object is
111      *     {@link Ticket.Passengers }
112      *     
113      */
114     public Ticket.Passengers getPassengers() {
115         return passengers;
116     }
117 
118     /**
119      * Sets the value of the passengers property.
120      * 
121      * @param value
122      *     allowed object is
123      *     {@link Ticket.Passengers }
124      *     
125      */
126     public void setPassengers(Ticket.Passengers value) {
127         this.passengers = value;
128     }
129 
130     /**
131      * Gets the value of the flight property.
132      * 
133      * @return
134      *     possible object is
135      *     {@link Flight }
136      *     
137      */
138     public Flight getFlight() {
139         return flight;
140     }
141 
142     /**
143      * Sets the value of the flight property.
144      * 
145      * @param value
146      *     allowed object is
147      *     {@link Flight }
148      *     
149      */
150     public void setFlight(Flight value) {
151         this.flight = value;
152     }
153 
154 
155     /**
156      * <p>Java class for anonymous complex type.
157      * 
158      * <p>The following schema fragment specifies the expected content contained within this class.
159      * 
160      * <pre>
161      * &lt;complexType>
162      *   &lt;complexContent>
163      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
164      *       &lt;sequence>
165      *         &lt;element name="passenger" type="{http://www.springframework.org/spring-ws/samples/airline/schemas/types}Name" maxOccurs="9"/>
166      *       &lt;/sequence>
167      *     &lt;/restriction>
168      *   &lt;/complexContent>
169      * &lt;/complexType>
170      * </pre>
171      * 
172      * 
173      */
174     @XmlAccessorType(XmlAccessType.FIELD)
175     @XmlType(name = "", propOrder = {
176         "passenger"
177     })
178     public static class Passengers {
179 
180         @XmlElement(required = true)
181         protected List<Name> passenger;
182 
183         /**
184          * Gets the value of the passenger property.
185          * 
186          * <p>
187          * This accessor method returns a reference to the live list,
188          * not a snapshot. Therefore any modification you make to the
189          * returned list will be present inside the JAXB object.
190          * This is why there is not a <CODE>set</CODE> method for the passenger property.
191          * 
192          * <p>
193          * For example, to add a new item, do as follows:
194          * <pre>
195          *    getPassenger().add(newItem);
196          * </pre>
197          * 
198          * 
199          * <p>
200          * Objects of the following type(s) are allowed in the list
201          * {@link Name }
202          * 
203          * 
204          */
205         public List<Name> getPassenger() {
206             if (passenger == null) {
207                 passenger = new ArrayList<Name>();
208             }
209             return this.passenger;
210         }
211 
212     }
213 
214 }