Module spring.data.mongodb
Interface MongoJsonSchemaCreator.JsonSchemaPropertyContext
- Enclosing interface:
- MongoJsonSchemaCreator
public static interface MongoJsonSchemaCreator.JsonSchemaPropertyContext
The context in which a specific
getProperty() is encountered during schema creation.- Since:
- 3.3
-
Method Summary
Modifier and TypeMethodDescriptiongetPath()The path to a given field/property in dot notation.The current property.<T> MongoPersistentEntity<T>resolveEntity(MongoPersistentProperty property) Obtain theMongoPersistentEntityfor a given property.
-
Method Details
-
getPath
String getPath()The path to a given field/property in dot notation.- Returns:
- never null.
-
getProperty
MongoPersistentProperty getProperty()The current property.- Returns:
- never null.
-
resolveEntity
Obtain theMongoPersistentEntityfor a given property.- Type Parameters:
T-- Parameters:
property- must not be null.- Returns:
- null if the property is not an entity. It is nevertheless recommend to check
PersistentProperty.isEntity()first.
-