public class PersistentEntityToJsonSchemaConverter extends Object implements ConditionalGenericConverter
JsonSchema instances for PersistentEntitys.| Modifier and Type | Class and Description |
|---|---|
static class |
PersistentEntityToJsonSchemaConverter.ValueTypeSchemaPropertyCustomizerFactory |
GenericConverter.ConvertiblePair| Constructor and Description |
|---|
PersistentEntityToJsonSchemaConverter(PersistentEntities entities,
Associations associations,
org.springframework.hateoas.mediatype.MessageResolver resolver,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
RepositoryRestConfiguration configuration,
PersistentEntityToJsonSchemaConverter.ValueTypeSchemaPropertyCustomizerFactory customizerFactory)
Creates a new
PersistentEntityToJsonSchemaConverter for the given PersistentEntities and
ResourceMappings. |
| Modifier and Type | Method and Description |
|---|---|
JsonSchema |
convert(Class<?> domainType)
Converts the given type into a
JsonSchema instance. |
JsonSchema |
convert(Object source,
TypeDescriptor sourceType,
TypeDescriptor targetType) |
Set<GenericConverter.ConvertiblePair> |
getConvertibleTypes() |
boolean |
matches(TypeDescriptor sourceType,
TypeDescriptor targetType) |
public PersistentEntityToJsonSchemaConverter(PersistentEntities entities, Associations associations, org.springframework.hateoas.mediatype.MessageResolver resolver, com.fasterxml.jackson.databind.ObjectMapper objectMapper, RepositoryRestConfiguration configuration, PersistentEntityToJsonSchemaConverter.ValueTypeSchemaPropertyCustomizerFactory customizerFactory)
PersistentEntityToJsonSchemaConverter for the given PersistentEntities and
ResourceMappings.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.public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType)
matches in interface ConditionalConverterpublic Set<GenericConverter.ConvertiblePair> getConvertibleTypes()
getConvertibleTypes in interface GenericConverterpublic JsonSchema convert(Class<?> domainType)
JsonSchema instance.domainType - must not be null.public JsonSchema convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
convert in interface GenericConverterCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.