public class UriToEntityConverter extends Object implements ConditionalGenericConverter
ConditionalGenericConverter that can convert a URI domain entity.GenericConverter.ConvertiblePair| Constructor and Description |
|---|
UriToEntityConverter(PersistentEntities entities,
DomainClassConverter<?> domainClassConverter)
|
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Object source,
TypeDescriptor sourceType,
TypeDescriptor targetType) |
Set<GenericConverter.ConvertiblePair> |
getConvertibleTypes() |
boolean |
matches(TypeDescriptor sourceType,
TypeDescriptor targetType) |
public UriToEntityConverter(PersistentEntities entities, DomainClassConverter<?> domainClassConverter)
entities - must not be null.domainClassConverter - must not be null.public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType)
matches in interface ConditionalConverterpublic Set<GenericConverter.ConvertiblePair> getConvertibleTypes()
getConvertibleTypes in interface GenericConverterpublic Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
convert in interface GenericConverterCopyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.