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