Class Schema.Builder
java.lang.Object
io.helidon.json.schema.Schema.BuilderBase<Schema.Builder, Schema>
io.helidon.json.schema.Schema.Builder
- All Implemented Interfaces:
Prototype.Builder<Schema.Builder, Schema>, Builder<Schema.Builder, Schema>, Supplier<Schema>
- Enclosing interface:
Schema
public static class Schema.Builder
extends Schema.BuilderBase<Schema.Builder, Schema>
implements Builder<Schema.Builder, Schema>
Fluent API builder for
Schema.-
Nested Class Summary
Nested classes/interfaces inherited from class Schema.BuilderBase
Schema.BuilderBase.SchemaImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class Schema.BuilderBase
clearId, clearRootArray, clearRootBoolean, clearRootInteger, clearRootNull, clearRootNumber, clearRootObject, clearRootString, from, from, id, id, preBuildPrototype, rootArray, rootArray, rootArray, rootArray, rootBoolean, rootBoolean, rootBoolean, rootBoolean, rootFromSchema, rootInteger, rootInteger, rootInteger, rootInteger, rootNull, rootNull, rootNull, rootNull, rootNumber, rootNumber, rootNumber, rootNumber, rootObject, rootObject, rootObject, rootObject, rootString, rootString, rootString, rootString, toString, validatePrototypeModifier and TypeMethodDescriptionclearId()Clear existing value of id.Clear existing value of rootArray.Clear existing value of rootBoolean.Clear existing value of rootInteger.Clear existing value of rootNull.Clear existing value of rootNumber.Clear existing value of rootObject.Clear existing value of rootString.Update this builder from an existing prototype instance.from(Schema.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.id()The base URI for resolving relative references.The base URI for resolving relative references.protected voidHandles providers and decorators.Root of the schema should be validated as an array.rootArray(SchemaArray rootArray) Root of the schema should be validated as an array.rootArray(Consumer<SchemaArray.Builder> consumer) Root of the schema should be validated as an array.rootArray(Supplier<? extends SchemaArray> supplier) Root of the schema should be validated as an array.Root of the schema should be validated as a boolean.rootBoolean(SchemaBoolean rootBoolean) Root of the schema should be validated as a boolean.rootBoolean(Consumer<SchemaBoolean.Builder> consumer) Root of the schema should be validated as a boolean.rootBoolean(Supplier<? extends SchemaBoolean> supplier) Root of the schema should be validated as a boolean.rootFromSchema(Schema schema) Take the root type of the provided schema and add it to the current builder.Root of the schema should be validated as an integer.rootInteger(SchemaInteger rootInteger) Root of the schema should be validated as an integer.rootInteger(Consumer<SchemaInteger.Builder> consumer) Root of the schema should be validated as an integer.rootInteger(Supplier<? extends SchemaInteger> supplier) Root of the schema should be validated as an integer.rootNull()Root of the schema should be validated as a null.rootNull(SchemaNull rootNull) Root of the schema should be validated as a null.rootNull(Consumer<SchemaNull.Builder> consumer) Root of the schema should be validated as a null.rootNull(Supplier<? extends SchemaNull> supplier) Root of the schema should be validated as a null.Root of the schema should be validated as a number.rootNumber(SchemaNumber rootNumber) Root of the schema should be validated as a number.rootNumber(Consumer<SchemaNumber.Builder> consumer) Root of the schema should be validated as a number.rootNumber(Supplier<? extends SchemaNumber> supplier) Root of the schema should be validated as a number.Root of the schema should be validated as an object.rootObject(SchemaObject rootObject) Root of the schema should be validated as an object.rootObject(Consumer<SchemaObject.Builder> consumer) Root of the schema should be validated as an object.rootObject(Supplier<? extends SchemaObject> supplier) Root of the schema should be validated as an object.Root of the schema should be validated as a string.rootString(SchemaString rootString) Root of the schema should be validated as a string.rootString(Consumer<SchemaString.Builder> consumer) Root of the schema should be validated as a string.rootString(Supplier<? extends SchemaString> supplier) Root of the schema should be validated as a string.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault Schemaget()default Schema.Builderidentity()Instance of this builder as the correct type.default Schema.Builderupdate(Consumer<Schema.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault Schema.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<Schema.Builder, Schema>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<Schema.Builder, Schema>- Returns:
- instance of the built type
-