1 | public class Item {↵ | | 1 | public class StringPropertyValue implements PropertyValue {
↵
|
2 | private Long id;↵ | | 2 | private Long id;
↵
|
3 | private String name;↵ | | 3 | private String ↵
|
4 | private String description;↵ | | |
|
5 | ↵ | | |
|
6 | public String getDescription() {↵ | | |
|
7 | return description;↵ | | |
|
8 | }↵ | | |
|
9 | public void setDescription(String description↵ | | 4 | value;↵
|
|
| | | 5 | public StringPropertyValue() {↵
|
| | | 6 | }↵
|
|
10 | ) {↵ | | 7 | public StringPropertyValue(String value) {
↵
|
11 | this.description = description;↵ | | 8 | this.↵
|
12 | }↵ | | 9 | value = value;↵
|
| | | 10 | }↵
|
| | | 11 |
↵
|
13 | public Long getId() {↵ | | 12 | public Long getId() {
↵
|
14 | return id;↵ | | 13 | return id;
↵
|
15 | }↵ | | 14 | }↵
|
| | | 15 |
↵
|
16 | public void setId(Long id) {↵ | | 16 | public void setId(Long id) {
↵
|
17 | this.id = id;↵ | | 17 | this.id = id;
↵
|
18 | }↵ | | 18 | }↵
|
| | | 19 |
↵
|
19 | public String getName() {↵ | | 20 | public String getValue() {
↵
|
20 | return name;↵ | | 21 | return value;
↵
|
21 | }↵ | | 22 | }↵
|
| | | 23 |
↵
|
22 | public void setName(String name) {↵ | | 24 | public void setValue(String value) {
↵
|
23 | this.name = nam↵ | | 25 | this.value = value;↵
|
| | | 26 | }↵
|
|
| | | 27 | public String asString() {↵
|
24 | e | | 28 | return value
|