1 /* 2 * $Id: ArrayOfForecast.java 21856 2011-05-09 09:59:16Z dirk.olmes $ 3 * -------------------------------------------------------------------------------------- 4 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com 5 * 6 * The software in this package is published under the terms of the CPAL v1.0 7 * license, a copy of which has been included with this distribution in the 8 * LICENSE.txt file. 9 */ 10 11 package org.mule.cxf.weatherservice.myweather; 12 13 import java.util.ArrayList; 14 import java.util.List; 15 16 import javax.xml.bind.annotation.XmlAccessType; 17 import javax.xml.bind.annotation.XmlAccessorType; 18 import javax.xml.bind.annotation.XmlElement; 19 import javax.xml.bind.annotation.XmlType; 20 21 22 /** 23 * <p>Java class for ArrayOfForecast complex type. 24 * 25 * <p>The following schema fragment specifies the expected content contained within this class. 26 * 27 * <pre> 28 * <complexType name="ArrayOfForecast"> 29 * <complexContent> 30 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 31 * <sequence> 32 * <element name="Forecast" type="{http://ws.cdyne.com/WeatherWS/}Forecast" maxOccurs="unbounded" minOccurs="0"/> 33 * </sequence> 34 * </restriction> 35 * </complexContent> 36 * </complexType> 37 * </pre> 38 * 39 * 40 */ 41 @XmlAccessorType(XmlAccessType.FIELD) 42 @XmlType(name = "ArrayOfForecast", namespace = "http://ws.cdyne.com/WeatherWS/", propOrder = { 43 "forecast" 44 }) 45 public class ArrayOfForecast { 46 47 @XmlElement(name = "Forecast", namespace = "http://ws.cdyne.com/WeatherWS/", nillable = true) 48 protected List<Forecast> forecast; 49 50 /** 51 * Gets the value of the forecast property. 52 * 53 * <p> 54 * This accessor method returns a reference to the live list, 55 * not a snapshot. Therefore any modification you make to the 56 * returned list will be present inside the JAXB object. 57 * This is why there is not a <CODE>set</CODE> method for the forecast property. 58 * 59 * <p> 60 * For example, to add a new item, do as follows: 61 * <pre> 62 * getForecast().add(newItem); 63 * </pre> 64 * 65 * 66 * <p> 67 * Objects of the following type(s) are allowed in the list 68 * {@link Forecast } 69 * 70 * 71 */ 72 public List<Forecast> getForecast() { 73 if (forecast == null) { 74 forecast = new ArrayList<Forecast>(); 75 } 76 return this.forecast; 77 } 78 79 }