org.opendaylight.openflowjava.protocol.impl.clients.Scenario Maven / Gradle / Ivy
/*
* Copyright (c) 2017 Pantheon Technologies s.r.o. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.openflowjava.protocol.impl.clients;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for scenarioType complex type.
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "scenario", propOrder = {
"step"
})
public class Scenario {
@XmlElement(required = true)
protected List step;
@XmlAttribute(name = "name", required = true)
protected String name;
/**
* Gets the value of the step property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the step property.
*
*
* For example, to add a new item, do as follows:
*
* getStep().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Step }
*
*
*/
public List getStep() {
if (step == null) {
step = new ArrayList<>();
}
return this.step;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
}