# A2uiSchemaKeyword

Artifact: [androidx.a2ui:a2ui-model](https://developer.android.com/jetpack/androidx/releases/a2ui) [View Source](https://cs.android.com/search?q=file:androidx/a2ui/model/schema/A2uiSchemaKeyword.kt+class:androidx.a2ui.model.schema.A2uiSchemaKeyword) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

*** ** * ** ***


```
sealed class A2uiSchemaKeyword<T : Any?>
```

<br />

Known direct subclasses [A2uiSchemaKeyword.AllOf](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.AllOf), [A2uiSchemaKeyword.AnyOf](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.AnyOf), [A2uiSchemaKeyword.Const](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.Const), [A2uiSchemaKeyword.Default](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.Default), [A2uiSchemaKeyword.Enum](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.Enum), [A2uiSchemaKeyword.Format](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.Format), [A2uiSchemaKeyword.IfThen](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.IfThen), [A2uiSchemaKeyword.Not](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.Not), [A2uiSchemaKeyword.OneOf](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.OneOf)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.AllOf` | Subschemas where the instance must match all (`allOf`). |
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.AnyOf` | Subschemas where the instance must match at least one (`anyOf`). |
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.Const` | Constant value constraint (`const`). |
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.Default` | Default value for the schema property (`default`). |
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.Enum` | Allowed enumeration values for the schema property (`enum`). |
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.Format` | String format constraint (`format`). |
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.IfThen` | Conditional subschema applicator (`if`-`then`-`else`). |
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.Not` | Subschema where the instance must NOT match (`not`). |
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.OneOf` | Subschemas where the instance must match exactly one (`oneOf`). |

*** ** * ** ***

Represents a JSON Schema (Draft 2020-12) keyword applied to a schema node of type `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword`.

Keywords include subschema applicators (`oneOf`, `allOf`, `anyOf`, `not`, conditional `if-then-else`), annotations (`default`), and validation constraints (`enum`, `const`, `format`).

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.AllOf : https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-nothing/index.html>` Subschemas where the instance must match all (`allOf`). |
| `class https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.AnyOf : https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-nothing/index.html>` Subschemas where the instance must match at least one (`anyOf`). |
| `class https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.Const<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> : https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword<T>` Constant value constraint (`const`). |
| `class https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.Default<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> : https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword<T>` Default value for the schema property (`default`). |
| `class https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.Enum<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> : https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword<T>` Allowed enumeration values for the schema property (`enum`). |
| `class https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.Format : https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` String format constraint (`format`). |
| `class https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.IfThen : https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-nothing/index.html>` Conditional subschema applicator (`if`-`then`-`else`). |
| `class https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.Not : https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-nothing/index.html>` Subschema where the instance must NOT match (`not`). |
| `class https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.OneOf : https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-nothing/index.html>` Subschemas where the instance must match exactly one (`oneOf`). |

| ### Protected constructors |
|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword#A2uiSchemaKeyword()()` |

## Protected constructors

### A2uiSchemaKeyword

```
protected <T : Any?> A2uiSchemaKeyword()
```