Module io.helidon.json.schema
Package io.helidon.json.schema
Class SchemaItem.BuilderBase<BUILDER extends SchemaItem.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends SchemaItem>
java.lang.Object
io.helidon.json.schema.SchemaItem.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.BuilderBase
,SchemaBoolean.BuilderBase
,SchemaInteger.BuilderBase
,SchemaItem.Builder
,SchemaNull.BuilderBase
,SchemaNumber.BuilderBase
,SchemaObject.BuilderBase
,SchemaString.BuilderBase
- Enclosing interface:
SchemaItem
public abstract static class SchemaItem.BuilderBase<BUILDER extends SchemaItem.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends SchemaItem>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
SchemaItem
.-
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 TypeMethodDescriptionClear existing value of this property.Clear existing value of this property.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.protected void
Handles providers and decorators.boolean
required()
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.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
-
clearTitle
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
title
Title of the item.- Parameters:
title
- item title- Returns:
- updated builder instance
- See Also:
-
clearDescription
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
description
Description of the item.- Parameters:
description
- item description- Returns:
- updated builder instance
- See Also:
-
required
Used in the object properties to mark required property.- Parameters:
required
- whether object property is required- Returns:
- updated builder instance
- See Also:
-
title
Title of the item.- Returns:
- the title
-
description
Description of the item.- Returns:
- the description
-
required
public boolean required()Used in the object properties to mark required property.- Returns:
- the required
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-