org.opentcs.util.persistence.v6.VehicleEnvelopeTO Maven / Gradle / Ivy
The newest version!
// SPDX-FileCopyrightText: The openTCS Authors
// SPDX-License-Identifier: MIT
package org.opentcs.util.persistence.v6;
import static java.util.Objects.requireNonNull;
import jakarta.annotation.Nonnull;
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;
/**
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(propOrder = {"key", "vertices"})
public class VehicleEnvelopeTO {
private String key;
private List vertices;
public VehicleEnvelopeTO() {
}
public String getKey() {
return key;
}
@XmlAttribute
public VehicleEnvelopeTO setKey(
@Nonnull
String key
) {
this.key = requireNonNull(key, "key");
return this;
}
@XmlElement(name = "vertex")
public List getVertices() {
return vertices;
}
public VehicleEnvelopeTO setVertices(
@Nonnull
List vertices
) {
this.vertices = requireNonNull(vertices, "vertices");
return this;
}
}