Class IdentifiableJsonSchemaProperty<T extends JsonSchemaObject>
java.lang.Object
org.springframework.data.mongodb.core.schema.IdentifiableJsonSchemaProperty<T>
- All Implemented Interfaces:
JsonSchemaObject
,JsonSchemaProperty
- Direct Known Subclasses:
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
,IdentifiableJsonSchemaProperty.BooleanJsonSchemaProperty
,IdentifiableJsonSchemaProperty.DateJsonSchemaProperty
,IdentifiableJsonSchemaProperty.NullJsonSchemaProperty
,IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty
,IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
,IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
,IdentifiableJsonSchemaProperty.TimestampJsonSchemaProperty
,IdentifiableJsonSchemaProperty.UntypedJsonSchemaProperty
public class IdentifiableJsonSchemaProperty<T extends JsonSchemaObject>
extends Object
implements JsonSchemaProperty
JsonSchemaProperty
implementation.- Since:
- 2.1
- Author:
- Christoph Strobl, Mark Paluch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
ConvenienceJsonSchemaProperty
implementation for atype : 'array'
property.static class
ConvenienceJsonSchemaProperty
implementation for atype : 'boolean'
property.static class
ConvenienceJsonSchemaProperty
implementation for atype : 'date'
property.static class
JsonSchemaProperty
implementation for encrypted fields.static class
ConvenienceJsonSchemaProperty
implementation for atype : 'null'
property.static class
ConvenienceJsonSchemaProperty
implementation for atype : 'number'
property.static class
ConvenienceJsonSchemaProperty
implementation for atype : 'object'
property.static class
DelegatingJsonSchemaProperty
implementation having a required flag for evaluation during schema creation process.static class
ConvenienceJsonSchemaProperty
implementation for atype : 'string'
property.static class
ConvenienceJsonSchemaProperty
implementation for atype : 'timestamp'
property.static class
ConvenienceJsonSchemaProperty
implementation without atype
property.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 -
Method Summary
Modifier and TypeMethodDescriptionThe identifier can be either the property name or the regex expression properties have to match when used along withTypedJsonSchemaObject.ObjectJsonSchemaObject.patternProperties(JsonSchemaProperty...)
.getTypes()
Get the set of types defined for this schema element.
TheSet
is likely to contain only one element in most cases.org.bson.Document
Get the MongoDB specific representation.
The Document may contain fields (eg. like bsonType) not contained in the JsonSchema specification.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
-
Field Details
-
identifier
-
jsonSchemaObjectDelegate
-
-
Method Details
-
getIdentifier
Description copied from interface:JsonSchemaProperty
The identifier can be either the property name or the regex expression properties have to match when used along withTypedJsonSchemaObject.ObjectJsonSchemaObject.patternProperties(JsonSchemaProperty...)
.- Specified by:
getIdentifier
in interfaceJsonSchemaProperty
- Returns:
- never null.
-
toDocument
public org.bson.Document toDocument()Description copied from interface:JsonSchemaObject
Get the MongoDB specific representation.
The Document may contain fields (eg. like bsonType) not contained in the JsonSchema specification. It may also contain types not directly processable by the MongoDB java driver. Make sure to run the producedDocument
through the mapping infrastructure.- Specified by:
toDocument
in interfaceJsonSchemaObject
- Returns:
- never null.
-
getTypes
Description copied from interface:JsonSchemaObject
Get the set of types defined for this schema element.
TheSet
is likely to contain only one element in most cases.- Specified by:
getTypes
in interfaceJsonSchemaObject
- Returns:
- never null.
-