01: package Schmortopf.Utility;
02:
03: /**
04: * A class which implements this interface,
05: * can save its datacontent into a vectorstructure,
06: * as used for transfering its contents through the net,
07: * as well as for saveing/ loading.
08: * Plus it can restore its entire content from such a vectorstructure.
09: *
10: */
11:
12: import java.util.Vector;
13:
14: public interface Vectorizable {
15:
16: /**
17: * Returns the VectorRepresentation of the object's datacontent
18: */
19: public Vector getVectorRepresentation() throws Exception;
20:
21: /**
22: * Sets the object's content to the passed vectorRepresentation.
23: */
24: public void createFromVectorRepresentation(
25: Vector vectorRepresentation);
26:
27: } // interface Vectorizable
|