1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.om.page.psml;
18
19 import org.apache.jetspeed.om.page.Document;
20 import org.apache.jetspeed.page.document.psml.AbstractNode;
21
22
23 /***
24 * <p>
25 * Link
26 * </p>
27 * <p>
28 *
29 * </p>
30 *
31 * @author <a href="mailto:weaver@apache.org">Scott T. Weaver</a>
32 * @version $Id: LinkImpl.java 314803 2005-10-12 06:35:19Z rwatler $
33 *
34 */
35 public abstract class DocumentImpl extends AbstractNode implements Document
36 {
37
38 private String version;
39 private boolean dirty=false;
40
41 /***
42 * unmarshalled - notification that this instance has been
43 * loaded from the persistent store
44 */
45 public void unmarshalled()
46 {
47
48 super.unmarshalled();
49
50
51 if (getVersion() == null)
52 {
53 setVersion(getVersion());
54 }
55 }
56 /***
57 * @return Returns the version.
58 */
59 public String getVersion()
60 {
61 return version;
62 }
63 /***
64 * @param version The version to set.
65 */
66 public void setVersion(String version)
67 {
68 this.version = version;
69 }
70
71 public boolean isDirty() {
72 return dirty;
73 }
74
75 public void setDirty(boolean dirty) {
76 this.dirty = dirty;
77 }
78
79 }