Module io.helidon.json.schema
Package io.helidon.json.schema
Class SchemaArray.BuilderBase.SchemaArrayImpl
java.lang.Object
io.helidon.json.schema.SchemaItem.BuilderBase.SchemaItemImpl
io.helidon.json.schema.SchemaArray.BuilderBase.SchemaArrayImpl
- All Implemented Interfaces:
Prototype.Api
,SchemaArray
,SchemaItem
- Enclosing class:
SchemaArray.BuilderBase<BUILDER extends SchemaArray.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends SchemaArray>
protected static class SchemaArray.BuilderBase.SchemaArrayImpl
extends SchemaItem.BuilderBase.SchemaItemImpl
implements SchemaArray
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.json.schema.SchemaArray
SchemaArray.Builder, SchemaArray.BuilderBase<BUILDER extends SchemaArray.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends SchemaArray> Nested classes/interfaces inherited from interface io.helidon.json.schema.SchemaItem
SchemaItem.Builder, SchemaItem.BuilderBase<BUILDER extends SchemaItem.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends SchemaItem> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SchemaArrayImpl
(SchemaArray.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionboolean
default void
generate
(Hson.Struct.Builder builder) int
hashCode()
items()
Json type used to validate the content of the array.Array items should be validated as an arrays.Array items should be validated as a boolean.Array items should be validated as an integer.Array items should be validated as an null.Array items should be validated as a number.Array items should be validated as an objects.Array items should be validated as a string.maxItems()
Max number of items an array can have.minItems()
Min number of items an array can have.toString()
Whether the array can contain duplicate values.Methods inherited from class io.helidon.json.schema.SchemaItem.BuilderBase.SchemaItemImpl
description, required, schemaType, title
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.json.schema.SchemaItem
description, required, schemaType, title
-
Constructor Details
-
SchemaArrayImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
maxItems
Description copied from interface:SchemaArray
Max number of items an array can have.- Specified by:
maxItems
in interfaceSchemaArray
- Returns:
- max array size
-
minItems
Description copied from interface:SchemaArray
Min number of items an array can have.- Specified by:
minItems
in interfaceSchemaArray
- Returns:
- min array size
-
uniqueItems
Description copied from interface:SchemaArray
Whether the array can contain duplicate values.- Specified by:
uniqueItems
in interfaceSchemaArray
- Returns:
- duplicate values allowed
-
items
Description copied from interface:SchemaArray
Json type used to validate the content of the array. It is filled by the more specific configured schema item type.- Specified by:
items
in interfaceSchemaArray
- Returns:
- configured items schema type
-
itemsObject
Description copied from interface:SchemaArray
Array items should be validated as an objects.- Specified by:
itemsObject
in interfaceSchemaArray
- Returns:
- json object schema
-
itemsArray
Description copied from interface:SchemaArray
Array items should be validated as an arrays.- Specified by:
itemsArray
in interfaceSchemaArray
- Returns:
- json array schema
-
itemsNumber
Description copied from interface:SchemaArray
Array items should be validated as a number.- Specified by:
itemsNumber
in interfaceSchemaArray
- Returns:
- json number schema
-
itemsInteger
Description copied from interface:SchemaArray
Array items should be validated as an integer.- Specified by:
itemsInteger
in interfaceSchemaArray
- Returns:
- json integer schema
-
itemsString
Description copied from interface:SchemaArray
Array items should be validated as a string.- Specified by:
itemsString
in interfaceSchemaArray
- Returns:
- json string schema
-
itemsBoolean
Description copied from interface:SchemaArray
Array items should be validated as a boolean.- Specified by:
itemsBoolean
in interfaceSchemaArray
- Returns:
- json boolean schema
-
itemsNull
Description copied from interface:SchemaArray
Array items should be validated as an null.- Specified by:
itemsNull
in interfaceSchemaArray
- Returns:
- json array schema
-
toString
- Overrides:
toString
in classSchemaItem.BuilderBase.SchemaItemImpl
-
equals
- Overrides:
equals
in classSchemaItem.BuilderBase.SchemaItemImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classSchemaItem.BuilderBase.SchemaItemImpl
-
schemaType
SchemaType schemaType() -
generate
-