1
2
3
4
5
6
7 package nl.mineleni.openls.databinding.openls;
8
9 import nl.mineleni.openls.XmlNamespaceConstants;
10 import nl.mineleni.openls.databinding.gml.Point;
11
12
13
14
15 public class ReverseGeocodedLocation implements XmlNamespaceConstants {
16
17 private static final long serialVersionUID = 3193746470316264818L;
18
19 private Point point;
20
21 private Address address;
22
23 private SearchCentreDistance searchCentreDistance;
24
25
26
27
28
29
30 public Point getPoint() {
31 return point;
32 }
33
34
35
36
37
38
39
40 public void setPoint(final Point point) {
41 this.point = point;
42 }
43
44
45
46
47
48
49 public Address getAddress() {
50 return address;
51 }
52
53
54
55
56
57
58
59 public void setAddress(final Address address) {
60 this.address = address;
61 }
62
63
64
65
66
67
68 public SearchCentreDistance getSearchCentreDistance() {
69 return searchCentreDistance;
70 }
71
72
73
74
75
76
77
78 public void setSearchCentreDistance(
79 final SearchCentreDistance searchCentreDistance) {
80 this.searchCentreDistance = searchCentreDistance;
81 }
82
83
84
85
86
87
88 @Override
89 public String toXML() {
90 StringBuilder sb = new StringBuilder("<");
91 sb.append(XmlNamespaceConstants.OPENLS_NAMESPACE_PREFIX);
92 sb.append(":ReverseGeocodedLocation>");
93
94 sb.append(this.point.toXML());
95 sb.append(this.address.toXML());
96 sb.append(this.searchCentreDistance.toXML());
97
98 sb.append("</");
99 sb.append(XmlNamespaceConstants.OPENLS_NAMESPACE_PREFIX);
100 sb.append(":ReverseGeocodedLocation>");
101 return sb.toString();
102 }
103
104 }