Class SchemaNumber.BuilderBase<BUILDER extends SchemaNumber.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends SchemaNumber>
java.lang.Object
io.helidon.json.schema.SchemaItem.BuilderBase<BUILDER, PROTOTYPE>
io.helidon.json.schema.SchemaNumber.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:
SchemaNumber.Builder
- Enclosing interface:
SchemaNumber
public abstract static class SchemaNumber.BuilderBase<BUILDER extends SchemaNumber.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends SchemaNumber>
extends SchemaItem.BuilderBase<BUILDER, PROTOTYPE>
implements Prototype.Builder<BUILDER, PROTOTYPE>
Fluent API builder base for
SchemaNumber.-
Nested Class Summary
Nested ClassesModifier 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. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear existing value of exclusiveMaximum.Clear existing value of exclusiveMinimum.Clear existing value of maximum.Clear existing value of minimum.Clear existing value of multipleOf.Maximal exclusive value of the number.exclusiveMaximum(double exclusiveMaximum) Maximal exclusive value of the number.Minimal exclusive value of the number.exclusiveMinimum(double exclusiveMinimum) Minimal exclusive value of the number.from(SchemaNumber prototype) Update this builder from an existing prototype instance.from(SchemaNumber.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.maximum()Maximal value of the number.maximum(double maximum) Maximal value of the number.minimum()Minimal value of the number.minimum(double minimum) Minimal value of the number.Value restriction to be a multiple of a given number.multipleOf(double multipleOf) Value restriction to be a multiple of a given number.protected voidHandles providers and decorators.toString()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 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
-
clearMultipleOf
Clear existing value of multipleOf.- Returns:
- updated builder instance
- See Also:
-
multipleOf
Value restriction to be a multiple of a given number.- Parameters:
multipleOf- multiple value restriction- Returns:
- updated builder instance
- See Also:
-
clearMinimum
Clear existing value of minimum.- Returns:
- updated builder instance
- See Also:
-
minimum
Minimal value of the number. Cannot be higher than maximal configured value. Mutually exclusive toexclusiveMinimum().- Parameters:
minimum- minimal value- Returns:
- updated builder instance
- See Also:
-
clearMaximum
Clear existing value of maximum.- Returns:
- updated builder instance
- See Also:
-
maximum
Maximal value of the number. Cannot be lower than minimal configured value. Mutually exclusive toexclusiveMaximum().- Parameters:
maximum- maximal value- Returns:
- updated builder instance
- See Also:
-
clearExclusiveMaximum
Clear existing value of exclusiveMaximum.- Returns:
- updated builder instance
- See Also:
-
exclusiveMaximum
-
clearExclusiveMinimum
Clear existing value of exclusiveMinimum.- Returns:
- updated builder instance
- See Also:
-
exclusiveMinimum
-
multipleOf
-
minimum
Minimal value of the number. Cannot be higher than maximal configured value. Mutually exclusive toexclusiveMinimum().- Returns:
- minimal value
-
maximum
Maximal value of the number. Cannot be lower than minimal configured value. Mutually exclusive toexclusiveMaximum().- Returns:
- maximal value
-
exclusiveMaximum
-
exclusiveMinimum
-
toString
- Overrides:
toStringin classSchemaItem.BuilderBase<BUILDER extends SchemaNumber.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends SchemaNumber>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototypein classSchemaItem.BuilderBase<BUILDER extends SchemaNumber.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends SchemaNumber>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototypein classSchemaItem.BuilderBase<BUILDER extends SchemaNumber.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends SchemaNumber>
-