Merge OpenFlowJava repository into OpenFlowPlugin
[openflowplugin.git] / openflowjava / openflowjava-tools / src / main / java / org / opendaylight / openflowjava / tools / Configurations.java
1
2 package org.opendaylight.openflowjava.tools;
3
4 import java.util.ArrayList;
5 import java.util.List;
6 import javax.xml.bind.annotation.XmlAccessType;
7 import javax.xml.bind.annotation.XmlAccessorType;
8 import javax.xml.bind.annotation.XmlElement;
9 import javax.xml.bind.annotation.XmlRootElement;
10 import javax.xml.bind.annotation.XmlType;
11
12
13 /**
14  * <p>Java class for anonymous complex type.
15  */
16 @XmlAccessorType(XmlAccessType.FIELD)
17 @XmlType(name = "", propOrder = {
18     "configuration"
19 })
20 @XmlRootElement(name = "configurations")
21 public class Configurations {
22
23     @XmlElement(required = true)
24     private List<ConfigurationType> configuration;
25
26     /**
27      * Gets the value of the configuration property.
28      *
29      * <p>
30      * This accessor method returns a reference to the live list,
31      * not a snapshot. Therefore any modification you make to the
32      * returned list will be present inside the JAXB object.
33      * This is why there is not a <CODE>set</CODE> method for the configuration property.
34      *
35      * <p>
36      * For example, to add a new item, do as follows:
37      * <pre>
38      *    getConfiguration().add(newItem);
39      * </pre>
40      *
41      *
42      * <p>
43      * Objects of the following type(s) are allowed in the list
44      * {@link ConfigurationType }
45      *
46      *
47      */
48     public List<ConfigurationType> getConfiguration() {
49         if (configuration == null) {
50             configuration = new ArrayList<>();
51         }
52         return this.configuration;
53     }
54
55     public void setConfiguration(List<ConfigurationType> configuration) {
56         this.configuration = configuration;
57     }
58 }