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 SchemaArray
SchemaArray.Builder, SchemaArray.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forSchemaArray.static classSchemaArray.BuilderBase<BUILDER extends SchemaArray.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends SchemaArray>Fluent API builder base forSchemaArray.Nested classes/interfaces inherited from interface SchemaItem
SchemaItem.Builder, SchemaItem.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forSchemaItem.static classSchemaItem.BuilderBase<BUILDER extends SchemaItem.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends SchemaItem>Fluent API builder base forSchemaItem. -
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 SchemaItem.BuilderBase.SchemaItemImpl
description, required, schemaType, titleMethods inherited from interface SchemaArray
generateModifier and TypeMethodDescriptiondefault voidgenerate(JsonObject.Builder builder) Generated the Json schema item to the Json.Methods inherited from interface SchemaItem
generateModifier and TypeMethodDescriptiondefault voidgenerate(JsonObject.Builder builder) Generated the Json schema item to the Json.
-
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()
-