1 | public class PropertySet {↵ | | 1 | public class ComponentOwner {↵
|
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();↵ | | |
|
|
6 | public PropertySet↵ | | 5 | Component component;↵
|
|
7 | () {↵ | | 6 | public ComponentOwner() {↵
|
8 | }↵ | | 7 | }↵
|
|
9 | public PropertySet(String name) {↵ | | 8 | public ComponentOwner(String name) {↵
|
10 | this.name = name;↵ | | 9 | this.name = name;↵
|
11 | }↵ | | 10 | }↵
|
|
12 | public Long getId() {↵ | | 11 | public Long getId() {↵
|
13 | return id;↵ | | 12 | return id;↵
|
14 | }↵ | | 13 | }↵
|
|
15 | public void setId(Long id) {↵ | | 14 | public void setId(Long id) {↵
|
16 | this.id = id;↵ | | 15 | this.id = id;↵
|
17 | }↵ | | 16 | }↵
|
|
18 | public String getName() {↵ | | 17 | public String getName() {↵
|
19 | return name;↵ | | 18 | return name;↵
|
20 | }↵ | | 19 | }↵
|
|
21 | public void setName(String name) {↵ | | 20 | public void setName(String name) {↵
|
22 | this.name = name;↵ | | 21 | this.name = name;↵
|
23 | }↵ | | 22 | }↵
|
|
24 | public PropertyValue getSomeSpecificProperty() {↵ | | 23 | public Component getComponent() {↵
|
25 | return someSpecificProperty;↵ | | 24 | return component;↵
|
26 | }↵ | | 25 | }↵
|
|
27 | public void setSomeSpecificProperty(PropertyValue someSpecificProperty) {↵ | | 26 | public void setComponent(Component component) {↵
|
28 | this.someSpecificProperty = someSpecificProperty;↵ | | 27 | this.component = com↵
|
29 | }↵ | | 28 | ponent;↵
|
| | | 29 | }↵
|
|
| | | 30 | public static class Component {↵
|
| | | 31 | private int generated;↵
|
|
30 | public Map getGeneralProperties() {↵ | | 32 | public int getGenerated() {↵
|
31 | return generalProperties;↵ | | 33 | return generated;↵
|
32 | }↵ | | 34 | }↵
|
|
33 | public void setGeneralProperties(Map generalProperties) {↵ | | 35 | public void setGenerated(int generated) {↵
|
34 | this.generalProperties = generalProperties | | 36 | this.generated = generated
|