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 IdentifiableJsonSchemaProperty
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty, IdentifiableJsonSchemaProperty.BooleanJsonSchemaProperty, IdentifiableJsonSchemaProperty.DateJsonSchemaProperty, IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty, IdentifiableJsonSchemaProperty.NullJsonSchemaProperty, IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty, IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty, IdentifiableJsonSchemaProperty.QueryableJsonSchemaProperty, IdentifiableJsonSchemaProperty.RequiredJsonSchemaProperty, IdentifiableJsonSchemaProperty.StringJsonSchemaProperty, IdentifiableJsonSchemaProperty.TimestampJsonSchemaProperty, IdentifiableJsonSchemaProperty.UntypedJsonSchemaPropertyNested classes/interfaces inherited from interface JsonSchemaObject
JsonSchemaObject.TypeNested classes/interfaces inherited from interface JsonSchemaProperty
JsonSchemaProperty.JsonSchemaPropertyBuilder -
Field Summary
Fields inherited from class 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 IdentifiableJsonSchemaProperty
getIdentifier, getTypes, toDocumentMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty uniqueItems(boolean uniqueItems) - Parameters:
uniqueItems-- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-
range
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty range(Range<Integer> range) - Parameters:
range- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-
minItems
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty minItems(int count) - Parameters:
count-- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-
maxItems
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty maxItems(int count) - Parameters:
count-- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-
items
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty items(JsonSchemaObject... items) - Parameters:
items- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-
items
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty items(Collection<JsonSchemaObject> items) - Parameters:
items- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-
additionalItems
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty additionalItems(boolean additionalItemsAllowed) - Parameters:
additionalItemsAllowed-- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-
possibleValues
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty possibleValues(Object... possibleValues) - Parameters:
possibleValues- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-
allOf
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty allOf(JsonSchemaObject... allOf) - Parameters:
allOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-
anyOf
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty anyOf(JsonSchemaObject... anyOf) - Parameters:
anyOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-
oneOf
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty oneOf(JsonSchemaObject... oneOf) - Parameters:
oneOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-
possibleValues
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty possibleValues(Collection<Object> possibleValues) - Parameters:
possibleValues- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-
allOf
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty allOf(Collection<JsonSchemaObject> allOf) - Parameters:
allOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-
anyOf
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty anyOf(Collection<JsonSchemaObject> anyOf) - Parameters:
anyOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-
oneOf
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty oneOf(Collection<JsonSchemaObject> oneOf) - Parameters:
oneOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-
notMatch
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty notMatch(JsonSchemaObject notMatch) - Parameters:
notMatch- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-
description
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty description(String description) - Parameters:
description- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
generatedDescription
- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty. - See Also:
-