A2uiCoreCatalogDefinitionSerializer


public final class A2uiCoreCatalogDefinitionSerializer


Serializes an A2uiCatalogDefinition into JSON Schema representations.

Traversal and JSON formatting are computed lazily and cached per serializer instance, so keep the instance to reuse the results.

Summary

Public constructors

Public methods

final @NonNull A2uiCatalogDefinition

the catalog to serialize

final @NonNull Map<@NonNull String, Object>

The serialized JSON Schema Map representation of catalog.

final @NonNull String

The serialized JSON Schema string representation of catalog.

Public constructors

A2uiCoreCatalogDefinitionSerializer

Added in 1.0.0-alpha03
public A2uiCoreCatalogDefinitionSerializer(
    @NonNull A2uiCatalogDefinition catalog
)
Parameters
@NonNull A2uiCatalogDefinition catalog

the catalog to serialize

Public methods

getCatalog

Added in 1.0.0-alpha03
public final @NonNull A2uiCatalogDefinition getCatalog()

the catalog to serialize

getJsonSchemaMap

Added in 1.0.0-alpha03
public final @NonNull Map<@NonNull String, Object> getJsonSchemaMap()

The serialized JSON Schema Map representation of catalog.

getJsonSchemaString

Added in 1.0.0-alpha03
public final @NonNull String getJsonSchemaString()

The serialized JSON Schema string representation of catalog.