1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package de.fu_berlin.ties.io;
23
24 /***
25 * Classes implementing this interface contain multiple
26 * {@link de.fu_berlin.ties.io.Storable} objects and support serialization
27 * and deserialization of these objects in a human-readable format.
28 *
29 * @author Christian Siefkes
30 * @version $Revision: 1.4 $, $Date: 2006/10/21 16:04:22 $, $Author: siefkes $
31 */
32 public interface RestorableContainer extends StorableContainer {
33
34 /***
35 * Restores items stored in a field container and adds them to this
36 * instance. The provided field container must have been filled by calling
37 * {@link #storeEntries(FieldContainer)} on a container of the same or
38 * an equivalent type.
39 *
40 * @param fContainer the field container to read
41 * @throws IllegalArgumentException if <code>fContainer</code> contains
42 * a wrong kind of {@link FieldMap}s
43 */
44 void restoreEntries(final FieldContainer fContainer)
45 throws IllegalArgumentException;
46
47 }