Module io.helidon.json.schema
Package io.helidon.json.schema
Class SchemaString.BuilderBase<BUILDER extends SchemaString.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends SchemaString>
java.lang.Object
io.helidon.json.schema.SchemaItem.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.json.schema.SchemaString.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:
SchemaString.Builder
- Enclosing interface:
SchemaString
public abstract static class SchemaString.BuilderBase<BUILDER extends SchemaString.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends SchemaString>
extends SchemaItem.BuilderBase<BUILDER,PROTOTYPE>
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
SchemaString.-
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 io.helidon.json.schema.SchemaItem.BuilderBase
SchemaItem.BuilderBase.SchemaItemImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEnumValue(JsonValue value) Add a JSON enum value.addEnumValue(String value) Add a string enum value.addEnumValues(List<? extends JsonValue> enumValues) Values of the enum keyword, in declaration order.Clear existing value of enumValues.Clear existing value of format.Clear existing value of maxLength.Clear existing value of minLength.Clear existing value of pattern.Values of the enum keyword, in declaration order.enumValues(List<? extends JsonValue> enumValues) Values of the enum keyword, in declaration order.format()String format, such asdate,time, ordate-time.String format, such asdate,time, ordate-time.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 io.helidon.json.schema.SchemaItem.BuilderBase
clearDescription, clearTitle, description, description, from, from, required, required, title, titleMethods 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
-
addEnumValue
Add a JSON enum value.- Parameters:
value- JSON value to add- Returns:
- updated builder instance
- Since:
- 4.5.7
-
addEnumValue
Add a string enum value.- Parameters:
value- string value to add- Returns:
- updated builder instance
- Since:
- 4.5.7
-
clearMaxLength
Clear existing value of maxLength.- Returns:
- updated builder instance
- See Also:
-
maxLength
Maximum length of the string.- Parameters:
maxLength- maximum string length- Returns:
- updated builder instance
- See Also:
-
clearMinLength
Clear existing value of minLength.- Returns:
- updated builder instance
- See Also:
-
minLength
Minimum length of the string.- Parameters:
minLength- minimum string length- Returns:
- updated builder instance
- See Also:
-
clearPattern
Clear existing value of pattern.- Returns:
- updated builder instance
- See Also:
-
pattern
String pattern to follow.- Parameters:
pattern- string pattern- Returns:
- updated builder instance
- See Also:
-
clearFormat
Clear existing value of format.- Returns:
- updated builder instance
- Since:
- 4.5.7
- See Also:
-
format
String format, such asdate,time, ordate-time.- Parameters:
format- string format- Returns:
- updated builder instance
- Since:
- 4.5.7
- See Also:
-
clearEnumValues
Clear existing value of enumValues.- Returns:
- updated builder instance
- Since:
- 4.5.7
- See Also:
-
enumValues
Values of the enum keyword, in declaration order. Entries of any JSON type are preserved, includingJsonNull. The string type restriction applies independently of these values. When absent, no enum keyword restricts the string values. A present empty list generates an empty enum, which allows no values.- Parameters:
enumValues- enum values- Returns:
- updated builder instance
- Since:
- 4.5.7
- See Also:
-
addEnumValues
Values of the enum keyword, in declaration order. Entries of any JSON type are preserved, includingJsonNull. The string type restriction applies independently of these values. When absent, no enum keyword restricts the string values. A present empty list generates an empty enum, which allows no values.- Parameters:
enumValues- add values to enum values- Returns:
- updated builder instance
- Since:
- 4.5.7
- See Also:
-
maxLength
Maximum length of the string.- Returns:
- maximum string length
-
minLength
Minimum length of the string.- Returns:
- minimum string length
-
pattern
String pattern to follow.- Returns:
- string pattern
-
format
String format, such asdate,time, ordate-time.- Returns:
- string format
- Since:
- 4.5.7
-
enumValues
Values of the enum keyword, in declaration order. Entries of any JSON type are preserved, includingJsonNull. The string type restriction applies independently of these values. When absent, no enum keyword restricts the string values. A present empty list generates an empty enum, which allows no values.- Returns:
- enum values
- Since:
- 4.5.7
-
toString
- Overrides:
toStringin classSchemaItem.BuilderBase<BUILDER extends SchemaString.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends SchemaString>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototypein classSchemaItem.BuilderBase<BUILDER extends SchemaString.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends SchemaString>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototypein classSchemaItem.BuilderBase<BUILDER extends SchemaString.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends SchemaString>
-