1 | public class StringPropertyValue implements PropertyValue {↵ | | 1 | public class Employee extends P↵
|
2 | private Long id;↵ | | |
|
3 | private String value;↵ | | |
|
|
4 | public StringPropertyValue() {↵ | | |
|
5 | }↵ | | |
|
|
6 | public StringPropertyValu↵ | | 2 | erson {↵
|
| | | 3 | private String title;↵
|
| | | 4 | private BigDecimal salary;↵
|
| | | 5 | private Employee manager;↵
|
| | | 6 | /**↵
|
| | | 7 | * @return Returns the title.↵
|
| | | 8 | */↵
|
| | | 9 | public String getTitle() {↵
|
| | | 10 | return title;↵
|
| | | 11 | }↵
|
| | | 12 | /**↵
|
| | | 13 | * @param title The title to set.↵
|
| | | 14 | */↵
|
7 | e(String value) {
↵ | | 15 | public void setTitle(String title) {↵
|
8 | this.value = value;
↵ | | 16 | this.title = title;↵
|
9 | }↵ | | 17 | }↵
|
|
10 | public Long getId↵ | | |
|
| | | 18 | /**↵
|
| | | 19 | * @return Returns the manager.↵
|
| | | 20 | */↵
|
11 | () {
↵ | | 21 | public Employee getManager() {↵
|
12 | return id;↵ | | 22 | return ↵
|
13 | }↵ | | |
|
|
14 | public void setId(Long id↵ | | 23 | manager;↵
|
| | | 24 | }↵
|
| | | 25 | /**↵
|
| | | 26 | * @param manager The manager to set.↵
|
| | | 27 | */↵
|
15 | ) {
↵ | | 28 | public void setManager(Employee manager) {↵
|
16 | this.id = id;↵ | | 29 | this.↵
|
17 | }↵ | | |
|
|
18 | public String↵ | | 30 | manager = manager;↵
|
| | | 31 | }↵
|
| | | 32 | /**↵
|
| | | 33 | * @return Returns the salary.↵
|
| | | 34 | */↵
|
19 | getValue() {
↵ | | 35 | public BigDecimal getSalary() {↵
|
20 | return value;↵ | | 36 | return sal↵
|
21 | }↵ | | |
|
|
22 | public void setValue(String value) {↵ | | |
|
23 | this.value = value;↵ | | |
|
24 | }↵ | | |
|
|
25 | public String asString(↵ | | 37 | ary;↵
|
| | | 38 | }↵
|
| | | 39 | /**↵
|
| | | 40 | * @param salary The salary to set.↵
|
| | | 41 | */↵
|
26 | ) {
↵ | | 42 | public void setSalary(BigDecimal salary) {↵
|
27 | return value | | 43 | this.salary = salary
|