1 package com.sri.emo.wizard.completion.persistence; 2 3 import com.sri.emo.dbobj.WizDefinition; 4 import com.sri.emo.wizard.completion.model.CompletionBean; 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 CompletionDBObjConverter { 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(CompletionBean source); 22 23 /*** 24 * Converts a wizard definition to a completion bean. 25 * 26 * @param source WizDefinition 27 * @return CompletionBean 28 */ 29 public CompletionBean convertToBean(WizDefinition source); 30 }