1 package com.sri.emo.wizard.creation.persistence;
2
3 import com.sri.emo.dbobj.WizDefinition;
4 import com.sri.emo.wizard.creation.model.CreationBeans;
5
6 /***
7 * Completion DBObject Converter provides an adapter to bridge pure
8 * POJO repository classes with Expresso DBObjects.
9 *
10 * @author Michael Rimov
11 */
12 public interface CreationDBObjConverter {
13
14 /***
15 * Converts a Completion Bean to a Wiz Definition bean. The Wizdefinition
16 * bean will have links to navigate to the underlying completion beans.
17 *
18 * @param source CompletionBean the completion bean.
19 * @return WizDefinition constructed wizard definition.
20 */
21 public WizDefinition convertToDBObject(CreationBeans source);
22
23 /***
24 * Converts a wizard definition to a completion bean.
25 *
26 * @param source WizDefinition
27 * @return CompletionBean
28 */
29 public CreationBeans convertToBean(WizDefinition source);
30 }