A2uiRefSchema


public final class A2uiRefSchema extends A2uiSchema


Schema representing a reference to another schema definition.

Summary

Public constructors

A2uiRefSchema(
    @NonNull String ref,
    String description,
    @NonNull List<@NonNull A2uiSchemaKeyword<@NonNull Object>> keywords
)

Public methods

boolean
equals(Object other)
String

semantic description of the schema

@NonNull List<@NonNull A2uiSchemaKeyword<@NonNull Object>>

JSON Schema keywords applied to this schema node

final @NonNull String

reference path

int
@NonNull JsonElement

Returns the JsonElement hierarchy representing this schema.

@NonNull String

Inherited methods

From androidx.a2ui.model.schema.A2uiSchema
final @NonNull String

Serializes this schema to a JSON Schema string representation.

Public constructors

A2uiRefSchema

public A2uiRefSchema(
    @NonNull String ref,
    String description,
    @NonNull List<@NonNull A2uiSchemaKeyword<@NonNull Object>> keywords
)

Public methods

equals

public boolean equals(Object other)

getDescription

public String getDescription()

semantic description of the schema

getKeywords

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

JSON Schema keywords applied to this schema node

getRef

Added in 1.0.0-alpha01
public final @NonNull String getRef()

reference path

hashCode

public int hashCode()

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()