com.networknt.oas.model.impl.PathImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-parser Show documentation
Show all versions of openapi-parser Show documentation
A light-weight, fast OpenAPI 3.0 parser and validator
package com.networknt.oas.model.impl;
import com.fasterxml.jackson.databind.JsonNode;
import com.networknt.oas.jsonoverlay.*;
import com.networknt.oas.model.*;
import java.util.Collection;
import java.util.Map;
public class PathImpl extends OpenApiObjectImpl implements Path {
@Override
public Operation getGet() {
return operations.get("get");
}
@Override
public Operation getGet(boolean elaborate) {
return operations.get("get").get(elaborate);
}
@Override
public void setGet(Operation get) {
operations.set("get", (OperationImpl) get);
}
@Override
public Operation getPut() {
return operations.get("put");
}
@Override
public Operation getPut(boolean elaborate) {
return operations.get("put").get(elaborate);
}
@Override
public void setPut(Operation put) {
operations.set("put", (OperationImpl) put);
}
@Override
public Operation getPost() {
return operations.get("post");
}
@Override
public Operation getPost(boolean elaborate) {
return operations.get("post").get(elaborate);
}
@Override
public void setPost(Operation post) {
operations.set("post", (OperationImpl) post);
}
@Override
public Operation getDelete() {
return operations.get("delete");
}
@Override
public Operation getDelete(boolean elaborate) {
return operations.get("delete").get(elaborate);
}
@Override
public void setDelete(Operation delete) {
operations.set("delete", (OperationImpl) delete);
}
@Override
public Operation getOptions() {
return operations.get("options");
}
@Override
public Operation getOptions(boolean elaborate) {
return operations.get("options").get(elaborate);
}
@Override
public void setOptions(Operation options) {
operations.set("options", (OperationImpl) options);
}
@Override
public Operation getHead() {
return operations.get("head");
}
@Override
public Operation getHead(boolean elaborate) {
return operations.get("head").get(elaborate);
}
@Override
public void setHead(Operation head) {
operations.set("head", (OperationImpl) head);
}
@Override
public Operation getPatch() {
return operations.get("patch");
}
@Override
public Operation getPatch(boolean elaborate) {
return operations.get("patch").get(elaborate);
}
@Override
public void setPatch(Operation patch) {
operations.set("patch", (OperationImpl) patch);
}
@Override
public Operation getTrace() {
return operations.get("trace");
}
@Override
public Operation getTrace(boolean elaborate) {
return operations.get("trace").get(elaborate);
}
@Override
public void setTrace(Operation trace) {
operations.set("trace", (OperationImpl) trace);
}
public PathImpl(JsonNode json, JsonOverlay> parent, ReferenceRegistry refReg) {
super(json, parent, refReg);
super.maybeElaborateChildrenAtCreation();
}
public PathImpl(Path path, JsonOverlay> parent, ReferenceRegistry refReg) {
super(path, parent, refReg);
super.maybeElaborateChildrenAtCreation();
}
private ChildOverlay summary = null;
private ChildOverlay description = null;
private ChildMapOverlay operations = null;
private ChildListOverlay servers = null;
private ChildListOverlay parameters = null;
private ChildMapOverlay
© 2015 - 2025 Weber Informatics LLC | Privacy Policy