public interface Converter<T>
Converter is an interface describing a Java class that can perform
Object-to-Entity and Entity-to-Object conversions between model data objects
and a Entity representation of those objects that is suitable for rendering.| Modifier and Type | Method and Description |
|---|---|
T |
fromEntity(ConverterContext<T> context,
Entity entity)
Converts an
Entity into a resource of type T. |
Entity |
toEntity(ConverterContext<T> context,
T resource)
|
Entity toEntity(ConverterContext<T> context, T resource) throws ConverterException
context - resource - ConverterExceptionT fromEntity(ConverterContext<T> context, Entity entity) throws ConverterException
Entity into a resource of type T.context - entity - ConverterExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved