82e15ab57ada9611a9cef78744cd3ba3fda04a66
[openflowjava.git] / simple-client / src / main / java / org / opendaylight / openflowjava / protocol / impl / clients / Step.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.XmlElement;
9 import javax.xml.bind.annotation.XmlList;
10 import javax.xml.bind.annotation.XmlSchemaType;
11 import javax.xml.bind.annotation.XmlType;
12
13
14 /**
15  * <p>Java class for stepType complex type.
16  */
17 @XmlAccessorType(XmlAccessType.FIELD)
18 @XmlType(name = "step", propOrder = {
19     "order",
20     "name",
21     "event",
22     "bytes"
23 })
24 public class Step {
25
26     protected short order;
27     @XmlElement(required = true)
28     protected String name;
29     @XmlElement(required = true)
30     @XmlSchemaType(name = "string")
31     protected EventType event;
32     @XmlList
33     @XmlElement(type = Short.class)
34     @XmlSchemaType(name = "anySimpleType")
35     protected List<Short> bytes;
36
37     /**
38      * Gets the value of the order property.
39      */
40     public short getOrder() {
41         return order;
42     }
43
44     /**
45      * Sets the value of the order property.
46      */
47     public void setOrder(short value) {
48         this.order = value;
49     }
50
51     /**
52      * Gets the value of the name property.
53      * @return possible object is {@link String }
54      */
55     public String getName() {
56         return name;
57     }
58
59     /**
60      * Sets the value of the name property.
61      * @param value allowed object is {@link String }
62      */
63     public void setName(String value) {
64         this.name = value;
65     }
66
67     /**
68      * Gets the value of the event property.
69      * @return possible object is {@link EventType }
70      */
71     public EventType getEvent() {
72         return event;
73     }
74
75     /**
76      * Sets the value of the event property.
77      * @param value allowed object is {@link EventType }
78      */
79     public void setEvent(EventType value) {
80         this.event = value;
81     }
82
83     /**
84      * Gets the value of the bytes property.
85      * 
86      * <p>
87      * This accessor method returns a reference to the live list,
88      * not a snapshot. Therefore any modification you make to the
89      * returned list will be present inside the JAXB object.
90      * This is why there is not a <CODE>set</CODE> method for the bytes property.
91      * 
92      * <p>
93      * For example, to add a new item, do as follows:
94      * <pre>
95      *    getBytes().add(newItem);
96      * </pre>
97      * <p>
98      * Objects of the following type(s) are allowed in the list
99      * {@link Short }
100      */
101     public List<Short> getBytes() {
102         if (bytes == null) {
103             bytes = new ArrayList<>();
104         }
105         return this.bytes;
106     }
107
108 }