Package | Description |
---|---|
org.springframework.data.mongodb.core.schema |
MongoDB-specific JSON schema implementation classes.
|
Modifier and Type | Class and Description |
---|---|
static class |
TypedJsonSchemaObject.ArrayJsonSchemaObject
JsonSchemaObject implementation of type : 'array' schema elements. |
static class |
TypedJsonSchemaObject.BooleanJsonSchemaObject
JsonSchemaObject implementation of type : 'boolean' schema elements. |
static class |
TypedJsonSchemaObject.NumericJsonSchemaObject
JsonSchemaObject implementation of type : 'number' , bsonType : 'int' ,
bsonType : 'long' , bsonType : 'double' and bsonType : 'decimal128' schema elements. |
static class |
TypedJsonSchemaObject.ObjectJsonSchemaObject
JsonSchemaObject implementation of type : 'object' schema elements. |
static class |
TypedJsonSchemaObject.StringJsonSchemaObject
JsonSchemaObject implementation of type : 'string' schema elements. |
Modifier and Type | Method and Description |
---|---|
TypedJsonSchemaObject |
TypedJsonSchemaObject.allOf(Collection<JsonSchemaObject> allOf)
The field value must match all specified schemas.
|
TypedJsonSchemaObject |
TypedJsonSchemaObject.anyOf(Collection<JsonSchemaObject> anyOf)
The field value must match at least one of the specified schemas.
|
TypedJsonSchemaObject |
TypedJsonSchemaObject.description(String description)
Set the description.
|
TypedJsonSchemaObject |
TypedJsonSchemaObject.generatedDescription()
Auto generate the description if not explicitly set.
|
TypedJsonSchemaObject |
TypedJsonSchemaObject.notMatch(JsonSchemaObject notMatch)
The field value must not match the specified schemas.
|
static TypedJsonSchemaObject |
JsonSchemaObject.of(Class<?> type)
Create a new
JsonSchemaObject matching the given type . |
static TypedJsonSchemaObject |
TypedJsonSchemaObject.of(JsonSchemaObject.Type... types)
Creates new
TypedJsonSchemaObject of given types. |
static TypedJsonSchemaObject |
JsonSchemaObject.of(JsonSchemaObject.Type type)
Create a new
JsonSchemaObject of given JsonSchemaObject.Type . |
TypedJsonSchemaObject |
TypedJsonSchemaObject.oneOf(Collection<JsonSchemaObject> oneOf)
The field value must match exactly one of the specified schemas.
|
TypedJsonSchemaObject |
TypedJsonSchemaObject.possibleValues(Collection<? extends Object> possibleValues)
enumerates all possible values of the field.
|
Modifier and Type | Method and Description |
---|---|
IdentifiableJsonSchemaProperty<TypedJsonSchemaObject> |
JsonSchemaProperty.JsonSchemaPropertyBuilder.ofType(Class<?> type)
Configure the
Type for the property by deriving it from the given type . |
IdentifiableJsonSchemaProperty<TypedJsonSchemaObject> |
JsonSchemaProperty.JsonSchemaPropertyBuilder.ofType(JsonSchemaObject.Type type)
Configure a
Type for the property. |
IdentifiableJsonSchemaProperty<TypedJsonSchemaObject> |
JsonSchemaProperty.JsonSchemaPropertyBuilder.with(TypedJsonSchemaObject schemaObject)
Configure a
TypedJsonSchemaObject for the property. |
Modifier and Type | Method and Description |
---|---|
IdentifiableJsonSchemaProperty<TypedJsonSchemaObject> |
JsonSchemaProperty.JsonSchemaPropertyBuilder.with(TypedJsonSchemaObject schemaObject)
Configure a
TypedJsonSchemaObject for the property. |
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.