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