![JAR search and dependency download from the Maven repository](/logo.png)
io.apicurio.datamodels.models.asyncapi.v30.AsyncApi30OperationTraitImpl Maven / Gradle / Ivy
package io.apicurio.datamodels.models.asyncapi.v30;
import com.fasterxml.jackson.databind.JsonNode;
import io.apicurio.datamodels.models.Node;
import io.apicurio.datamodels.models.NodeImpl;
import io.apicurio.datamodels.models.asyncapi.AsyncApiExternalDocumentation;
import io.apicurio.datamodels.models.asyncapi.AsyncApiOperationBindings;
import io.apicurio.datamodels.models.asyncapi.AsyncApiTag;
import io.apicurio.datamodels.models.asyncapi.v30.visitors.AsyncApi30Visitor;
import io.apicurio.datamodels.models.visitors.Visitor;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
public class AsyncApi30OperationTraitImpl extends NodeImpl implements AsyncApi30OperationTrait {
private String $ref;
private String title;
private String summary;
private String description;
private List security;
private List tags;
private AsyncApiExternalDocumentation externalDocs;
private AsyncApiOperationBindings bindings;
private Map extensions;
@Override
public String get$ref() {
return $ref;
}
@Override
public void set$ref(String value) {
this.$ref = value;
}
@Override
public String getTitle() {
return title;
}
@Override
public void setTitle(String value) {
this.title = value;
}
@Override
public String getSummary() {
return summary;
}
@Override
public void setSummary(String value) {
this.summary = value;
}
@Override
public String getDescription() {
return description;
}
@Override
public void setDescription(String value) {
this.description = value;
}
@Override
public AsyncApi30SecurityScheme createSecurityScheme() {
AsyncApi30SecuritySchemeImpl node = new AsyncApi30SecuritySchemeImpl();
node.setParent(this);
return node;
}
@Override
public List getSecurity() {
return security;
}
@Override
public void addSecurity(AsyncApi30SecurityScheme value) {
if (this.security == null) {
this.security = new ArrayList<>();
}
this.security.add(value);
}
@Override
public void clearSecurity() {
if (this.security != null) {
this.security.clear();
}
}
@Override
public void removeSecurity(AsyncApi30SecurityScheme value) {
if (this.security != null) {
this.security.remove(value);
}
}
@Override
public AsyncApi30Tag createTag() {
AsyncApi30TagImpl node = new AsyncApi30TagImpl();
node.setParent(this);
return node;
}
@Override
public List getTags() {
return tags;
}
@Override
public void addTag(AsyncApiTag value) {
if (this.tags == null) {
this.tags = new ArrayList<>();
}
this.tags.add(value);
}
@Override
public void clearTags() {
if (this.tags != null) {
this.tags.clear();
}
}
@Override
public void removeTag(AsyncApiTag value) {
if (this.tags != null) {
this.tags.remove(value);
}
}
@Override
public AsyncApiExternalDocumentation getExternalDocs() {
return externalDocs;
}
@Override
public void setExternalDocs(AsyncApiExternalDocumentation value) {
this.externalDocs = value;
}
@Override
public AsyncApi30ExternalDocumentation createExternalDocumentation() {
AsyncApi30ExternalDocumentationImpl node = new AsyncApi30ExternalDocumentationImpl();
node.setParent(this);
return node;
}
@Override
public AsyncApiOperationBindings getBindings() {
return bindings;
}
@Override
public void setBindings(AsyncApiOperationBindings value) {
this.bindings = value;
}
@Override
public AsyncApi30OperationBindings createOperationBindings() {
AsyncApi30OperationBindingsImpl node = new AsyncApi30OperationBindingsImpl();
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) {
AsyncApi30Visitor viz = (AsyncApi30Visitor) visitor;
viz.visitOperationTrait(this);
}
@Override
public Node emptyClone() {
return new AsyncApi30OperationTraitImpl();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy