Module io.helidon.json.schema
Package io.helidon.json.schema
Class Schema.BuilderBase<BUILDER extends Schema.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Schema>
java.lang.Object
io.helidon.json.schema.Schema.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:
Schema.Builder
- Enclosing interface:
Schema
public abstract static class Schema.BuilderBase<BUILDER extends Schema.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Schema>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
Schema.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
rootFromSchema
Take the root type of the provided schema and add it to the current builder.- Parameters:
schema- schema- Returns:
- updated builder instance
-
clearId
Clear existing value of id.- Returns:
- updated builder instance
- See Also:
-
id
The base URI for resolving relative references.- Parameters:
id- configured base URI- Returns:
- updated builder instance
- See Also:
-
clearRootObject
Clear existing value of rootObject.- Returns:
- updated builder instance
- See Also:
-
rootObject
Root of the schema should be validated as an object.- Parameters:
rootObject- object root schema- Returns:
- updated builder instance
- See Also:
-
rootObject
Root of the schema should be validated as an object.- Parameters:
consumer- consumer of builder of object root schema- Returns:
- updated builder instance
- See Also:
-
rootObject
Root of the schema should be validated as an object.- Parameters:
supplier- supplier of object root schema- Returns:
- updated builder instance
- See Also:
-
clearRootArray
Clear existing value of rootArray.- Returns:
- updated builder instance
- See Also:
-
rootArray
Root of the schema should be validated as an array.- Parameters:
rootArray- array root schema- Returns:
- updated builder instance
- See Also:
-
rootArray
Root of the schema should be validated as an array.- Parameters:
consumer- consumer of builder of array root schema- Returns:
- updated builder instance
- See Also:
-
rootArray
Root of the schema should be validated as an array.- Parameters:
supplier- supplier of array root schema- Returns:
- updated builder instance
- See Also:
-
clearRootNumber
Clear existing value of rootNumber.- Returns:
- updated builder instance
- See Also:
-
rootNumber
Root of the schema should be validated as a number.- Parameters:
rootNumber- number root schema- Returns:
- updated builder instance
- See Also:
-
rootNumber
Root of the schema should be validated as a number.- Parameters:
consumer- consumer of builder of number root schema- Returns:
- updated builder instance
- See Also:
-
rootNumber
Root of the schema should be validated as a number.- Parameters:
supplier- supplier of number root schema- Returns:
- updated builder instance
- See Also:
-
clearRootInteger
Clear existing value of rootInteger.- Returns:
- updated builder instance
- See Also:
-
rootInteger
Root of the schema should be validated as an integer.- Parameters:
rootInteger- integer root schema- Returns:
- updated builder instance
- See Also:
-
rootInteger
Root of the schema should be validated as an integer.- Parameters:
consumer- consumer of builder of integer root schema- Returns:
- updated builder instance
- See Also:
-
rootInteger
Root of the schema should be validated as an integer.- Parameters:
supplier- supplier of integer root schema- Returns:
- updated builder instance
- See Also:
-
clearRootString
Clear existing value of rootString.- Returns:
- updated builder instance
- See Also:
-
rootString
Root of the schema should be validated as a string.- Parameters:
rootString- string root schema- Returns:
- updated builder instance
- See Also:
-
rootString
Root of the schema should be validated as a string.- Parameters:
consumer- consumer of builder of string root schema- Returns:
- updated builder instance
- See Also:
-
rootString
Root of the schema should be validated as a string.- Parameters:
supplier- supplier of string root schema- Returns:
- updated builder instance
- See Also:
-
clearRootBoolean
Clear existing value of rootBoolean.- Returns:
- updated builder instance
- See Also:
-
rootBoolean
Root of the schema should be validated as a boolean.- Parameters:
rootBoolean- boolean root schema- Returns:
- updated builder instance
- See Also:
-
rootBoolean
Root of the schema should be validated as a boolean.- Parameters:
consumer- consumer of builder of boolean root schema- Returns:
- updated builder instance
- See Also:
-
rootBoolean
Root of the schema should be validated as a boolean.- Parameters:
supplier- supplier of boolean root schema- Returns:
- updated builder instance
- See Also:
-
clearRootNull
Clear existing value of rootNull.- Returns:
- updated builder instance
- See Also:
-
rootNull
Root of the schema should be validated as a null.- Parameters:
rootNull- null root schema- Returns:
- updated builder instance
- See Also:
-
rootNull
Root of the schema should be validated as a null.- Parameters:
consumer- consumer of builder of null root schema- Returns:
- updated builder instance
- See Also:
-
rootNull
Root of the schema should be validated as a null.- Parameters:
supplier- supplier of null root schema- Returns:
- updated builder instance
- See Also:
-
id
The base URI for resolving relative references.- Returns:
- configured base URI
-
rootObject
Root of the schema should be validated as an object.- Returns:
- object root schema
-
rootArray
Root of the schema should be validated as an array.- Returns:
- array root schema
-
rootNumber
Root of the schema should be validated as a number.- Returns:
- number root schema
-
rootInteger
Root of the schema should be validated as an integer.- Returns:
- integer root schema
-
rootString
Root of the schema should be validated as a string.- Returns:
- string root schema
-
rootBoolean
Root of the schema should be validated as a boolean.- Returns:
- boolean root schema
-
rootNull
Root of the schema should be validated as a null.- Returns:
- null root schema
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-