OPNFLWPLUG-1032: Neon-MRI: Bump odlparent, yangtools, mdsal
[openflowplugin.git] / samples / simple-client / src / main / java / org / opendaylight / openflowjava / protocol / impl / clients / Scenarios.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.XmlRootElement;
16 import javax.xml.bind.annotation.XmlType;
17
18
19 /**
20  * Java class for anonymous complex type.
21  */
22 @XmlAccessorType(XmlAccessType.FIELD)
23 @XmlType(name = "", propOrder = {
24     "scenario"
25     })
26 @XmlRootElement(name = "scenarios")
27 public class Scenarios {
28
29     @XmlElement(required = true)
30     protected List<Scenario> scenario;
31
32     /**
33      * Gets the value of the scenario property.
34      *
35      * <p>
36      * This accessor method returns a reference to the live list,
37      * not a snapshot. Therefore any modification you make to the
38      * returned list will be present inside the JAXB object.
39      * This is why there is not a <CODE>set</CODE> method for the scenario property.
40      *
41      * <p>
42      * For example, to add a new item, do as follows:
43      * <pre>
44      *    getScenario().add(newItem);
45      * </pre>
46      *
47      * <p>
48      * Objects of the following type(s) are allowed in the list
49      * {@link Scenario }
50      */
51     public List<Scenario> getScenario() {
52         if (scenario == null) {
53             scenario = new ArrayList<>();
54         }
55         return this.scenario;
56     }
57
58 }