Module io.helidon.json.schema
Package io.helidon.json.schema
Class SchemaArray.BuilderBase<BUILDER extends SchemaArray.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends SchemaArray>
java.lang.Object
io.helidon.json.schema.SchemaItem.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.json.schema.SchemaArray.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
SchemaArray.Builder
- Enclosing interface:
SchemaArray
public abstract static class SchemaArray.BuilderBase<BUILDER extends SchemaArray.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends SchemaArray>
extends SchemaItem.BuilderBase<BUILDER,PROTOTYPE>
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
SchemaArray
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class io.helidon.json.schema.SchemaItem.BuilderBase
SchemaItem.BuilderBase.SchemaItemImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.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.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.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.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.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.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.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.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 void
Handles providers and decorators.toString()
Whether the array can contain duplicate values.uniqueItems
(boolean uniqueItems) Whether the array can contain duplicate values.protected void
Validates required properties.Methods inherited from class io.helidon.json.schema.SchemaItem.BuilderBase
clearDescription, clearTitle, description, description, from, from, required, required, title, title
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
clearMaxItems
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
maxItems
Max number of items an array can have.- Parameters:
maxItems
- max array size- Returns:
- updated builder instance
- See Also:
-
clearMinItems
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
minItems
Min number of items an array can have.- Parameters:
minItems
- min array size- Returns:
- updated builder instance
- See Also:
-
clearUniqueItems
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
uniqueItems
Whether the array can contain duplicate values.- Parameters:
uniqueItems
- duplicate values allowed- Returns:
- updated builder instance
- See Also:
-
clearItemsObject
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
itemsObject
Array items should be validated as an objects.- Parameters:
itemsObject
- json object schema- Returns:
- updated builder instance
- See Also:
-
itemsObject
Array items should be validated as an objects.- Parameters:
consumer
- json object schema- Returns:
- updated builder instance
- See Also:
-
clearItemsArray
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
itemsArray
Array items should be validated as an arrays.- Parameters:
itemsArray
- json array schema- Returns:
- updated builder instance
- See Also:
-
itemsArray
Array items should be validated as an arrays.- Parameters:
consumer
- json array schema- Returns:
- updated builder instance
- See Also:
-
clearItemsNumber
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
itemsNumber
Array items should be validated as a number.- Parameters:
itemsNumber
- json number schema- Returns:
- updated builder instance
- See Also:
-
itemsNumber
Array items should be validated as a number.- Parameters:
consumer
- json number schema- Returns:
- updated builder instance
- See Also:
-
clearItemsInteger
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
itemsInteger
Array items should be validated as an integer.- Parameters:
itemsInteger
- json integer schema- Returns:
- updated builder instance
- See Also:
-
itemsInteger
Array items should be validated as an integer.- Parameters:
consumer
- json integer schema- Returns:
- updated builder instance
- See Also:
-
clearItemsString
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
itemsString
Array items should be validated as a string.- Parameters:
itemsString
- json string schema- Returns:
- updated builder instance
- See Also:
-
itemsString
Array items should be validated as a string.- Parameters:
consumer
- json string schema- Returns:
- updated builder instance
- See Also:
-
clearItemsBoolean
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
itemsBoolean
Array items should be validated as a boolean.- Parameters:
itemsBoolean
- json boolean schema- Returns:
- updated builder instance
- See Also:
-
itemsBoolean
Array items should be validated as a boolean.- Parameters:
consumer
- json boolean schema- Returns:
- updated builder instance
- See Also:
-
clearItemsNull
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
itemsNull
Array items should be validated as an null.- Parameters:
itemsNull
- json array schema- Returns:
- updated builder instance
- See Also:
-
itemsNull
Array items should be validated as an null.- Parameters:
consumer
- json array schema- Returns:
- updated builder instance
- See Also:
-
maxItems
Max number of items an array can have.- Returns:
- the max items
-
minItems
Min number of items an array can have.- Returns:
- the min items
-
uniqueItems
Whether the array can contain duplicate values.- Returns:
- the unique items
-
itemsObject
Array items should be validated as an objects.- Returns:
- the items object
-
itemsArray
Array items should be validated as an arrays.- Returns:
- the items array
-
itemsNumber
Array items should be validated as a number.- Returns:
- the items number
-
itemsInteger
Array items should be validated as an integer.- Returns:
- the items integer
-
itemsString
Array items should be validated as a string.- Returns:
- the items string
-
itemsBoolean
Array items should be validated as a boolean.- Returns:
- the items boolean
-
itemsNull
Array items should be validated as an null.- Returns:
- the items null
-
toString
- Overrides:
toString
in classSchemaItem.BuilderBase<BUILDER extends SchemaArray.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends SchemaArray>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototype
in classSchemaItem.BuilderBase<BUILDER extends SchemaArray.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends SchemaArray>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototype
in classSchemaItem.BuilderBase<BUILDER extends SchemaArray.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends SchemaArray>
-