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 String company;↵
|
5 | private Map generalProperties = new HashMap();↵ | | 5 | private ↵
|
|
6 | public PropertySet↵ | | 6 | String region;↵
|
|
7 | () {
↵ | | 7 | public Person() {↵
|
8 | }↵ | | 8 | }↵
|
9 |
↵ | | |
|
|
10 | public PropertySet(String name) {
↵ | | 9 | public Person(String name) {↵
|
11 | this.name = name;
↵ | | 10 | this.name = name;↵
|
12 | }↵ | | 11 | }↵
|
13 |
↵ | | |
|
|
14 | public Long getId() {
↵ | | 12 | public Long getId() {↵
|
15 | return id;
↵ | | 13 | return id;↵
|
16 | }↵ | | 14 | }↵
|
17 |
↵ | | |
|
|
18 | public void setId(Long id) {
↵ | | 15 | public void setId(Long id) {↵
|
19 | this.id = id;
↵ | | 16 | this.id = id;↵
|
20 | }↵ | | 17 | }↵
|
21 |
↵ | | |
|
|
22 | public String getName() {
↵ | | 18 | public String getName() {↵
|
23 | return name;
↵ | | 19 | return name;↵
|
24 | }↵ | | 20 | }↵
|
25 |
↵ | | |
|
|
26 | public void setName(String name) {
↵ | | 21 | public void setName(String name) {↵
|
27 | this.name = name;
↵ | | 22 | this.name = name;↵
|
28 | }↵ | | 23 | }↵
|
29 |
↵ | | |
|
|
30 | public PropertyValue getSomeSpecificProperty() {
↵ | | 24 | public String getCompany() {↵
|
31 | return someSpecificProperty;
↵ | | 25 | return company;↵
|
32 | }↵ | | 26 | }↵
|
33 |
↵ | | |
|
|
34 | public void setSomeSpecificProperty(PropertyValue someSpecificProperty) {
↵ | | 27 | public void setCompany(String company) {↵
|
35 | this.someSpecificProperty = someSpecificProperty;
↵ | | 28 | this.company = company;↵
|
36 | }↵ | | 29 | }↵
|
37 |
↵ | | |
|
|
38 | public Map getGeneralProperties() {
↵ | | 30 | public String getRegion() {↵
|
39 | return generalProperties;↵ | | 31 | return ↵
|
40 | }↵ | | |
|
|
41 | public void setGeneralProperties(Map generalProperties↵ | | 32 | region;↵
|
| | | 33 | }↵
|
|
42 | ) {
↵ | | 34 | public void setRegion(String region) {↵
|
43 | this.generalProperties = generalProperties | | 35 | this.region = region
|