01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
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: * <p>
24: * Link
25: * </p>
26: * <p>
27: *
28: * </p>
29: *
30: * @author <a href="mailto:weaver@apache.org">Scott T. Weaver</a>
31: * @version $Id: LinkImpl.java 314803 2005-10-12 06:35:19Z rwatler $
32: *
33: */
34: public abstract class DocumentImpl extends AbstractNode implements
35: Document {
36:
37: private String version;
38: private boolean dirty = false;
39:
40: /**
41: * unmarshalled - notification that this instance has been
42: * loaded from the persistent store
43: */
44: public void unmarshalled() {
45: // notify super class implementation
46: super .unmarshalled();
47:
48: // default version of pages to name
49: if (getVersion() == null) {
50: setVersion(getVersion());
51: }
52: }
53:
54: /**
55: * @return Returns the version.
56: */
57: public String getVersion() {
58: return version;
59: }
60:
61: /**
62: * @param version The version to set.
63: */
64: public void setVersion(String version) {
65: this .version = version;
66: }
67:
68: public boolean isDirty() {
69: return dirty;
70: }
71:
72: public void setDirty(boolean dirty) {
73: this.dirty = dirty;
74: }
75:
76: }
|