Class SchemaString.Builder
java.lang.Object
io.helidon.json.schema.SchemaItem.BuilderBase<SchemaString.Builder, SchemaString>
io.helidon.json.schema.SchemaString.BuilderBase<SchemaString.Builder, SchemaString>
io.helidon.json.schema.SchemaString.Builder
- All Implemented Interfaces:
Prototype.Builder<SchemaString.Builder, SchemaString>, Builder<SchemaString.Builder, SchemaString>, Supplier<SchemaString>
- Enclosing interface:
SchemaString
public static class SchemaString.Builder
extends SchemaString.BuilderBase<SchemaString.Builder, SchemaString>
implements Builder<SchemaString.Builder, SchemaString>
Fluent API builder for
SchemaString.-
Nested Class Summary
Nested classes/interfaces inherited from class SchemaString.BuilderBase
SchemaString.BuilderBase.SchemaStringImplModifier 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. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class SchemaString.BuilderBase
clearMaxLength, clearMinLength, clearPattern, from, from, maxLength, maxLength, minLength, minLength, pattern, pattern, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptionClear existing value of maxLength.Clear existing value of minLength.Clear existing value of pattern.from(SchemaString prototype) Update this builder from an existing prototype instance.from(SchemaString.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Maximum length of the string.maxLength(long maxLength) Maximum length of the string.Minimum length of the string.minLength(long minLength) Minimum length of the string.pattern()String pattern to follow.String pattern to follow.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 Builder
get, identity, updateModifier and TypeMethodDescriptiondefault SchemaStringget()default SchemaString.Builderidentity()Instance of this builder as the correct type.default SchemaString.Builderupdate(Consumer<SchemaString.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault SchemaString.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<SchemaString.Builder, SchemaString>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<SchemaString.Builder, SchemaString>- Returns:
- instance of the built type
-