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 class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclearId()
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.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 void
Handles 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.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.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.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.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.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.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.toString()
protected void
Validates required properties.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
-
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 this property.- 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 this property.- 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
- object root schema- Returns:
- updated builder instance
- See Also:
-
clearRootArray
Clear existing value of this property.- 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
- array root schema- Returns:
- updated builder instance
- See Also:
-
clearRootNumber
Clear existing value of this property.- 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
- number root schema- Returns:
- updated builder instance
- See Also:
-
clearRootInteger
Clear existing value of this property.- 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
- integer root schema- Returns:
- updated builder instance
- See Also:
-
clearRootString
Clear existing value of this property.- 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
- string root schema- Returns:
- updated builder instance
- See Also:
-
clearRootBoolean
Clear existing value of this property.- 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
- boolean root schema- Returns:
- updated builder instance
- See Also:
-
clearRootNull
Clear existing value of this property.- 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
- null root schema- Returns:
- updated builder instance
- See Also:
-
id
The base URI for resolving relative references.- Returns:
- the id
-
rootObject
Root of the schema should be validated as an object.- Returns:
- the root object
-
rootArray
Root of the schema should be validated as an array.- Returns:
- the root array
-
rootNumber
Root of the schema should be validated as a number.- Returns:
- the root number
-
rootInteger
Root of the schema should be validated as an integer.- Returns:
- the root integer
-
rootString
Root of the schema should be validated as a string.- Returns:
- the root string
-
rootBoolean
Root of the schema should be validated as a boolean.- Returns:
- the root boolean
-
rootNull
Root of the schema should be validated as a null.- Returns:
- the root null
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-