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 ConditionalConverter
public Set<GenericConverter.ConvertiblePair> getConvertibleTypes()
getConvertibleTypes
in interface GenericConverter
public JsonSchema convert(Class<?> domainType)
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
convert
in interface GenericConverter
Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.