1 | public class PropertySet {
↵ | | 1 | public class Point implements Serializable {↵
|
2 | private Long id;↵ | | 2 | private ↵
|
3 | private String name;↵ | | |
|
4 | private PropertyValue someSpecificProperty;↵ | | |
|
5 | private Map generalProperties = new HashMap();↵ | | |
|
|
6 | public PropertySet() {↵ | | |
|
7 | }↵ | | |
|
|
8 | public PropertySet(String name↵ | | 3 | BigDecimal x;↵
|
| | | 4 | private BigDecimal y;↵
|
| | | 5 | private String description;↵
|
| | | 6 | private Object row;↵
|
|
| | | 7 | Point() {}↵
|
| | | 8 | ↵
|
9 | ) {
↵ | | 9 | public Point(BigDecimal x, BigDecimal y) {↵
|
10 | this.name = name;↵ | | 10 | this.↵
|
11 | }↵ | | |
|
|
12 | public Long↵ | | 11 | x = x;↵
|
| | | 12 | this.y = y;↵
|
| | | 13 | }↵
|
|
13 | getId() {
↵ | | 14 | public BigDecimal getX() {↵
|
14 | return id;↵ | | 15 | return ↵
|
15 | }↵ | | |
|
|
16 | public void setId(Long id↵ | | 16 | x;↵
|
| | | 17 | }↵
|
|
17 | ) {
↵ | | 18 | void setX(BigDecimal x) {↵
|
18 | this.id = id;↵ | | 19 | this.x = ↵
|
19 | }↵ | | |
|
|
20 | public String getName↵ | | 20 | x;↵
|
| | | 21 | }↵
|
|
21 | () {
↵ | | 22 | public BigDecimal getY() {↵
|
22 | return name;↵ | | 23 | return ↵
|
23 | }↵ | | |
|
|
24 | public void setName(String name↵ | | 24 | y;↵
|
| | | 25 | }↵
|
|
25 | ) {
↵ | | 26 | void setY(BigDecimal y) {↵
|
26 | this.name = name;↵ | | 27 | this.↵
|
27 | }↵ | | |
|
|
28 | public PropertyValue getSomeSpecificProperty↵ | | 28 | y = y;↵
|
| | | 29 | }↵
|
|
29 | () {
↵ | | 30 | public String getDescription() {↵
|
30 | return someSpecificProperty;↵ | | 31 | return ↵
|
31 | }↵ | | |
|
|
32 | public void setSomeSpecificProperty(PropertyValue someSpecificProperty↵ | | 32 | description;↵
|
| | | 33 | }↵
|
|
33 | ) {
↵ | | 34 | public void setDescription(String description) {↵
|
34 | this.someSpecificProperty = someSpecificProperty;↵ | | 35 | this.↵
|
35 | }↵ | | |
|
|
36 | public Map getGeneralProperties↵ | | 36 | description = description;↵
|
| | | 37 | }↵
|
|
37 | () {
↵ | | 38 | public Object getRow() {↵
|
38 | return generalProperties;↵ | | 39 | return ↵
|
39 | }↵ | | |
|
|
40 | public void setGeneralProperties(Map generalProperties↵ | | 40 | row;↵
|
| | | 41 | }↵
|
|
41 | ) {
↵ | | 42 | public void setRow(Object row) {↵
|
42 | this.generalProperties = generalProperties;
↵ | | 43 | this.row = row;↵
|
43 | | | 44 |
|