public final class Extension extends SqllrObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Extension.Builder
Collects the members of a new
Extension. |
SqllrObject.Reader<T>| Modifier and Type | Field and Description |
|---|---|
static List<String> |
MEMBERS
The members the schema defines, in schema order.
|
static SqllrObject.Reader<Extension> |
READER
Reads a JSON object as a
Extension. |
static List<String> |
REQUIRED
The members the schema requires.
|
| Modifier and Type | Method and Description |
|---|---|
static Extension.Builder |
builder() |
static Extension |
fromJson(Object json)
A
Extension with the members of a JSON object, all kept. |
Object |
getData()
The member
data. |
Boolean |
getRequired()
The member
required. |
String |
getVersion()
The member
version. |
Extension.Builder |
toBuilder()
A builder holding every member of this object.
|
public static final SqllrObject.Reader<Extension> READER
Extension.public static Extension fromJson(Object json)
Extension with the members of a JSON object, all kept.public static Extension.Builder builder()
public Extension.Builder toBuilder()
public String getVersion()
version. Null when absent; throws IllegalStateException when the member
holds another JSON type.public Boolean getRequired()
required. Null when absent; throws IllegalStateException when the member
holds another JSON type.public Object getData()
data. Extension content; any JSON value without floating-point numbers.
Null when absent, SqllrObject.JSON_NULL when present with JSON null.