package org.opendaylight.openflowjava.tools; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "configuration" }) @XmlRootElement(name = "configurations") public class Configurations { @XmlElement(required = true) private List<ConfigurationType> configuration; /** * Gets the value of the configuration property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the configuration property. * * <p> * For example, to add a new item, do as follows: * <pre> * getConfiguration().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ConfigurationType } * * */ public List<ConfigurationType> getConfiguration() { if (configuration == null) { configuration = new ArrayList<>(); } return this.configuration; } public void setConfiguration(List<ConfigurationType> configuration) { this.configuration = configuration; } }