Class IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
java.lang.Object
org.springframework.data.mongodb.core.schema.IdentifiableJsonSchemaProperty<TypedJsonSchemaObject.StringJsonSchemaObject>
org.springframework.data.mongodb.core.schema.IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
- All Implemented Interfaces:
JsonSchemaObject
,JsonSchemaProperty
- Enclosing class:
- IdentifiableJsonSchemaProperty<T extends JsonSchemaObject>
public static class IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
extends IdentifiableJsonSchemaProperty<TypedJsonSchemaObject.StringJsonSchemaObject>
Convenience
JsonSchemaProperty
implementation for a type : 'string'
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 TypeMethodDescriptionallOf
(Collection<JsonSchemaObject> allOf) allOf
(JsonSchemaObject... allOf) anyOf
(Collection<JsonSchemaObject> anyOf) anyOf
(JsonSchemaObject... anyOf) description
(String description) maxLength
(int length) minLength
(int length) notMatch
(JsonSchemaObject notMatch) oneOf
(Collection<JsonSchemaObject> oneOf) oneOf
(JsonSchemaObject... oneOf) possibleValues
(String... possibleValues) possibleValues
(Collection<String> possibleValues) 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
-
minLength
- Parameters:
length
-- Returns:
- new instance of
IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
. - See Also:
-
maxLength
- Parameters:
length
-- Returns:
- new instance of
IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
. - See Also:
-
matching
- Parameters:
pattern
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
. - See Also:
-
possibleValues
public IdentifiableJsonSchemaProperty.StringJsonSchemaProperty possibleValues(String... possibleValues) - Parameters:
possibleValues
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
. - See Also:
-
allOf
- Parameters:
allOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
. - See Also:
-
anyOf
- Parameters:
anyOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
. - See Also:
-
oneOf
- Parameters:
oneOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
. - See Also:
-
possibleValues
public IdentifiableJsonSchemaProperty.StringJsonSchemaProperty possibleValues(Collection<String> possibleValues) - Parameters:
possibleValues
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
. - See Also:
-
allOf
public IdentifiableJsonSchemaProperty.StringJsonSchemaProperty allOf(Collection<JsonSchemaObject> allOf) - Parameters:
allOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
. - See Also:
-
anyOf
public IdentifiableJsonSchemaProperty.StringJsonSchemaProperty anyOf(Collection<JsonSchemaObject> anyOf) - Parameters:
anyOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
. - See Also:
-
oneOf
public IdentifiableJsonSchemaProperty.StringJsonSchemaProperty oneOf(Collection<JsonSchemaObject> oneOf) - Parameters:
oneOf
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
. - See Also:
-
notMatch
- Parameters:
notMatch
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
. - See Also:
-
description
- Parameters:
description
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
. - See Also:
-
generatedDescription
- Returns:
- new instance of
IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
. - See Also:
-