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
ConstructorsModifierConstructorDescriptionprotectedSchemaArrayImpl(SchemaArray.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()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, titleMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.json.schema.SchemaArray
generateMethods inherited from interface io.helidon.json.schema.SchemaItem
description, generate, 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:SchemaArrayMax number of items an array can have.- Specified by:
maxItemsin interfaceSchemaArray- Returns:
- max array size
-
minItems
Description copied from interface:SchemaArrayMin number of items an array can have.- Specified by:
minItemsin interfaceSchemaArray- Returns:
- min array size
-
uniqueItems
Description copied from interface:SchemaArrayWhether the array can contain duplicate values.- Specified by:
uniqueItemsin interfaceSchemaArray- Returns:
- duplicate values allowed
-
items
Description copied from interface:SchemaArrayJson type used to validate the content of the array. It is filled by the more specific configured schema item type.- Specified by:
itemsin interfaceSchemaArray- Returns:
- configured items schema type
-
itemsObject
Description copied from interface:SchemaArrayArray items should be validated as an objects.- Specified by:
itemsObjectin interfaceSchemaArray- Returns:
- json object schema
-
itemsArray
Description copied from interface:SchemaArrayArray items should be validated as an arrays.- Specified by:
itemsArrayin interfaceSchemaArray- Returns:
- json array schema
-
itemsNumber
Description copied from interface:SchemaArrayArray items should be validated as a number.- Specified by:
itemsNumberin interfaceSchemaArray- Returns:
- json number schema
-
itemsInteger
Description copied from interface:SchemaArrayArray items should be validated as an integer.- Specified by:
itemsIntegerin interfaceSchemaArray- Returns:
- json integer schema
-
itemsString
Description copied from interface:SchemaArrayArray items should be validated as a string.- Specified by:
itemsStringin interfaceSchemaArray- Returns:
- json string schema
-
itemsBoolean
Description copied from interface:SchemaArrayArray items should be validated as a boolean.- Specified by:
itemsBooleanin interfaceSchemaArray- Returns:
- json boolean schema
-
itemsNull
Description copied from interface:SchemaArrayArray items should be validated as an null.- Specified by:
itemsNullin interfaceSchemaArray- Returns:
- json array schema
-
toString
- Overrides:
toStringin classSchemaItem.BuilderBase.SchemaItemImpl
-
equals
- Overrides:
equalsin classSchemaItem.BuilderBase.SchemaItemImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classSchemaItem.BuilderBase.SchemaItemImpl
-
schemaType
SchemaType schemaType()
-