1 | public class ServerImpl implements Server {↵ | | 1 | public class StringPropertyValue implements PropertyValue {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String serverType;↵ | | 3 | private String ↵
|
4 | private Address address;↵ | | 4 | value;↵
|
|
| | | 5 | public StringPropertyValue() {↵
|
| | | 6 | }↵
|
|
| | | 7 | public StringPropertyValue(String value) {↵
|
| | | 8 | this.value = value;↵
|
| | | 9 | }↵
|
|
5 | public Long getId() {↵ | | 10 | public Long getId() {↵
|
6 | return id;↵ | | 11 | return id;↵
|
7 | }↵ | | 12 | }↵
|
|
8 | public void setId(Long id) {↵ | | 13 | public void setId(Long id) {↵
|
9 | this.id = id;↵ | | 14 | this.id = id;↵
|
10 | }↵ | | 15 | }↵
|
|
11 | public String getServerType() {↵ | | 16 | public String getValue() {↵
|
12 | return serverType;↵ | | 17 | return value;↵
|
13 | }↵ | | 18 | }↵
|
|
14 | public void setServerType(String serverType) {↵ | | 19 | public void setValue(String value) {↵
|
15 | this.serverType = serverType;↵ | | 20 | this.↵
|
16 | }↵ | | |
|
|
17 | public Address getAddress() {↵ | | |
|
18 | return address;↵ | | |
|
19 | }↵ | | |
|
|
20 | public void setAddress(Address address) {↵ | | |
|
21 | this.address = address↵ | | 21 | value = value;↵
|
| | | 22 | }↵
|
|
| | | 23 | public String asString() {↵
|
22 | ;↵ | | 24 | return value;↵
|
23 | | | 25 |
|