1
2
3
4
5
6
7 package nl.mineleni.openls.databinding.openls;
8
9 import nl.mineleni.openls.XmlNamespaceConstants;
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 public class ReverseGeocodeRequest implements XmlNamespaceConstants {
42
43
44
45
46 private static final long serialVersionUID = 9041529530016571218L;
47
48
49
50
51 private ReverseGeocodePreference reverseGeocodePreference;
52
53
54
55
56 private Position position;
57
58
59
60
61
62
63 public ReverseGeocodePreference getReverseGeocodePreference() {
64 return reverseGeocodePreference;
65 }
66
67
68
69
70
71
72
73 public void setReverseGeocodePreference(
74 final ReverseGeocodePreference reverseGeocodePreference) {
75 this.reverseGeocodePreference = reverseGeocodePreference;
76 }
77
78
79
80
81
82
83 public Position getPosition() {
84 return position;
85 }
86
87
88
89
90
91
92
93 public void setPosition(final Position position) {
94 this.position = position;
95 }
96
97
98
99
100
101
102 @Override
103 public String toXML() {
104 final StringBuilder sb = new StringBuilder("<"
105 + XmlNamespaceConstants.OPENLS_NAMESPACE_PREFIX
106 + ":ReverseGeocodeRequest " + "xmlns:"
107 + XmlNamespaceConstants.OPENLS_NAMESPACE_PREFIX + "=\""
108 + XmlNamespaceConstants.OPENLS_NAMESPACE_URI + "\" " + "xmlns:"
109 + XmlNamespaceConstants.OGC_GML_NAMESPACE_PREFIX + "=\""
110 + XmlNamespaceConstants.OGC_GML_NAMESPACE_URI + "\" "
111 + XmlNamespaceConstants.OPENLS_NAMESPACE_SCHEMALOCATION + ">");
112
113 sb.append(position.toXML());
114 if (null != reverseGeocodePreference) {
115 sb.append(reverseGeocodePreference.toXML());
116 }
117
118 sb.append("</" + XmlNamespaceConstants.OPENLS_NAMESPACE_PREFIX
119 + ":ReverseGeocodeRequest>");
120 return sb.toString();
121 }
122
123 }