A2uiBooleanSchema


public final class A2uiBooleanSchema extends A2uiSchema


Schema representing a boolean literal.

Summary

Public fields

static final @NonNull A2uiBooleanSchema

Public constructors

A2uiBooleanSchema(
    String description,
    @NonNull List<@NonNull A2uiSchemaKeyword<@NonNull Boolean>> keywords
)

Public methods

String

semantic description of the schema

@NonNull List<@NonNull A2uiSchemaKeyword<@NonNull Boolean>>

JSON Schema keywords applied to this schema node

@NonNull JsonElement

Returns the JsonElement hierarchy representing this schema.

@NonNull String

Inherited methods

From androidx.a2ui.model.schema.A2uiSchema
boolean
equals(Object other)
int
final @NonNull String

Serializes this schema to a JSON Schema string representation.

Public fields

INSTANCE

public static final @NonNull A2uiBooleanSchema INSTANCE

Public constructors

A2uiBooleanSchema

public A2uiBooleanSchema(
    String description,
    @NonNull List<@NonNull A2uiSchemaKeyword<@NonNull Boolean>> keywords
)

Public methods

getDescription

public String getDescription()

semantic description of the schema

getKeywords

public @NonNull List<@NonNull A2uiSchemaKeyword<@NonNull Boolean>> getKeywords()

JSON Schema keywords applied to this schema node

toJsonElement

Added in 1.0.0-alpha01
public @NonNull JsonElement toJsonElement()

Returns the JsonElement hierarchy representing this schema.

Returns
@NonNull JsonElement

the JsonElement hierarchy representing this schema

toString

public @NonNull String toString()