@ConsumerType
public interface ResourceConverter<T>
ResourceConverter is an interface describing a Java class that can perform
 Object-to-Object conversions between model data objects and a representation
 T of those objects that is suitable for rendering.
 
 Implementors should ensure that a ResourceConverter can be retrieved adapting
 a Resource by implementing an
 AdapterFactory.
| Modifier and Type | Method and Description | 
|---|---|
T | 
toEntity(ResourceConverterContext context)
Converts a  
resource into an object of type T to represent
 an entity. | 
T | 
toSubEntity(ResourceConverterContext context)
Converts a  
resource to an object of type T to represent a
 sub-entity. | 
T toEntity(ResourceConverterContext context) throws ResourceConverterException
resource into an object of type T to represent
 an entity.context - Converter contextResourceConverterException - if an error occurs during conversionT toSubEntity(ResourceConverterContext context) throws ResourceConverterException
resource to an object of type T to represent a
 sub-entity. The sub-entity might only contain a subset of information and
 might be used to represent child elements of a collection.context - Converter contextResourceConverterException - if an error occurs during conversionCopyright © 2010 - 2023 Adobe. All Rights Reserved