Integrate OpenFlowJava into OpenFlowPlugin build
[openflowplugin.git] / samples / simple-client / src / main / java / org / opendaylight / openflowjava / protocol / impl / clients / Step.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.openflowjava.protocol.impl.clients;
9
10 import java.util.ArrayList;
11 import java.util.List;
12 import javax.xml.bind.annotation.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlElement;
15 import javax.xml.bind.annotation.XmlList;
16 import javax.xml.bind.annotation.XmlSchemaType;
17 import javax.xml.bind.annotation.XmlType;
18
19
20 /**
21  * <p>Java class for stepType complex type.
22  */
23 @XmlAccessorType(XmlAccessType.FIELD)
24 @XmlType(name = "step", propOrder = {
25     "order",
26     "name",
27     "event",
28     "bytes"
29 })
30 public class Step {
31
32     protected short order;
33     @XmlElement(required = true)
34     protected String name;
35     @XmlElement(required = true)
36     @XmlSchemaType(name = "string")
37     protected EventType event;
38     @XmlList
39     @XmlElement(type = Short.class)
40     @XmlSchemaType(name = "anySimpleType")
41     protected List<Short> bytes;
42
43     /**
44      * Gets the value of the order property.
45      */
46     public short getOrder() {
47         return order;
48     }
49
50     /**
51      * Sets the value of the order property.
52      */
53     public void setOrder(short value) {
54         this.order = value;
55     }
56
57     /**
58      * Gets the value of the name property.
59      * @return possible object is {@link String }
60      */
61     public String getName() {
62         return name;
63     }
64
65     /**
66      * Sets the value of the name property.
67      * @param value allowed object is {@link String }
68      */
69     public void setName(String value) {
70         this.name = value;
71     }
72
73     /**
74      * Gets the value of the event property.
75      * @return possible object is {@link EventType }
76      */
77     public EventType getEvent() {
78         return event;
79     }
80
81     /**
82      * Sets the value of the event property.
83      * @param value allowed object is {@link EventType }
84      */
85     public void setEvent(EventType value) {
86         this.event = value;
87     }
88
89     /**
90      * Gets the value of the bytes property.
91      *
92      * <p>
93      * This accessor method returns a reference to the live list,
94      * not a snapshot. Therefore any modification you make to the
95      * returned list will be present inside the JAXB object.
96      * This is why there is not a <CODE>set</CODE> method for the bytes property.
97      *
98      * <p>
99      * For example, to add a new item, do as follows:
100      * <pre>
101      *    getBytes().add(newItem);
102      * </pre>
103      * <p>
104      * Objects of the following type(s) are allowed in the list
105      * {@link Short }
106      */
107     public List<Short> getBytes() {
108         if (bytes == null) {
109             bytes = new ArrayList<>();
110         }
111         return this.bytes;
112     }
113
114 }