Package com.lexmark.saperion.adapter
Interface BeanAdapter<T>
- Type Parameters:
T
- target type
public interface BeanAdapter<T>
Type adapters provide a mechanism to convert Saperion data objects to standard java beans, such as data transfer
objects. These beans MUST follow the java beans naming conventions. They must provide appropriate getter and setter
methods for all properties.
- Author:
- owaeldrich
-
Method Summary
Modifier and TypeMethodDescriptionconvert()
The convert method creates a new instance of the adapter's data transfer object and populates the result object with the values resolved by the adapter.The convert method copies all properties of the source type to the adopted target type and returns a self reference.
-
Method Details
-
convert
T convert()The convert method creates a new instance of the adapter's data transfer object and populates the result object with the values resolved by the adapter.- Returns:
- a populated instance of an adapted data transfer object
-
convert
The convert method copies all properties of the source type to the adopted target type and returns a self reference. This reference is used as bean reference by the caller.- Parameters:
source
- the bean source type- Returns:
- a self reference to the initialized adapter
-