Class SchemaArray.Builder
java.lang.Object
io.helidon.json.schema.SchemaItem.BuilderBase<SchemaArray.Builder, SchemaArray>
io.helidon.json.schema.SchemaArray.BuilderBase<SchemaArray.Builder, SchemaArray>
io.helidon.json.schema.SchemaArray.Builder
- All Implemented Interfaces:
Prototype.Builder<SchemaArray.Builder, SchemaArray>, Builder<SchemaArray.Builder, SchemaArray>, Supplier<SchemaArray>
- Enclosing interface:
SchemaArray
public static class SchemaArray.Builder
extends SchemaArray.BuilderBase<SchemaArray.Builder, SchemaArray>
implements Builder<SchemaArray.Builder, SchemaArray>
Fluent API builder for
SchemaArray.-
Nested Class Summary
Nested classes/interfaces inherited from class SchemaArray.BuilderBase
SchemaArray.BuilderBase.SchemaArrayImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class SchemaItem.BuilderBase
SchemaItem.BuilderBase.SchemaItemImplModifier 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 SchemaArray.BuilderBase
clearItemsArray, clearItemsBoolean, clearItemsInteger, clearItemsNull, clearItemsNumber, clearItemsObject, clearItemsString, clearMaxItems, clearMinItems, clearUniqueItems, from, from, itemsArray, itemsArray, itemsArray, itemsArray, itemsBoolean, itemsBoolean, itemsBoolean, itemsBoolean, itemsInteger, itemsInteger, itemsInteger, itemsInteger, itemsNull, itemsNull, itemsNull, itemsNull, itemsNumber, itemsNumber, itemsNumber, itemsNumber, itemsObject, itemsObject, itemsObject, itemsObject, itemsString, itemsString, itemsString, itemsString, maxItems, maxItems, minItems, minItems, preBuildPrototype, toString, uniqueItems, uniqueItems, validatePrototypeModifier and TypeMethodDescriptionClear existing value of itemsArray.Clear existing value of itemsBoolean.Clear existing value of itemsInteger.Clear existing value of itemsNull.Clear existing value of itemsNumber.Clear existing value of itemsObject.Clear existing value of itemsString.Clear existing value of maxItems.Clear existing value of minItems.Clear existing value of uniqueItems.from(SchemaArray prototype) Update this builder from an existing prototype instance.from(SchemaArray.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Array items should be validated as an arrays.itemsArray(SchemaArray itemsArray) Array items should be validated as an arrays.itemsArray(Consumer<SchemaArray.Builder> consumer) Array items should be validated as an arrays.itemsArray(Supplier<? extends SchemaArray> supplier) Array items should be validated as an arrays.Array items should be validated as a boolean.itemsBoolean(SchemaBoolean itemsBoolean) Array items should be validated as a boolean.itemsBoolean(Consumer<SchemaBoolean.Builder> consumer) Array items should be validated as a boolean.itemsBoolean(Supplier<? extends SchemaBoolean> supplier) Array items should be validated as a boolean.Array items should be validated as an integer.itemsInteger(SchemaInteger itemsInteger) Array items should be validated as an integer.itemsInteger(Consumer<SchemaInteger.Builder> consumer) Array items should be validated as an integer.itemsInteger(Supplier<? extends SchemaInteger> supplier) Array items should be validated as an integer.Array items should be validated as an null.itemsNull(SchemaNull itemsNull) Array items should be validated as an null.itemsNull(Consumer<SchemaNull.Builder> consumer) Array items should be validated as an null.itemsNull(Supplier<? extends SchemaNull> supplier) Array items should be validated as an null.Array items should be validated as a number.itemsNumber(SchemaNumber itemsNumber) Array items should be validated as a number.itemsNumber(Consumer<SchemaNumber.Builder> consumer) Array items should be validated as a number.itemsNumber(Supplier<? extends SchemaNumber> supplier) Array items should be validated as a number.Array items should be validated as an objects.itemsObject(SchemaObject itemsObject) Array items should be validated as an objects.itemsObject(Consumer<SchemaObject.Builder> consumer) Array items should be validated as an objects.itemsObject(Supplier<? extends SchemaObject> supplier) Array items should be validated as an objects.Array items should be validated as a string.itemsString(SchemaString itemsString) Array items should be validated as a string.itemsString(Consumer<SchemaString.Builder> consumer) Array items should be validated as a string.itemsString(Supplier<? extends SchemaString> supplier) Array items should be validated as a string.maxItems()Max number of items an array can have.maxItems(int maxItems) Max number of items an array can have.minItems()Min number of items an array can have.minItems(int minItems) Min number of items an array can have.protected voidHandles providers and decorators.toString()Whether the array can contain duplicate values.uniqueItems(boolean uniqueItems) Whether the array can contain duplicate values.protected voidValidates required properties.Methods inherited from class SchemaItem.BuilderBase
clearDescription, clearTitle, description, description, from, from, required, required, title, titleModifier and TypeMethodDescriptionClear existing value of description.Clear existing value of title.Description of the item.description(String description) Description of the item.from(SchemaItem prototype) Update this builder from an existing prototype instance.from(SchemaItem.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.booleanrequired()Used in the object properties to mark required property.required(boolean required) Used in the object properties to mark required property.title()Title of the item.Title of the item.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault SchemaArrayget()default SchemaArray.Builderidentity()Instance of this builder as the correct type.default SchemaArray.Builderupdate(Consumer<SchemaArray.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault SchemaArray.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<SchemaArray.Builder, SchemaArray>- 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<SchemaArray.Builder, SchemaArray>- Returns:
- instance of the built type
-