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.XmlRootElement; 17 import javax.xml.bind.annotation.XmlType; 18 19 20 /** 21 * <p>Java class for anonymous complex type. 22 * 23 * <p>The following schema fragment specifies the expected content contained within this class. 24 * 25 * <pre> 26 * <complexType> 27 * <complexContent> 28 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 29 * <sequence> 30 * <element name="flight" type="{http://www.springframework.org/spring-ws/samples/airline/schemas/types}Flight" maxOccurs="unbounded" minOccurs="0"/> 31 * </sequence> 32 * </restriction> 33 * </complexContent> 34 * </complexType> 35 * </pre> 36 * 37 * 38 */ 39 @XmlAccessorType(XmlAccessType.FIELD) 40 @XmlType(name = "", propOrder = { 41 "flight" 42 }) 43 @XmlRootElement(name = "GetFlightsResponse", namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas/messages") 44 public class GetFlightsResponse { 45 46 @XmlElement(namespace = "http://www.springframework.org/spring-ws/samples/airline/schemas/messages") 47 protected List<Flight> flight; 48 49 /** 50 * Gets the value of the flight property. 51 * 52 * <p> 53 * This accessor method returns a reference to the live list, 54 * not a snapshot. Therefore any modification you make to the 55 * returned list will be present inside the JAXB object. 56 * This is why there is not a <CODE>set</CODE> method for the flight property. 57 * 58 * <p> 59 * For example, to add a new item, do as follows: 60 * <pre> 61 * getFlight().add(newItem); 62 * </pre> 63 * 64 * 65 * <p> 66 * Objects of the following type(s) are allowed in the list 67 * {@link Flight } 68 * 69 * 70 */ 71 public List<Flight> getFlight() { 72 if (flight == null) { 73 flight = new ArrayList<Flight>(); 74 } 75 return this.flight; 76 } 77 78 }