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 public class ReverseGeocodeResponse implements XmlNamespaceConstants {
15
16
17 private static final long serialVersionUID = 8302539704859544403L;
18
19
20 private ReverseGeocodedLocation reverseGeocodedLocation;
21
22
23
24
25
26
27 public ReverseGeocodedLocation getReverseGeocodedLocation() {
28 return reverseGeocodedLocation;
29 }
30
31
32
33
34
35
36
37 public void setReverseGeocodedLocation(
38 final ReverseGeocodedLocation reverseGeocodedLocation) {
39 this.reverseGeocodedLocation = reverseGeocodedLocation;
40 }
41
42
43
44
45
46
47 @Override
48 public String toXML() {
49 final StringBuilder sb = new StringBuilder("<"
50 + XmlNamespaceConstants.OPENLS_NAMESPACE_PREFIX
51 + ":ReverseGeocodeResponse " + "xmlns:"
52 + XmlNamespaceConstants.OPENLS_NAMESPACE_PREFIX + "=\""
53 + XmlNamespaceConstants.OPENLS_NAMESPACE_URI + "\" " + "xmlns:"
54 + XmlNamespaceConstants.OGC_GML_NAMESPACE_PREFIX + "=\""
55 + XmlNamespaceConstants.OGC_GML_NAMESPACE_URI + "\" "
56 + XmlNamespaceConstants.OPENLS_NAMESPACE_SCHEMALOCATION + ">");
57
58 sb.append(this.reverseGeocodedLocation.toXML());
59
60 sb.append("</" + XmlNamespaceConstants.OPENLS_NAMESPACE_PREFIX
61 + ":ReverseGeocodeResponse>");
62 return sb.toString();
63 }
64
65 }