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
- ConverterException
T fromEntity(ConverterContext<T> context, Entity entity) throws ConverterException
Entity
into a resource of type T
.context
- entity
- ConverterException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"