1 | public class StringPropertyValue implements PropertyValue {
↵ | | 1 | public class Document extends Item {↵
|
|
2 | private Long i↵ | | 2 | private Blob content;↵
|
|
3 | d;
↵ | | 3 | private Calendar modified;↵
|
|
4 | private String value;↵ | | 4 | private ↵
|
|
5 | public StringPropertyValue() {↵ | | |
|
6 | }↵ | | |
|
|
7 | public StringPropertyValue(String value↵ | | 5 | Calendar created;↵
|
|
| | | 6 | /**↵
|
| | | 7 | * @return Returns the created.↵
|
| | | 8 | */↵
|
|
| | | 9 | public Calendar getCreated() {↵
|
|
| | | 10 | return created;↵
|
|
| | | 11 | }↵
|
|
| | | 12 | /**↵
|
| | | 13 | * @param created The created to set.↵
|
| | | 14 | */↵
|
|
8 | ) {
↵ | | 15 | public void setCreated(Calendar created) {↵
|
|
9 | this.value = value;↵ | | 16 | this.↵
|
10 | }↵ | | |
|
|
11 | public Long getI↵ | | 17 | created = created;↵
|
|
| | | 18 | }↵
|
|
| | | 19 | /**↵
|
| | | 20 | * @return Returns the modified.↵
|
| | | 21 | */↵
|
|
12 | d() {
↵ | | 22 | public Calendar getModified() {↵
|
|
13 | return id;
↵ | | 23 | return modified;↵
|
|
14 | }↵ | | 24 | }↵
|
|
15 | public void setId(Long i↵ | | |
|
|
| | | 25 | /**↵
|
| | | 26 | * @param modified The modified to set.↵
|
| | | 27 | */↵
|
|
16 | d) {
↵ | | 28 | public void setModified(Calendar modified) {↵
|
|
17 | this.id = id;
↵ | | 29 | this.modified = modified;↵
|
|
18 | }↵ | | 30 | }↵
|
|
19 | public String getValue↵ | | |
|
|
| | | 31 | /**↵
|
| | | 32 | * @return Returns the content.↵
|
| | | 33 | */↵
|
|
20 | () {
↵ | | 34 | public Blob getContent() {↵
|
|
21 | return value;↵ | | 35 | return ↵
|
22 | }↵ | | |
|
|
23 | public void setValue(String value) {↵ | | |
|
24 | this.value = value;↵ | | |
|
25 | }↵ | | |
|
|
26 | public String asString(↵ | | 36 | content;↵
|
|
| | | 37 | }↵
|
|
| | | 38 | /**↵
|
| | | 39 | * @param content The content to set.↵
|
| | | 40 | */↵
|
|
27 | ) {
↵ | | 41 | public void setContent(Blob content) {↵
|
|
28 | return value;↵ | | 42 | ↵
|
29 | | | 43 | this.content = content;
|