1 | public class DocumentImpl extends ItemImpl implements Document {↵ | | 1 | public class ↵
|
2 | private Blob content;↵ | | |
|
3 | private Calendar modified;↵ | | |
|
4 | private Calendar created;↵ | | |
|
5 | /**↵ | | |
|
6 | * @return Returns the created.↵ | | |
|
7 | */↵ | | |
|
8 | public Calendar getCreated() {↵ | | |
|
9 | return created;↵ | | |
|
10 | }↵ | | |
|
11 | /**↵ | | |
|
12 | * @param created The created to set.↵ | | |
|
13 | */↵ | | |
|
14 | public void setCreated(Calendar created) {↵ | | |
|
15 | this.created = created;↵ | | |
|
16 | }↵ | | |
|
17 | /**↵ | | |
|
18 | * @return Returns the modified.↵ | | |
|
19 | */↵ | | |
|
20 | public Calendar getModified() {↵ | | |
|
21 | return modified;↵ | | |
|
22 | }↵ | | |
|
23 | /**↵ | | |
|
24 | * @param modified The modified to set.↵ | | |
|
25 | */↵ | | |
|
26 | public void setModified(Calendar modified) {↵ | | |
|
27 | this.modified = modified;↵ | | |
|
28 | }↵ | | |
|
29 | /**↵ | | |
|
30 | * @return Returns the content.↵ | | |
|
31 | */↵ | | |
|
32 | public Blob getContent() {↵ | | |
|
33 | return content;↵ | | |
|
34 | }↵ | | |
|
35 | /**↵ | | |
|
36 | * @param content The content to set.↵ | | |
|
37 | */↵ | | |
|
38 | public void setContent(Blob content) {↵ | | |
|
39 | this.content = content↵ | | 2 | Immutable {↵
|
| | | 3 | private String foo;↵
|
| | | 4 | private String bar;↵
|
| | | 5 | private String id;↵
|
| | | 6 | ↵
|
| | | 7 | public String getFoo() {↵
|
| | | 8 | return foo;↵
|
| | | 9 | }↵
|
| | | 10 | ↵
|
| | | 11 | public void setFoo(String foo) {↵
|
| | | 12 | this.foo = foo;↵
|
| | | 13 | }↵
|
| | | 14 | ↵
|
| | | 15 | public String getBar() {↵
|
| | | 16 | return bar;↵
|
| | | 17 | }↵
|
| | | 18 | ↵
|
| | | 19 | public void setBar(String bar) {↵
|
| | | 20 | this.bar = bar;↵
|
| | | 21 | }↵
|
| | | 22 | ↵
|
| | | 23 | public String getId() {↵
|
| | | 24 | return id;↵
|
| | | 25 | }↵
|
| | | 26 | ↵
|
| | | 27 | public void setId(String id) {↵
|
40 | ;↵ | | 28 | this.id = id;↵
|
41 | | | 29 |
|