![JAR search and dependency download from the Maven repository](/logo.png)
io.apicurio.datamodels.models.asyncapi.v20.visitors.AsyncApi20Traverser Maven / Gradle / Ivy
package io.apicurio.datamodels.models.asyncapi.v20.visitors;
import io.apicurio.datamodels.models.Components;
import io.apicurio.datamodels.models.Contact;
import io.apicurio.datamodels.models.Document;
import io.apicurio.datamodels.models.ExternalDocumentation;
import io.apicurio.datamodels.models.Info;
import io.apicurio.datamodels.models.License;
import io.apicurio.datamodels.models.OAuthFlow;
import io.apicurio.datamodels.models.OAuthFlows;
import io.apicurio.datamodels.models.Operation;
import io.apicurio.datamodels.models.Parameter;
import io.apicurio.datamodels.models.Schema;
import io.apicurio.datamodels.models.SecurityRequirement;
import io.apicurio.datamodels.models.SecurityScheme;
import io.apicurio.datamodels.models.Server;
import io.apicurio.datamodels.models.ServerVariable;
import io.apicurio.datamodels.models.Tag;
import io.apicurio.datamodels.models.asyncapi.AsyncApiBinding;
import io.apicurio.datamodels.models.asyncapi.AsyncApiChannelBindings;
import io.apicurio.datamodels.models.asyncapi.AsyncApiChannelItem;
import io.apicurio.datamodels.models.asyncapi.AsyncApiChannels;
import io.apicurio.datamodels.models.asyncapi.AsyncApiCorrelationID;
import io.apicurio.datamodels.models.asyncapi.AsyncApiMessage;
import io.apicurio.datamodels.models.asyncapi.AsyncApiMessageBindings;
import io.apicurio.datamodels.models.asyncapi.AsyncApiMessageTrait;
import io.apicurio.datamodels.models.asyncapi.AsyncApiOneOfMessages;
import io.apicurio.datamodels.models.asyncapi.AsyncApiOperationBindings;
import io.apicurio.datamodels.models.asyncapi.AsyncApiOperationTrait;
import io.apicurio.datamodels.models.asyncapi.AsyncApiParameters;
import io.apicurio.datamodels.models.asyncapi.AsyncApiServerBindings;
import io.apicurio.datamodels.models.asyncapi.AsyncApiServers;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20ChannelBindings;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20ChannelItem;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20Channels;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20Components;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20Document;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20Info;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20Message;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20MessageBindings;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20MessageTrait;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20OAuthFlows;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20OneOfMessages;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20Operation;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20OperationBindings;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20OperationTrait;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20Parameter;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20Parameters;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20Schema;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20SecurityScheme;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20Server;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20ServerBindings;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20Servers;
import io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20Tag;
import io.apicurio.datamodels.models.visitors.AbstractTraverser;
import io.apicurio.datamodels.models.visitors.Visitor;
public class AsyncApi20Traverser extends AbstractTraverser implements AsyncApi20Visitor {
public AsyncApi20Traverser(Visitor visitor) {
super(visitor);
}
@Override
public void visitChannelItem(AsyncApiChannelItem node) {
node.accept(this.visitor);
AsyncApi20ChannelItem model = (AsyncApi20ChannelItem) node;
this.traverseNode("subscribe", model.getSubscribe());
this.traverseNode("publish", model.getPublish());
this.traverseNode("parameters", model.getParameters());
this.traverseNode("bindings", model.getBindings());
}
@Override
public void visitSecurityRequirement(SecurityRequirement node) {
node.accept(this.visitor);
}
@Override
public void visitOneOfMessages(AsyncApiOneOfMessages node) {
node.accept(this.visitor);
AsyncApi20OneOfMessages model = (AsyncApi20OneOfMessages) node;
this.traverseList("oneOf", model.getOneOf());
}
@Override
public void visitMessageBindings(AsyncApiMessageBindings node) {
node.accept(this.visitor);
AsyncApi20MessageBindings model = (AsyncApi20MessageBindings) node;
this.traverseNode("http", model.getHttp());
this.traverseNode("ws", model.getWs());
this.traverseNode("kafka", model.getKafka());
this.traverseNode("amqp", model.getAmqp());
this.traverseNode("amqp1", model.getAmqp1());
this.traverseNode("mqtt", model.getMqtt());
this.traverseNode("mqtt5", model.getMqtt5());
this.traverseNode("nats", model.getNats());
this.traverseNode("jms", model.getJms());
this.traverseNode("sns", model.getSns());
this.traverseNode("sqs", model.getSqs());
this.traverseNode("stomp", model.getStomp());
this.traverseNode("redis", model.getRedis());
}
@Override
public void visitOAuthFlow(OAuthFlow node) {
node.accept(this.visitor);
}
@Override
public void visitOperationBindings(AsyncApiOperationBindings node) {
node.accept(this.visitor);
AsyncApi20OperationBindings model = (AsyncApi20OperationBindings) node;
this.traverseNode("http", model.getHttp());
this.traverseNode("ws", model.getWs());
this.traverseNode("kafka", model.getKafka());
this.traverseNode("amqp", model.getAmqp());
this.traverseNode("amqp1", model.getAmqp1());
this.traverseNode("mqtt", model.getMqtt());
this.traverseNode("mqtt5", model.getMqtt5());
this.traverseNode("nats", model.getNats());
this.traverseNode("jms", model.getJms());
this.traverseNode("sns", model.getSns());
this.traverseNode("sqs", model.getSqs());
this.traverseNode("stomp", model.getStomp());
this.traverseNode("redis", model.getRedis());
}
@Override
public void visitComponents(Components node) {
node.accept(this.visitor);
AsyncApi20Components model = (AsyncApi20Components) node;
this.traverseMap("schemas", model.getSchemas());
this.traverseMap("messages", model.getMessages());
this.traverseMap("securitySchemes", model.getSecuritySchemes());
this.traverseMap("parameters", model.getParameters());
this.traverseMap("correlationIds", model.getCorrelationIds());
this.traverseMap("operationTraits", model.getOperationTraits());
this.traverseMap("messageTraits", model.getMessageTraits());
this.traverseMap("serverBindings", model.getServerBindings());
this.traverseMap("channelBindings", model.getChannelBindings());
this.traverseMap("operationBindings", model.getOperationBindings());
this.traverseMap("messageBindings", model.getMessageBindings());
}
@Override
public void visitChannelBindings(AsyncApiChannelBindings node) {
node.accept(this.visitor);
AsyncApi20ChannelBindings model = (AsyncApi20ChannelBindings) node;
this.traverseNode("http", model.getHttp());
this.traverseNode("ws", model.getWs());
this.traverseNode("kafka", model.getKafka());
this.traverseNode("amqp", model.getAmqp());
this.traverseNode("amqp1", model.getAmqp1());
this.traverseNode("mqtt", model.getMqtt());
this.traverseNode("mqtt5", model.getMqtt5());
this.traverseNode("nats", model.getNats());
this.traverseNode("jms", model.getJms());
this.traverseNode("sns", model.getSns());
this.traverseNode("sqs", model.getSqs());
this.traverseNode("stomp", model.getStomp());
this.traverseNode("redis", model.getRedis());
}
@Override
public void visitParameters(AsyncApiParameters node) {
node.accept(this.visitor);
AsyncApi20Parameters model = (AsyncApi20Parameters) node;
this.traverseMappedNode(model);
}
@Override
public void visitServerVariable(ServerVariable node) {
node.accept(this.visitor);
}
@Override
public void visitMessage(AsyncApiMessage node) {
node.accept(this.visitor);
AsyncApi20Message model = (AsyncApi20Message) node;
this.traverseList("oneOf", model.getOneOf());
this.traverseNode("headers", model.getHeaders());
this.traverseNode("correlationId", model.getCorrelationId());
this.traverseList("tags", model.getTags());
this.traverseNode("externalDocs", model.getExternalDocs());
this.traverseNode("bindings", model.getBindings());
this.traverseList("traits", model.getTraits());
}
@Override
public void visitOperationTrait(AsyncApiOperationTrait node) {
node.accept(this.visitor);
AsyncApi20OperationTrait model = (AsyncApi20OperationTrait) node;
this.traverseList("tags", model.getTags());
this.traverseNode("externalDocs", model.getExternalDocs());
this.traverseNode("bindings", model.getBindings());
}
@Override
public void visitServer(Server node) {
node.accept(this.visitor);
AsyncApi20Server model = (AsyncApi20Server) node;
this.traverseMap("variables", model.getVariables());
this.traverseList("security", model.getSecurity());
this.traverseNode("bindings", model.getBindings());
}
@Override
public void visitOAuthFlows(OAuthFlows node) {
node.accept(this.visitor);
AsyncApi20OAuthFlows model = (AsyncApi20OAuthFlows) node;
this.traverseNode("implicit", model.getImplicit());
this.traverseNode("password", model.getPassword());
this.traverseNode("clientCredentials", model.getClientCredentials());
this.traverseNode("authorizationCode", model.getAuthorizationCode());
}
@Override
public void visitServerBindings(AsyncApiServerBindings node) {
node.accept(this.visitor);
AsyncApi20ServerBindings model = (AsyncApi20ServerBindings) node;
this.traverseNode("http", model.getHttp());
this.traverseNode("ws", model.getWs());
this.traverseNode("kafka", model.getKafka());
this.traverseNode("amqp", model.getAmqp());
this.traverseNode("amqp1", model.getAmqp1());
this.traverseNode("mqtt", model.getMqtt());
this.traverseNode("mqtt5", model.getMqtt5());
this.traverseNode("nats", model.getNats());
this.traverseNode("jms", model.getJms());
this.traverseNode("sns", model.getSns());
this.traverseNode("sqs", model.getSqs());
this.traverseNode("stomp", model.getStomp());
this.traverseNode("redis", model.getRedis());
}
@Override
public void visitCorrelationID(AsyncApiCorrelationID node) {
node.accept(this.visitor);
}
@Override
public void visitServers(AsyncApiServers node) {
node.accept(this.visitor);
AsyncApi20Servers model = (AsyncApi20Servers) node;
this.traverseMappedNode(model);
}
@Override
public void visitChannels(AsyncApiChannels node) {
node.accept(this.visitor);
AsyncApi20Channels model = (AsyncApi20Channels) node;
this.traverseMappedNode(model);
}
@Override
public void visitMessageTrait(AsyncApiMessageTrait node) {
node.accept(this.visitor);
AsyncApi20MessageTrait model = (AsyncApi20MessageTrait) node;
this.traverseNode("headers", model.getHeaders());
this.traverseNode("correlationId", model.getCorrelationId());
this.traverseList("tags", model.getTags());
this.traverseNode("externalDocs", model.getExternalDocs());
this.traverseNode("bindings", model.getBindings());
}
@Override
public void visitBinding(AsyncApiBinding node) {
node.accept(this.visitor);
}
@Override
public void visitInfo(Info node) {
node.accept(this.visitor);
AsyncApi20Info model = (AsyncApi20Info) node;
this.traverseNode("contact", model.getContact());
this.traverseNode("license", model.getLicense());
}
@Override
public void visitContact(Contact node) {
node.accept(this.visitor);
}
@Override
public void visitTag(Tag node) {
node.accept(this.visitor);
AsyncApi20Tag model = (AsyncApi20Tag) node;
this.traverseNode("externalDocs", model.getExternalDocs());
}
@Override
public void visitSecurityScheme(SecurityScheme node) {
node.accept(this.visitor);
AsyncApi20SecurityScheme model = (AsyncApi20SecurityScheme) node;
this.traverseNode("flows", model.getFlows());
}
@Override
public void visitExternalDocumentation(ExternalDocumentation node) {
node.accept(this.visitor);
}
@Override
public void visitLicense(License node) {
node.accept(this.visitor);
}
@Override
public void visitDocument(Document node) {
node.accept(this.visitor);
AsyncApi20Document model = (AsyncApi20Document) node;
this.traverseNode("info", model.getInfo());
this.traverseNode("servers", model.getServers());
this.traverseNode("channels", model.getChannels());
this.traverseNode("components", model.getComponents());
this.traverseList("tags", model.getTags());
this.traverseNode("externalDocs", model.getExternalDocs());
}
@Override
public void visitParameter(Parameter node) {
node.accept(this.visitor);
AsyncApi20Parameter model = (AsyncApi20Parameter) node;
this.traverseNode("schema", model.getSchema());
}
@Override
public void visitOperation(Operation node) {
node.accept(this.visitor);
AsyncApi20Operation model = (AsyncApi20Operation) node;
this.traverseList("tags", model.getTags());
this.traverseNode("externalDocs", model.getExternalDocs());
this.traverseNode("bindings", model.getBindings());
this.traverseList("traits", model.getTraits());
this.traverseNode("message", model.getMessage());
}
@Override
public void visitSchema(Schema node) {
node.accept(this.visitor);
AsyncApi20Schema model = (AsyncApi20Schema) node;
this.traverseNode("if", model.getIf());
this.traverseNode("then", model.getThen());
this.traverseNode("else", model.getElse());
this.traverseMap("properties", model.getProperties());
this.traverseUnion("additionalProperties", model.getAdditionalProperties());
this.traverseNode("additionalItems", model.getAdditionalItems());
this.traverseUnion("items", model.getItems());
this.traverseNode("propertyNames", model.getPropertyNames());
this.traverseNode("contains", model.getContains());
this.traverseList("allOf", model.getAllOf());
this.traverseList("oneOf", model.getOneOf());
this.traverseList("anyOf", model.getAnyOf());
this.traverseNode("not", model.getNot());
this.traverseNode("externalDocs", model.getExternalDocs());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy