001
002 package org.apache.camel.pizza.types;
003
004 import java.util.ArrayList;
005 import java.util.List;
006 import javax.xml.bind.annotation.XmlAccessType;
007 import javax.xml.bind.annotation.XmlAccessorType;
008 import javax.xml.bind.annotation.XmlElement;
009 import javax.xml.bind.annotation.XmlType;
010
011
012 /**
013 * <p>Java class for ToppingsListType complex type.
014 *
015 * <p>The following schema fragment specifies the expected content contained within this class.
016 *
017 * <pre>
018 * <complexType name="ToppingsListType">
019 * <complexContent>
020 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
021 * <sequence>
022 * <element name="Topping" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
023 * </sequence>
024 * </restriction>
025 * </complexContent>
026 * </complexType>
027 * </pre>
028 *
029 *
030 */
031 @XmlAccessorType(XmlAccessType.FIELD)
032 @XmlType(name = "ToppingsListType", propOrder = {
033 "topping"
034 })
035 public class ToppingsListType {
036
037 @XmlElement(name = "Topping")
038 protected List<String> topping;
039
040 /**
041 * Gets the value of the topping property.
042 *
043 * <p>
044 * This accessor method returns a reference to the live list,
045 * not a snapshot. Therefore any modification you make to the
046 * returned list will be present inside the JAXB object.
047 * This is why there is not a <CODE>set</CODE> method for the topping property.
048 *
049 * <p>
050 * For example, to add a new item, do as follows:
051 * <pre>
052 * getTopping().add(newItem);
053 * </pre>
054 *
055 *
056 * <p>
057 * Objects of the following type(s) are allowed in the list
058 * {@link String }
059 *
060 *
061 */
062 public List<String> getTopping() {
063 if (topping == null) {
064 topping = new ArrayList<String>();
065 }
066 return this.topping;
067 }
068
069 }