1 | public class A {↵ | | 1 | public class Document extends Item {↵
|
|
2 | private Long id;↵ | | 2 | private ↵
|
3 | private String name;↵ | | |
|
4 | private E forwar↵ | | 3 | Blob content;↵
|
|
| | | 4 | private Calendar modified;↵
|
|
5 | d;↵ | | 5 | private Calendar created;↵
|
6 | ↵ | | |
|
7 | /**↵ | | 6 | /**↵
|
8 | * Returns the id.↵ | | 7 | * @return Returns the ↵
|
9 | * @return Long↵ | | 8 | created.↵
|
10 | */↵ | | 9 | */↵
|
|
11 | public Long getId() {↵ | | 10 | public Calendar getCreated() {↵
|
|
12 | return id;↵ | | 11 | return created;↵
|
|
13 | }↵ | | 12 | }↵
|
14 | ↵ | | |
|
15 | /**↵ | | 13 | /**↵
|
16 | * Returns the name.↵ | | 14 | * ↵
|
17 | * @return String↵ | | 15 | @param created The created to set.↵
|
| | | 16 | */↵
|
|
| | | 17 | public void setCreated(Calendar created) {↵
|
|
| | | 18 | this.created = created;↵
|
|
| | | 19 | }↵
|
|
| | | 20 | /**↵
|
| | | 21 | * @return Returns the modified.↵
|
18 | */↵ | | 22 | */↵
|
|
19 | public String getName() {↵ | | 23 | public Calendar getModified() {↵
|
|
20 | return name;↵ | | 24 | return modified;↵
|
|
21 | }↵ | | 25 | }↵
|
22 | ↵ | | |
|
23 | /**↵ | | 26 | /**↵
|
24 | * Sets the id.↵ | | 27 | * ↵
|
25 | * @param id The id to set↵ | | 28 | @param modified The modified to set.↵
|
26 | */↵ | | 29 | */↵
|
|
27 | public void setId(Long id) {↵ | | 30 | public void setModified(Calendar modified) {↵
|
|
28 | this.id = id;↵ | | 31 | this.modified = modified;↵
|
|
29 | }↵ | | 32 | }↵
|
30 | ↵ | | |
|
31 | /**↵ | | 33 | /**↵
|
32 | * Sets the name.↵ | | 34 | * ↵
|
33 | * @param name The name to set↵ | | 35 | @return Returns the content.↵
|
34 | */↵ | | 36 | */↵
|
|
35 | public void setName(String name) {↵ | | 37 | public Blob getContent() {↵
|
|
36 | this.name = name;↵ | | 38 | return content;↵
|
|
37 | }↵ | | 39 | }↵
|
|
38 | ↵ | | 40 | ↵
|
39 | public E getForward() {↵ | | |
|
40 | return forward;↵ | | |
|
41 | }↵ | | |
|
|
42 | public void setForward(E e↵ | | 41 | /**↵
|
| | | 42 | * @param content The content to set.↵
|
| | | 43 | */↵
|
|
43 | ) {↵ | | 44 | public void setContent(Blob content) {↵
|
|
44 | forward = e;↵ | | 45 | this.content = content;
|
45 | | | | |