com.devonfw.cobigen.openapiplugin.model.PathDef Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapiplugin-model Show documentation
Show all versions of openapiplugin-model Show documentation
A Code-based incremental Generator
package com.devonfw.cobigen.openapiplugin.model;
import java.util.LinkedList;
import java.util.List;
/**
*
*/
@SuppressWarnings("javadoc")
public class PathDef {
private String rootComponent;
private String pathURI;
private String version;
private List operations;
public PathDef(String pathURI, String version) {
this.version = version;
this.pathURI = pathURI;
operations = new LinkedList<>();
}
public PathDef(String rootComponent, String pathURI, String version) {
this(pathURI, version);
this.rootComponent = rootComponent;
}
public PathDef() {
version = "v1";
}
public String getRootComponent() {
return rootComponent;
}
public void setRootComponent(String rootComponent) {
this.rootComponent = rootComponent;
}
public String getPathURI() {
return pathURI;
}
public void setPathURI(String pathURI) {
this.pathURI = pathURI;
}
public List getOperations() {
return operations;
}
public void setOperations(List operations) {
this.operations = operations;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
}