Class IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
java.lang.Object
org.springframework.data.mongodb.core.schema.IdentifiableJsonSchemaProperty<TypedJsonSchemaObject.ObjectJsonSchemaObject>
org.springframework.data.mongodb.core.schema.IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
- All Implemented Interfaces:
JsonSchemaObject
,JsonSchemaProperty
- Enclosing class:
- IdentifiableJsonSchemaProperty<T extends JsonSchemaObject>
public static class IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
extends IdentifiableJsonSchemaProperty<TypedJsonSchemaObject.ObjectJsonSchemaObject>
Convenience
JsonSchemaProperty
implementation for a type : 'object'
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
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties
(boolean additionalPropertiesAllowed) additionalProperties
(TypedJsonSchemaObject.ObjectJsonSchemaObject additionalProperties) allOf
(Collection<JsonSchemaObject> allOf) allOf
(JsonSchemaObject... allOf) anyOf
(Collection<JsonSchemaObject> anyOf) anyOf
(JsonSchemaObject... anyOf) description
(String description) maxProperties
(int count) minProperties
(int count) notMatch
(JsonSchemaObject notMatch) oneOf
(Collection<JsonSchemaObject> oneOf) oneOf
(JsonSchemaObject... oneOf) possibleValues
(Object... possibleValues) possibleValues
(Collection<Object> possibleValues) properties
(JsonSchemaProperty... properties) propertiesCount
(Range<Integer> range) 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
-
Method Details
-
propertiesCount
public IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty propertiesCount(Range<Integer> range) - Parameters:
range
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
.
-
minProperties
- Parameters:
count
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
maxProperties
- Parameters:
count
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
required
- Parameters:
properties
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
additionalProperties
public IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty additionalProperties(boolean additionalPropertiesAllowed) - Parameters:
additionalPropertiesAllowed
-- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
additionalProperties
public IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty additionalProperties(TypedJsonSchemaObject.ObjectJsonSchemaObject additionalProperties) - Parameters:
additionalProperties
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
properties
public IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty properties(JsonSchemaProperty... properties) - Parameters:
properties
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
possibleValues
public IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty possibleValues(Object... possibleValues) - Parameters:
possibleValues
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
allOf
- Parameters:
allOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
anyOf
- Parameters:
anyOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
oneOf
- Parameters:
oneOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
possibleValues
public IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty possibleValues(Collection<Object> possibleValues) - Parameters:
possibleValues
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
allOf
public IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty allOf(Collection<JsonSchemaObject> allOf) - Parameters:
allOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
anyOf
public IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty anyOf(Collection<JsonSchemaObject> anyOf) - Parameters:
anyOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
oneOf
public IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty oneOf(Collection<JsonSchemaObject> oneOf) - Parameters:
oneOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
notMatch
- Parameters:
notMatch
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
description
- Parameters:
description
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
generatedDescription
- Returns:
- new instance of
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
. - See Also:
-
getProperties
-