View Javadoc
1   /*
2    * Copyright (c) 2013-2014, Dienst Landelijk Gebied - Ministerie van Economische Zaken
3    * 
4    * Gepubliceerd onder de BSD 2-clause licentie, 
5    * zie https://github.com/MinELenI/CBSviewer/blob/master/LICENSE.md voor de volledige licentie.
6    */
7   package nl.mineleni.openls.databinding.openls;
8   
9   import nl.mineleni.openls.XmlNamespaceConstants;
10  
11  /**
12   * The Class ReverseGeocodeResponse.
13   */
14  public class ReverseGeocodeResponse implements XmlNamespaceConstants {
15  
16  	/** serialization id. */
17  	private static final long serialVersionUID = 8302539704859544403L;
18  
19  	/** de teruggerekende locatie. */
20  	private ReverseGeocodedLocation reverseGeocodedLocation;
21  
22  	/**
23  	 * Gets the de teruggerekende locatie.
24  	 *
25  	 * @return the reverseGeocodedLocation
26  	 */
27  	public ReverseGeocodedLocation getReverseGeocodedLocation() {
28  		return reverseGeocodedLocation;
29  	}
30  
31  	/**
32  	 * Sets the de teruggerekende locatie.
33  	 *
34  	 * @param reverseGeocodedLocation
35  	 *            the reverseGeocodedLocation to set
36  	 */
37  	public void setReverseGeocodedLocation(
38  			final ReverseGeocodedLocation reverseGeocodedLocation) {
39  		this.reverseGeocodedLocation = reverseGeocodedLocation;
40  	}
41  
42  	/*
43  	 * (non-Javadoc)
44  	 * 
45  	 * @see nl.mineleni.openls.XmlNamespaceConstants#toXML()
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  }