1 | public class PropertySet {↵ | | 1 | public class ↵
|
2 | ↵ | | 2 | Employee extends Person {↵
|
3 | private Long id;
↵ | | 3 | private String title;↵
|
4 | private String name;↵ | | 4 | private String ↵
|
5 | private PropertyValue someSpecificProperty;↵ | | |
|
6 | private Map generalPropertie↵ | | 5 | department;↵
|
| | | 6 | private Employee manager;↵
|
7 | s = new HashMap();↵ | | 7 | private Set minions = new Hash↵
|
|
8 | public PropertySet↵ | | 8 | Set();↵
|
|
9 | () {
↵ | | 9 | public Employee() {↵
|
10 | }↵ | | 10 | }↵
|
11 |
↵ | | |
|
|
12 | public PropertySet(String name) {
↵ | | 11 | public Employee(String name) {↵
|
13 | this.name = name;↵ | | 12 | super( name↵
|
14 | }↵ | | |
|
15 |
↵ | | 13 | );↵
|
| | | 14 | }↵
|
|
16 | public Long getId() {
↵ | | 15 | public String getTitle() {↵
|
17 | return id;↵ | | 16 | return ↵
|
18 | }↵ | | |
|
19 |
↵ | | 17 | title;↵
|
| | | 18 | }↵
|
|
20 | public void setId(Long id) {
↵ | | 19 | public void setTitle(String title) {↵
|
21 | this.id = id;↵ | | 20 | this.↵
|
22 | }↵ | | |
|
23 |
↵ | | 21 | title = title;↵
|
| | | 22 | }↵
|
|
24 | public String getName() {
↵ | | 23 | public String getDepartment() {↵
|
25 | return name;↵ | | 24 | return ↵
|
26 | }↵ | | |
|
27 |
↵ | | 25 | department;↵
|
| | | 26 | }↵
|
|
28 | public void setName(String name) {
↵ | | 27 | public void setDepartment(String department) {↵
|
29 | this.name = name;↵ | | 28 | this.↵
|
30 | }↵ | | |
|
|
31 | public PropertyValue getSomeSpecificProperty↵ | | 29 | department = department;↵
|
| | | 30 | }↵
|
|
32 | () {
↵ | | 31 | public Employee getManager() {↵
|
33 | return someSpecificProperty;↵ | | 32 | return ↵
|
34 | }↵ | | |
|
|
35 | public void setSomeSpecificProperty(PropertyValue someSpecificProperty↵ | | 33 | manager;↵
|
| | | 34 | }↵
|
|
36 | ) {
↵ | | 35 | public void setManager(Employee manager) {↵
|
37 | this.someSpecificProperty = someSpecificProperty;↵ | | 36 | this.↵
|
38 | }↵ | | |
|
39 |
↵ | | 37 | manager = manager;↵
|
| | | 38 | }↵
|
|
40 | public Map getGeneralProperties() {
↵ | | 39 | public Set getMinions() {↵
|
41 | return generalProperties;
↵ | | 40 | return minions;↵
|
42 | }↵ | | 41 | }↵
|
43 |
↵ | | |
|
|
44 | public void setGeneralProperties(Map generalProperties) {
↵ | | 42 | public void setMinions(Set minions) {↵
|
45 | this.generalProperties = generalProperties;
↵ | | 43 | this.minions = minions;↵
|
46 | | | 44 |
|