P
- The type of NestingBuilder
that was used to create this
builder. This is the type that will be returned by calling
NestedBuilder.finish()
on this builder.public interface ArrayTypeBuilder<P extends NestingBuilder> extends NestedBuilder<P>, NestingBuilder, CommonBuilder<ArrayTypeBuilder<P>>
Modifier and Type | Method and Description |
---|---|
ElementTypeBuilder<ArrayTypeBuilder<P>> |
buildDefinition()
Builder method to create a type definition for this array.
|
ArrayTypeBuilder<P> |
withMaxItems(int value)
This method includes the "maxItems" attribute in the array type
definition
|
ArrayTypeBuilder<P> |
withMinItems(int value)
This method includes the "minItems" attribute in the array type
definition
|
ArrayTypeBuilder<P> |
withUniqueItems(boolean value)
This method includes the "uniqueItems" attribute in the array type
definition
|
finish
getObjectRoot
withDescription, withId, withIgnoreForFilters, withIgnoreForSelection, withIgnoreForSort, withTitle
ArrayTypeBuilder<P> withMaxItems(int value)
value
- the value of the attributeArrayTypeBuilder
instanceArrayTypeBuilder<P> withMinItems(int value)
value
- the value of the attributeArrayTypeBuilder
instanceArrayTypeBuilder<P> withUniqueItems(boolean value)
value
- the value of the attributeArrayTypeBuilder
instanceElementTypeBuilder<ArrayTypeBuilder<P>> buildDefinition()
NestedBuilder.finish()
on the builder
returned by this method will return the original builder instance. The
definition will be replaced if this method is subsequently called again.ElementTypeBuilder
instance that can be used to continue
building on the type definition