Class IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
java.lang.Object
org.springframework.data.mongodb.core.schema.IdentifiableJsonSchemaProperty<TypedJsonSchemaObject.ArrayJsonSchemaObject>
org.springframework.data.mongodb.core.schema.IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
- All Implemented Interfaces:
JsonSchemaObject
,JsonSchemaProperty
- Enclosing class:
- IdentifiableJsonSchemaProperty<T extends JsonSchemaObject>
public static class IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
extends IdentifiableJsonSchemaProperty<TypedJsonSchemaObject.ArrayJsonSchemaObject>
Convenience
JsonSchemaProperty
implementation for a type : 'array'
property.- Since:
- 2.1
- Author:
- Christoph Strobl
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.mongodb.core.schema.IdentifiableJsonSchemaProperty
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty, IdentifiableJsonSchemaProperty.BooleanJsonSchemaProperty, IdentifiableJsonSchemaProperty.DateJsonSchemaProperty, IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty, IdentifiableJsonSchemaProperty.NullJsonSchemaProperty, IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty, IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty, IdentifiableJsonSchemaProperty.RequiredJsonSchemaProperty, IdentifiableJsonSchemaProperty.StringJsonSchemaProperty, IdentifiableJsonSchemaProperty.TimestampJsonSchemaProperty, IdentifiableJsonSchemaProperty.UntypedJsonSchemaProperty
Nested classes/interfaces inherited from interface org.springframework.data.mongodb.core.schema.JsonSchemaObject
JsonSchemaObject.Type
Nested classes/interfaces inherited from interface org.springframework.data.mongodb.core.schema.JsonSchemaProperty
JsonSchemaProperty.JsonSchemaPropertyBuilder
-
Field Summary
Fields inherited from class org.springframework.data.mongodb.core.schema.IdentifiableJsonSchemaProperty
identifier, jsonSchemaObjectDelegate
-
Constructor Summary
ConstructorsConstructorDescriptionArrayJsonSchemaProperty
(String identifier, TypedJsonSchemaObject.ArrayJsonSchemaObject schemaObject) -
Method Summary
Modifier and TypeMethodDescriptionadditionalItems
(boolean additionalItemsAllowed) allOf
(Collection<JsonSchemaObject> allOf) allOf
(JsonSchemaObject... allOf) anyOf
(Collection<JsonSchemaObject> anyOf) anyOf
(JsonSchemaObject... anyOf) description
(String description) items
(Collection<JsonSchemaObject> items) items
(JsonSchemaObject... items) maxItems
(int count) minItems
(int count) notMatch
(JsonSchemaObject notMatch) oneOf
(Collection<JsonSchemaObject> oneOf) oneOf
(JsonSchemaObject... oneOf) possibleValues
(Object... possibleValues) possibleValues
(Collection<Object> possibleValues) uniqueItems
(boolean uniqueItems) Methods inherited from class org.springframework.data.mongodb.core.schema.IdentifiableJsonSchemaProperty
getIdentifier, getTypes, toDocument
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.mongodb.core.schema.JsonSchemaProperty
isRequired
-
Constructor Details
-
ArrayJsonSchemaProperty
public ArrayJsonSchemaProperty(String identifier, TypedJsonSchemaObject.ArrayJsonSchemaObject schemaObject) - Parameters:
identifier
- identifier the property name or patternProperty regex. Must not be null nor empty.schemaObject
- must not be null.
-
-
Method Details
-
uniqueItems
- Parameters:
uniqueItems
-- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-
range
- Parameters:
range
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-
minItems
- Parameters:
count
-- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-
maxItems
- Parameters:
count
-- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-
items
- Parameters:
items
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-
items
public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty items(Collection<JsonSchemaObject> items) - Parameters:
items
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-
additionalItems
public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty additionalItems(boolean additionalItemsAllowed) - Parameters:
additionalItemsAllowed
-- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-
possibleValues
public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty possibleValues(Object... possibleValues) - Parameters:
possibleValues
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-
allOf
- Parameters:
allOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-
anyOf
- Parameters:
anyOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-
oneOf
- Parameters:
oneOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-
possibleValues
public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty possibleValues(Collection<Object> possibleValues) - Parameters:
possibleValues
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-
allOf
public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty allOf(Collection<JsonSchemaObject> allOf) - Parameters:
allOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-
anyOf
public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty anyOf(Collection<JsonSchemaObject> anyOf) - Parameters:
anyOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-
oneOf
public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty oneOf(Collection<JsonSchemaObject> oneOf) - Parameters:
oneOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-
notMatch
- Parameters:
notMatch
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-
description
- Parameters:
description
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty
. - See Also:
-
generatedDescription
- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
. - See Also:
-