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  import nl.mineleni.openls.databinding.gml.Point;
11  
12  /**
13   * The Class ReverseGeocodedLocation.
14   */
15  public class ReverseGeocodedLocation implements XmlNamespaceConstants {
16  	/** serialization id. */
17  	private static final long serialVersionUID = 3193746470316264818L;
18  	/** te coderen punt. */
19  	private Point point;
20  	/** resultaat adres. */
21  	private Address address;
22  	/** zoek afstand. */
23  	private SearchCentreDistance searchCentreDistance;
24  
25  	/**
26  	 * Gets the te coderen punt.
27  	 *
28  	 * @return the point
29  	 */
30  	public Point getPoint() {
31  		return point;
32  	}
33  
34  	/**
35  	 * Sets the te coderen punt.
36  	 *
37  	 * @param point
38  	 *            the point to set
39  	 */
40  	public void setPoint(final Point point) {
41  		this.point = point;
42  	}
43  
44  	/**
45  	 * Gets the resultaat adres.
46  	 *
47  	 * @return the address
48  	 */
49  	public Address getAddress() {
50  		return address;
51  	}
52  
53  	/**
54  	 * Sets the resultaat adres.
55  	 *
56  	 * @param address
57  	 *            the address to set
58  	 */
59  	public void setAddress(final Address address) {
60  		this.address = address;
61  	}
62  
63  	/**
64  	 * Gets the zoek afstand.
65  	 *
66  	 * @return the searchCentreDistance
67  	 */
68  	public SearchCentreDistance getSearchCentreDistance() {
69  		return searchCentreDistance;
70  	}
71  
72  	/**
73  	 * Sets the zoek afstand.
74  	 *
75  	 * @param searchCentreDistance
76  	 *            the searchCentreDistance to set
77  	 */
78  	public void setSearchCentreDistance(
79  			final SearchCentreDistance searchCentreDistance) {
80  		this.searchCentreDistance = searchCentreDistance;
81  	}
82  
83  	/*
84  	 * (non-Javadoc)
85  	 * 
86  	 * @see nl.mineleni.openls.XmlNamespaceConstants#toXML()
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 }