public class PersistentEntityToJsonSchemaConverter extends Object implements ConditionalGenericConverter
GenericConverter.ConvertiblePair| Constructor and Description |
|---|
PersistentEntityToJsonSchemaConverter(PersistentEntities entities,
ResourceMappings mappings,
MessageSourceAccessor accessor,
org.springframework.hateoas.EntityLinks entityLinks)
Creates a new
PersistentEntityToJsonSchemaConverter for the given PersistentEntities and
ResourceMappings. |
| Modifier and Type | Method and Description |
|---|---|
JsonSchema |
convert(Class<?> domainType) |
Object |
convert(Object source,
TypeDescriptor sourceType,
TypeDescriptor targetType) |
Set<GenericConverter.ConvertiblePair> |
getConvertibleTypes() |
boolean |
matches(TypeDescriptor sourceType,
TypeDescriptor targetType) |
public PersistentEntityToJsonSchemaConverter(PersistentEntities entities, ResourceMappings mappings, MessageSourceAccessor accessor, org.springframework.hateoas.EntityLinks entityLinks)
PersistentEntityToJsonSchemaConverter for the given PersistentEntities and
ResourceMappings.entities - must not be null.mappings - must not be null.accessor - public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType)
matches in interface ConditionalConverterpublic Set<GenericConverter.ConvertiblePair> getConvertibleTypes()
getConvertibleTypes in interface GenericConverterpublic JsonSchema convert(Class<?> domainType)
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
convert in interface GenericConverterCopyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.