01: package CVS_Server.Projects;
02:
03: /**
04: *
05: * Carries the data, which describes a project on the server.
06: *
07: */
08:
09: import java.util.Vector;
10:
11: import Schmortopf.Utility.Vectorizable;
12:
13: public class ProjectDescription implements Vectorizable {
14:
15: private String projectName = "undefined";
16: private String projectRelativeDirectoryPath = "";
17:
18: private final int version = 1; // actual version number for vectorization
19:
20: /**
21: * Constructor 1 of 2 : usual one
22: */
23: public ProjectDescription() {
24:
25: } // Constructor
26:
27: /**
28: * Constructor 2 of 2 : For recreation from vectorized content:
29: */
30: public ProjectDescription(final Vector representation) {
31: this .createFromVectorRepresentation(representation);
32: } // Constructor
33:
34: /**
35: * Returns the VectorRepresentation of the object's datacontent
36: */
37: public Vector getVectorRepresentation() throws Exception {
38: Vector rep = new Vector();
39: rep.addElement(new Integer(this .version));
40:
41: return rep;
42: } // getVectorRepresentation
43:
44: /**
45: * Sets the object's content to the passed vectorRepresentation.
46: */
47: public void createFromVectorRepresentation(
48: Vector vectorRepresentation) {
49:
50: } // createFromVectorRepresentation
51:
52: } // ProjectDescription
|