f11890ba53fc6abf9167e2bcd788b4118708c64e
[openflowjava.git] / simple-client / src / main / java / org / opendaylight / openflowjava / protocol / impl / clients / Scenario.java
1
2 package org.opendaylight.openflowjava.protocol.impl.clients;
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.XmlAttribute;
9 import javax.xml.bind.annotation.XmlElement;
10 import javax.xml.bind.annotation.XmlType;
11
12
13 /**
14  * <p>Java class for scenarioType complex type.
15  */
16 @XmlAccessorType(XmlAccessType.FIELD)
17 @XmlType(name = "scenario", propOrder = {
18     "step"
19 })
20 public class Scenario {
21
22     @XmlElement(required = true)
23     protected List<Step> step;
24     @XmlAttribute(name = "name", required = true)
25     protected String name;
26
27     /**
28      * Gets the value of the step property.
29      * 
30      * <p>
31      * This accessor method returns a reference to the live list,
32      * not a snapshot. Therefore any modification you make to the
33      * returned list will be present inside the JAXB object.
34      * This is why there is not a <CODE>set</CODE> method for the step property.
35      * 
36      * <p>
37      * For example, to add a new item, do as follows:
38      * <pre>
39      *    getStep().add(newItem);
40      * </pre>
41      * 
42      * 
43      * <p>
44      * Objects of the following type(s) are allowed in the list
45      * {@link Step }
46      * 
47      * 
48      */
49     public List<Step> getStep() {
50         if (step == null) {
51             step = new ArrayList<>();
52         }
53         return this.step;
54     }
55
56     /**
57      * Gets the value of the name property.
58      * 
59      * @return
60      *     possible object is
61      *     {@link String }
62      *     
63      */
64     public String getName() {
65         return name;
66     }
67
68     /**
69      * Sets the value of the name property.
70      * 
71      * @param value
72      *     allowed object is
73      *     {@link String }
74      *     
75      */
76     public void setName(String value) {
77         this.name = value;
78     }
79
80 }