io.apicurio.datamodels.models.openapi.v20.OpenApi20SecuritySchemeImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apicurio-data-models Show documentation
Show all versions of apicurio-data-models Show documentation
Open Source API Design Studio
The newest version!
package io.apicurio.datamodels.models.openapi.v20;
import com.fasterxml.jackson.databind.JsonNode;
import io.apicurio.datamodels.models.Node;
import io.apicurio.datamodels.models.NodeImpl;
import io.apicurio.datamodels.models.openapi.v20.visitors.OpenApi20Visitor;
import io.apicurio.datamodels.models.visitors.Visitor;
import java.util.LinkedHashMap;
import java.util.Map;
public class OpenApi20SecuritySchemeImpl extends NodeImpl implements OpenApi20SecurityScheme {
private String type;
private String description;
private String name;
private String in;
private String flow;
private String authorizationUrl;
private String tokenUrl;
private OpenApi20Scopes scopes;
private Map extensions;
@Override
public String getType() {
return type;
}
@Override
public void setType(String value) {
this.type = value;
}
@Override
public String getDescription() {
return description;
}
@Override
public void setDescription(String value) {
this.description = value;
}
@Override
public String getName() {
return name;
}
@Override
public void setName(String value) {
this.name = value;
}
@Override
public String getIn() {
return in;
}
@Override
public void setIn(String value) {
this.in = value;
}
@Override
public String getFlow() {
return flow;
}
@Override
public void setFlow(String value) {
this.flow = value;
}
@Override
public String getAuthorizationUrl() {
return authorizationUrl;
}
@Override
public void setAuthorizationUrl(String value) {
this.authorizationUrl = value;
}
@Override
public String getTokenUrl() {
return tokenUrl;
}
@Override
public void setTokenUrl(String value) {
this.tokenUrl = value;
}
@Override
public OpenApi20Scopes getScopes() {
return scopes;
}
@Override
public void setScopes(OpenApi20Scopes value) {
this.scopes = value;
}
@Override
public OpenApi20Scopes createScopes() {
OpenApi20ScopesImpl node = new OpenApi20ScopesImpl();
node.setParent(this);
return node;
}
@Override
public Map getExtensions() {
return extensions;
}
@Override
public void addExtension(String name, JsonNode value) {
if (this.extensions == null) {
this.extensions = new LinkedHashMap<>();
}
this.extensions.put(name, value);
}
@Override
public void clearExtensions() {
if (this.extensions != null) {
this.extensions.clear();
}
}
@Override
public void removeExtension(String name) {
if (this.extensions != null) {
this.extensions.remove(name);
}
}
@Override
public void accept(Visitor visitor) {
OpenApi20Visitor viz = (OpenApi20Visitor) visitor;
viz.visitSecurityScheme(this);
}
@Override
public Node emptyClone() {
return new OpenApi20SecuritySchemeImpl();
}
}