1 package net.sf.maia;
2
3 import javax.jcr.Property;
4
5 /***
6 *
7 *
8 * @author Magnus Grimsell
9 */
10 public class Page
11 {
12 private static final String DEFAULT_TYPE = "page";
13
14 private String mContent;
15 private String mType = DEFAULT_TYPE;
16 private String mName;
17
18 /***
19 * Accessor to the content of this page. If there are more then
20 * one content property the primary one is returned.
21 *
22 * @return the content of the page
23 */
24 public String getContent()
25 {
26 return mContent;
27 }
28
29 /***
30 * Sets teh content for a wiki page.
31 * @param content The content to set.
32 */
33 public void setContent(String content)
34 {
35 mContent = content;
36 }
37
38 public String getType()
39 {
40 return mType;
41 }
42
43 public void setType(String type)
44 {
45 mType = type;
46 }
47
48 public String getName()
49 {
50 return mName;
51 }
52
53 public void setName(String name)
54 {
55 mName = name;
56 }
57
58 /***
59 * Accessor to a given property.
60 * @param name name of the property
61 * @return the property
62 */
63 public Property getProperty(String name)
64 {
65 return null;
66 }
67 }