Class PersistentEntityToJsonSchemaConverter
java.lang.Object
org.springframework.data.rest.webmvc.json.PersistentEntityToJsonSchemaConverter
- All Implemented Interfaces:
- ConditionalConverter,- ConditionalGenericConverter,- GenericConverter
public class PersistentEntityToJsonSchemaConverter
extends Object
implements ConditionalGenericConverter
Converter to create 
JsonSchema instances for PersistentEntitys.- Author:
- Jon Brisbin, Oliver Gierke, Greg Turnquist
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverterGenericConverter.ConvertiblePair
- 
Constructor SummaryConstructorsConstructorDescriptionPersistentEntityToJsonSchemaConverter(PersistentEntities entities, Associations associations, MessageResolver resolver, com.fasterxml.jackson.databind.ObjectMapper objectMapper, RepositoryRestConfiguration configuration, PersistentEntityToJsonSchemaConverter.ValueTypeSchemaPropertyCustomizerFactory customizerFactory) Creates a newPersistentEntityToJsonSchemaConverterfor the givenPersistentEntitiesandResourceMappings.
- 
Method SummaryModifier and TypeMethodDescriptionConverts the given type into aJsonSchemainstance.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) booleanmatches(TypeDescriptor sourceType, TypeDescriptor targetType) 
- 
Constructor Details- 
PersistentEntityToJsonSchemaConverterpublic PersistentEntityToJsonSchemaConverter(PersistentEntities entities, Associations associations, MessageResolver resolver, com.fasterxml.jackson.databind.ObjectMapper objectMapper, RepositoryRestConfiguration configuration, PersistentEntityToJsonSchemaConverter.ValueTypeSchemaPropertyCustomizerFactory customizerFactory) Creates a newPersistentEntityToJsonSchemaConverterfor the givenPersistentEntitiesandResourceMappings.- Parameters:
- entities- must not be null.
- associations- must not be null.
- resolver- must not be null.
- objectMapper- must not be null.
- configuration- must not be null.
- customizerFactory- must not be null.
 
 
- 
- 
Method Details- 
matches- Specified by:
- matchesin interface- ConditionalConverter
 
- 
getConvertibleTypes- Specified by:
- getConvertibleTypesin interface- GenericConverter
 
- 
convertConverts the given type into aJsonSchemainstance.- Parameters:
- domainType- must not be null.
- Returns:
 
- 
convert- Specified by:
- convertin interface- GenericConverter
 
 
-