1 | public class PropertySet {↵ | | 1 | public class Person {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String name;↵ | | 3 | private String name;↵
|
4 | private PropertyValue someSpecificProperty;↵ | | 4 | private ↵
|
5 | private Map generalProperties = new HashMap()↵ | | 5 | Address address;↵
|
6 | ;↵ | | 6 | private PersonalDetails details;↵
|
|
7 | public PropertySet() {↵ | | 7 | public Person() {↵
|
8 | }↵ | | 8 | }↵
|
|
9 | public PropertySet(String name) {↵ | | 9 | public Person(String name) {↵
|
10 | this.name = name;↵ | | 10 | this.name = name;↵
|
11 | }↵ | | 11 | }↵
|
|
12 | public Long getId() {↵ | | 12 | public Long getId() {↵
|
13 | return id;↵ | | 13 | return id;↵
|
14 | }↵ | | 14 | }↵
|
|
15 | public void setId(Long id) {↵ | | 15 | public void setId(Long id) {↵
|
16 | this.id = id;↵ | | 16 | this.id = id;↵
|
17 | }↵ | | 17 | }↵
|
|
18 | public String getName() {↵ | | 18 | public String getName() {↵
|
19 | return name;↵ | | 19 | return name;↵
|
20 | }↵ | | 20 | }↵
|
|
21 | public void setName(String name) {↵ | | 21 | public void setName(String name) {↵
|
22 | this.name = name;↵ | | 22 | this.name = name;↵
|
23 | }↵ | | 23 | }↵
|
|
24 | public PropertyValue getSomeSpecificProperty() {↵ | | 24 | public ↵
|
25 | return someSpecificProperty;↵ | | |
|
26 | }↵ | | |
|
|
27 | public void setSomeSpecificProperty(PropertyValue someSpecificProperty) {↵ | | |
|
28 | this.someSpecificProperty = someSpecificProperty↵ | | 25 | Address getAddress() {↵
|
| | | 26 | return address;↵
|
| | | 27 | }↵
|
|
| | | 28 | public void setAddress(Address address) {↵
|
29 | ;↵ | | 29 | this.address = address;↵
|
30 | }↵ | | 30 | }↵
|
|
31 | public Map getGeneralProperties() {↵ | | 31 | public ↵
|
32 | return generalProperties;↵ | | |
|
33 | }↵ | | |
|
|
34 | public void setGeneralProperties(Map generalProperties) {↵ | | |
|
35 | this.generalProperties = generalPropertie↵ | | 32 | PersonalDetails getDetails() {↵
|
| | | 33 | return details;↵
|
| | | 34 | }↵
|
|
| | | 35 | public void setDetails(PersonalDetails details) {↵
|
36 | s | | 36 | this.details = details
|