1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.springframework.extensions.surf;
20
21 import java.io.Serializable;
22 import java.util.Map;
23
24 import org.dom4j.Document;
25
26
27
28
29 public interface ModelObject extends Serializable
30 {
31
32 public static String PROP_ID = "id";
33 public static String PROP_TITLE = "title";
34 public static String PROP_TITLE_ID = "title-id";
35 public static String PROP_DESCRIPTION = "description";
36 public static String PROP_DESCRIPTION_ID = "description-id";
37
38
39
40
41
42
43 public ModelPersisterInfo getKey();
44
45
46
47
48
49
50 public String getId();
51
52
53
54
55
56
57 public String getTypeId();
58
59
60
61
62
63
64 public String getTitle();
65
66
67
68
69
70
71 public void setTitle(String value);
72
73
74
75
76
77
78 public String getTitleId();
79
80
81
82
83
84
85 public void setTitleId(String value);
86
87
88
89
90
91
92 public String getDescription();
93
94
95
96
97
98
99 public void setDescription(String value);
100
101
102
103
104
105
106 public String getDescriptionId();
107
108
109
110
111
112
113 public void setDescriptionId(String value);
114
115
116
117
118
119
120
121
122 public boolean isSaved();
123
124
125
126
127
128
129
130
131 public String toXML();
132
133
134 public boolean getBooleanProperty(String propertyName);
135 public String getProperty(String propertyName);
136 public void setProperty(String propertyName, String propertyValue);
137 public void removeProperty(String propertyName);
138 public Map<String, Serializable> getProperties();
139
140
141 public String getModelProperty(String propertyName);
142 public void setModelProperty(String propertyName, String propertyValue);
143 public void removeModelProperty(String propertyName);
144 public Map<String, Serializable> getModelProperties();
145
146
147 public String getCustomProperty(String propertyName);
148 public void setCustomProperty(String propertyName, String propertyValue);
149 public void removeCustomProperty(String propertyName);
150 public Map<String, Serializable> getCustomProperties();
151
152
153 public String getStoragePath();
154 public String getPersisterId();
155 public long getModificationTime();
156 public void touch();
157
158
159 public String getModelVersion();
160
161
162 public Document getDocument();
163 }