Package com.adobe.reef.siren.converter
Interface Converter<T>
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.-
Method Summary
Modifier and TypeMethodDescriptionfromEntity(ConverterContext<T> context, Entity entity) Converts anEntityinto a resource of typeT.toEntity(ConverterContext<T> context, T resource)
-
Method Details
-
toEntity
- Parameters:
context-resource-- Returns:
- Throws:
ConverterException
-
fromEntity
Converts anEntityinto a resource of typeT.- Parameters:
context-entity-- Returns:
- Throws:
ConverterException
-