Class AsyncBuilder
java.lang.Object
org.sdase.commons.spring.boot.asyncapi.AsyncBuilder
- All Implemented Interfaces:
AsyncApiGenerator.AsyncApiBaseBuilder
,AsyncApiGenerator.SchemaBuilder
,FinalBuilder
public class AsyncBuilder
extends Object
implements AsyncApiGenerator.AsyncApiBaseBuilder, AsyncApiGenerator.SchemaBuilder, FinalBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
generate()
Generates a new JSON schema for the supplied class.withAsyncApiBase
(String yamlAsyncApiContent) Supply base AsyncAPI yaml content to be used as a template.withJsonSchemaBuilder
(JsonSchemaBuilder jsonSchemaBuilder) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.sdase.commons.spring.boot.asyncapi.AsyncApiGenerator.AsyncApiBaseBuilder
withAsyncApiBase
Methods inherited from interface org.sdase.commons.spring.boot.asyncapi.FinalBuilder
generateYaml
-
Constructor Details
-
AsyncBuilder
public AsyncBuilder()
-
-
Method Details
-
withAsyncApiBase
Description copied from interface:AsyncApiGenerator.AsyncApiBaseBuilder
Supply base AsyncAPI yaml content to be used as a template.- Specified by:
withAsyncApiBase
in interfaceAsyncApiGenerator.AsyncApiBaseBuilder
- Parameters:
yamlAsyncApiContent
- The content of an AsyncAPI yaml schema.- Returns:
- builder
-
withJsonSchemaBuilder
- Specified by:
withJsonSchemaBuilder
in interfaceAsyncApiGenerator.SchemaBuilder
- Parameters:
jsonSchemaBuilder
- theJsonSchemaBuilder
that creates Json Schema Draft 07 for classes referenced as$ref: class://fully.qualified.classname.of.the.Model
.- Returns:
- The
FinalBuilder
to create the AsyncAPI
-
generate
public com.fasterxml.jackson.databind.JsonNode generate()Description copied from interface:FinalBuilder
Generates a new JSON schema for the supplied class.- Specified by:
generate
in interfaceFinalBuilder
- Returns:
- A JSON object for the JSON schema.
-