io.apicurio.datamodels.models.asyncapi.v24.AsyncApi24ChannelItemImpl 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.asyncapi.v24;
import com.fasterxml.jackson.databind.JsonNode;
import io.apicurio.datamodels.models.Node;
import io.apicurio.datamodels.models.NodeImpl;
import io.apicurio.datamodels.models.asyncapi.AsyncApiChannelBindings;
import io.apicurio.datamodels.models.asyncapi.AsyncApiOperation;
import io.apicurio.datamodels.models.asyncapi.AsyncApiParameters;
import io.apicurio.datamodels.models.asyncapi.v24.visitors.AsyncApi24Visitor;
import io.apicurio.datamodels.models.visitors.Visitor;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
public class AsyncApi24ChannelItemImpl extends NodeImpl implements AsyncApi24ChannelItem {
private String $ref;
private String description;
private List servers;
private AsyncApiOperation subscribe;
private AsyncApiOperation publish;
private AsyncApiParameters parameters;
private AsyncApiChannelBindings bindings;
private Map extensions;
@Override
public String get$ref() {
return $ref;
}
@Override
public void set$ref(String value) {
this.$ref = value;
}
@Override
public String getDescription() {
return description;
}
@Override
public void setDescription(String value) {
this.description = value;
}
@Override
public List getServers() {
return servers;
}
@Override
public void setServers(List value) {
this.servers = value;
}
@Override
public AsyncApiOperation getSubscribe() {
return subscribe;
}
@Override
public void setSubscribe(AsyncApiOperation value) {
this.subscribe = value;
}
@Override
public AsyncApi24Operation createOperation() {
AsyncApi24OperationImpl node = new AsyncApi24OperationImpl();
node.setParent(this);
return node;
}
@Override
public AsyncApiOperation getPublish() {
return publish;
}
@Override
public void setPublish(AsyncApiOperation value) {
this.publish = value;
}
@Override
public AsyncApiParameters getParameters() {
return parameters;
}
@Override
public void setParameters(AsyncApiParameters value) {
this.parameters = value;
}
@Override
public AsyncApi24Parameters createParameters() {
AsyncApi24ParametersImpl node = new AsyncApi24ParametersImpl();
node.setParent(this);
return node;
}
@Override
public AsyncApiChannelBindings getBindings() {
return bindings;
}
@Override
public void setBindings(AsyncApiChannelBindings value) {
this.bindings = value;
}
@Override
public AsyncApi24ChannelBindings createChannelBindings() {
AsyncApi24ChannelBindingsImpl node = new AsyncApi24ChannelBindingsImpl();
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) {
AsyncApi24Visitor viz = (AsyncApi24Visitor) visitor;
viz.visitChannelItem(this);
}
@Override
public Node emptyClone() {
return new AsyncApi24ChannelItemImpl();
}
}