01: package com.completex.objective.components.persistency;
02:
03: import java.util.List;
04:
05: /**
06: * Defines methods that are used to save meta object to and recreate from lists
07: *
08: * @author Gennady Krizhevsky
09: */
10: public interface Listable {
11: /**
12: * Returns list representation of this object
13: *
14: * @return list representation of this object
15: */
16: List toList();
17:
18: /**
19: * Restores object state from list
20: *
21: * @param list list representation of this object
22: */
23: void fromList(List list);
24: }
|