1 | public class PropertySet {
↵ | | 1 | public class Group {↵
|
2 | private Long id;
↵ | | 2 | private Long id;↵
|
3 | private String name;↵ | | 3 | private ↵
|
4 | private PropertyValue someSpecificProperty;↵ | | |
|
5 | private Map generalProperties = new HashMap();↵ | | |
|
6 |
↵ | | 4 | Date timestamp;↵
|
| | | 5 | private String name;↵
|
| | | 6 | private Set users;↵
|
|
7 | public PropertySet() {
↵ | | 7 | public Group() {↵
|
8 | }↵ | | 8 | }↵
|
9 |
↵ | | |
|
|
10 | public PropertySet(String name) {
↵ | | 9 | public Group(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 Date getTimestamp() {↵
|
23 | return name;↵ | | 19 | return ↵
|
24 | }↵ | | |
|
25 |
↵ | | 20 | timestamp;↵
|
| | | 21 | }↵
|
|
26 | public void setName(String name) {
↵ | | 22 | public void setTimestamp(Date timestamp) {↵
|
27 | this.name = name;↵ | | 23 | this.timestamp = ↵
|
28 | }↵ | | |
|
|
29 | public PropertyValue getSomeSpecificProperty↵ | | 24 | timestamp;↵
|
| | | 25 | }↵
|
|
30 | () {
↵ | | 26 | public String getName() {↵
|
31 | return someSpecificProperty;↵ | | 27 | return ↵
|
32 | }↵ | | |
|
33 |
↵ | | 28 | name;↵
|
| | | 29 | }↵
|
|
34 | public void setSomeSpecificProperty(PropertyValue someSpecificProperty) {
↵ | | 30 | public void setName(String name) {↵
|
35 | this.someSpecificProperty = someSpecificProperty;↵ | | 31 | this.↵
|
36 | }↵ | | |
|
37 |
↵ | | 32 | name = name;↵
|
| | | 33 | }↵
|
|
38 | public Map getGeneralProperties() {
↵ | | 34 | public Set getUsers() {↵
|
39 | return generalProperties;
↵ | | 35 | return users;↵
|
40 | }↵ | | 36 | }↵
|
41 |
↵ | | |
|
|
42 | public void setGeneralProperties(Map generalProperties) {
↵ | | 37 | public void setUsers(Set users) {↵
|
43 | this.generalProperties = generalProperties;
↵ | | 38 | this.users = users;↵
|
44 | | | 39 |
|