1 package nl.mineleni.openls.databinding.openls;
2
3 import java.util.Vector;
4
5 import nl.mineleni.openls.XmlNamespaceConstants;
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 public class GeocodeResponse implements XmlNamespaceConstants {
33
34
35
36 private static final long serialVersionUID = -8343502033013447204L;
37
38
39 private final Vector<GeocodeResponseList> geocodeResponseList = new Vector<>();
40
41
42
43
44
45
46
47 public void addGeocodeResponseList(final GeocodeResponseList val) {
48 this.geocodeResponseList.add(val);
49 }
50
51
52
53
54
55
56
57
58 public GeocodeResponseList getGeocodeResponseListAt(final int i) {
59 return this.geocodeResponseList.get(i);
60 }
61
62
63
64
65
66
67 public int getGeocodeResponseListSize() {
68 return this.geocodeResponseList.size();
69 }
70
71
72
73
74
75
76 @Override
77 public String toXML() {
78 final StringBuilder sb = new StringBuilder("<"
79 + XmlNamespaceConstants.OPENLS_NAMESPACE_PREFIX
80 + ":GeocodeResponse " + "xmlns:"
81 + XmlNamespaceConstants.OPENLS_NAMESPACE_PREFIX + "=\""
82 + XmlNamespaceConstants.OPENLS_NAMESPACE_URI + "\" " + "xmlns:"
83 + XmlNamespaceConstants.OGC_GML_NAMESPACE_PREFIX + "=\""
84 + XmlNamespaceConstants.OGC_GML_NAMESPACE_URI + "\">");
85 for (final GeocodeResponseList gcrl : this.geocodeResponseList) {
86 sb.append(gcrl.toXML());
87 }
88 sb.append("</" + XmlNamespaceConstants.OPENLS_NAMESPACE_PREFIX
89 + ":GeocodeResponse>");
90 return sb.toString();
91 }
92 }