Class IdentifiableJsonSchemaProperty.QueryableJsonSchemaProperty
java.lang.Object
org.springframework.data.mongodb.core.schema.IdentifiableJsonSchemaProperty.QueryableJsonSchemaProperty
- All Implemented Interfaces:
JsonSchemaObject,JsonSchemaProperty
- Enclosing class:
- IdentifiableJsonSchemaProperty<T extends JsonSchemaObject>
public static class IdentifiableJsonSchemaProperty.QueryableJsonSchemaProperty
extends Object
implements JsonSchemaProperty
JsonSchemaProperty implementation typically wrapping an encrypted
property to mark it as queryable.- Since:
- 4.5
- Author:
- Christoph Strobl
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.mongodb.core.schema.JsonSchemaObject
JsonSchemaObject.TypeNested classes/interfaces inherited from interface org.springframework.data.mongodb.core.schema.JsonSchemaProperty
JsonSchemaProperty.JsonSchemaPropertyBuilder -
Constructor Summary
ConstructorsConstructorDescriptionQueryableJsonSchemaProperty(JsonSchemaProperty target, QueryCharacteristics characteristics) -
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.
TheSetis likely to contain only one element in most cases.org.bson.DocumentGet 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, waitMethods inherited from interface org.springframework.data.mongodb.core.schema.JsonSchemaProperty
isRequired
-
Constructor Details
-
QueryableJsonSchemaProperty
-
-
Method Details
-
toDocument
public org.bson.Document toDocument()Description copied from interface:JsonSchemaObjectGet 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 producedDocumentthrough the mapping infrastructure.- Specified by:
toDocumentin interfaceJsonSchemaObject- Returns:
- never null.
-
getIdentifier
Description copied from interface:JsonSchemaPropertyThe identifier can be either the property name or the regex expression properties have to match when used along withTypedJsonSchemaObject.ObjectJsonSchemaObject.patternProperties(JsonSchemaProperty...).- Specified by:
getIdentifierin interfaceJsonSchemaProperty- Returns:
- never null.
-
getTypes
Description copied from interface:JsonSchemaObjectGet the set of types defined for this schema element.
TheSetis likely to contain only one element in most cases.- Specified by:
getTypesin interfaceJsonSchemaObject- Returns:
- never null.
-
getTargetProperty
-
getCharacteristics
-