T
- K
- public abstract class SchemaBuilder<T extends SchemaBuilder<?,?>,K extends Keyword> extends Object
Modifier and Type | Field and Description |
---|---|
protected URI |
id |
protected Map<String,Supplier<Object>> |
keywords |
protected SchemaType |
type |
Constructor and Description |
---|
SchemaBuilder(SchemaType type) |
Modifier and Type | Method and Description |
---|---|
T |
alias(String alias) |
Schema |
build(SchemaParser parser) |
T |
defaultValue(Object defaultValue) |
T |
fromJson(io.vertx.core.json.JsonObject object) |
SchemaType |
getType() |
T |
id(io.vertx.core.json.pointer.JsonPointer id) |
T |
nullable() |
io.vertx.core.json.JsonObject |
toJson() |
T |
type(SchemaType type) |
T |
with(K... keywords) |
T |
with(K keyword) |
T |
withKeyword(String key,
Object value) |
protected SchemaType type
protected URI id
public SchemaBuilder(SchemaType type)
public T id(io.vertx.core.json.pointer.JsonPointer id)
public T fromJson(io.vertx.core.json.JsonObject object)
public T nullable()
public T type(SchemaType type)
public SchemaType getType()
public io.vertx.core.json.JsonObject toJson()
public final Schema build(SchemaParser parser)
Copyright © 2020 Eclipse. All rights reserved.