Uses of Class
org.springframework.data.mongodb.core.schema.TypedJsonSchemaObject
Package
Description
MongoDB-specific JSON schema implementation classes.
-
Uses of TypedJsonSchemaObject in org.springframework.data.mongodb.core.schema
Modifier and TypeClassDescriptionstatic class
JsonSchemaObject
implementation oftype : 'array'
schema elements.
Provides programmatic access to schema specifics like range, minItems, maxItems,... via a fluent API producing immutableschema objects
.static class
JsonSchemaObject
implementation oftype : 'boolean'
schema elements.
Provides programmatic access to schema specifics via a fluent API producing immutableschema objects
.static class
JsonSchemaObject
implementation oftype : 'number'
,bsonType : 'int'
,bsonType : 'long'
,bsonType : 'double'
andbsonType : 'decimal128'
schema elements.
Provides programmatic access to schema specifics like multipleOf, minimum, maximum,... via a fluent API producing immutableschema objects
.static class
JsonSchemaObject
implementation oftype : 'object'
schema elements.
Provides programmatic access to schema specifics like required, properties, patternProperties,... via a fluent API producing immutableschema objects
.static class
JsonSchemaObject
implementation oftype : 'string'
schema elements.
Provides programmatic access to schema specifics like minLength, maxLength, pattern,... via a fluent API producing immutableschema objects
.Modifier and TypeMethodDescriptionTypedJsonSchemaObject.allOf
(Collection<JsonSchemaObject> allOf) The field value must match all specified schemas.TypedJsonSchemaObject.anyOf
(Collection<JsonSchemaObject> anyOf) The field value must match at least one of the specified schemas.TypedJsonSchemaObject.description
(String description) Set the description.TypedJsonSchemaObject.generatedDescription()
Auto generate the description if not explicitly set.TypedJsonSchemaObject.notMatch
(JsonSchemaObject notMatch) The field value must not match the specified schemas.static TypedJsonSchemaObject
Create a newJsonSchemaObject
matching the giventype
.static TypedJsonSchemaObject
JsonSchemaObject.of
(JsonSchemaObject.Type type) Create a newJsonSchemaObject
of givenJsonSchemaObject.Type
.static TypedJsonSchemaObject
TypedJsonSchemaObject.of
(JsonSchemaObject.Type... types) Creates newTypedJsonSchemaObject
of given types.TypedJsonSchemaObject.oneOf
(Collection<JsonSchemaObject> oneOf) The field value must match exactly one of the specified schemas.TypedJsonSchemaObject.possibleValues
(Collection<? extends Object> possibleValues) enumerates all possible values of the field.Modifier and TypeMethodDescriptionConfigure theJsonSchemaObject.Type
for the property by deriving it from the giventype
.JsonSchemaProperty.JsonSchemaPropertyBuilder.ofType
(JsonSchemaObject.Type type) Configure aJsonSchemaObject.Type
for the property.JsonSchemaProperty.JsonSchemaPropertyBuilder.with
(TypedJsonSchemaObject schemaObject) Configure aTypedJsonSchemaObject
for the property.Modifier and TypeMethodDescriptionJsonSchemaProperty.JsonSchemaPropertyBuilder.with
(TypedJsonSchemaObject schemaObject) Configure aTypedJsonSchemaObject
for the property.