- All Superinterfaces:
Prototype.Api,SchemaItem
- All Known Implementing Classes:
SchemaString.BuilderBase.SchemaStringImpl
Json schema related to the strings.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forSchemaString.static classSchemaString.BuilderBase<BUILDER extends SchemaString.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends SchemaString> Fluent API builder base forSchemaString. -
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaString.Builderbuilder()Create a new fluent API builder to customize configuration.static SchemaString.Builderbuilder(SchemaString instance) Create a new fluent API builder from an existing instance.static SchemaStringcreate()Create a new instance with default values.default voidgenerate(Hson.Struct.Builder builder) Generated the Json schema item to the Json.Maximum length of the string.Minimum length of the string.pattern()String pattern to follow.Methods inherited from interface io.helidon.json.schema.SchemaItem
description, required, schemaType, title
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance with default values.- Returns:
- a new instance
-
generate
Description copied from interface:SchemaItemGenerated the Json schema item to the Json. This method servers mainly as a helpful tool for the Json generation. It should not be used.- Specified by:
generatein interfaceSchemaItem- Parameters:
builder- hson struct builder
-
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
-
schemaType
SchemaType schemaType()
-