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 Position.
14   */
15  public class Position implements XmlNamespaceConstants {
16  
17  	/**
18  	 * serialization id.
19  	 */
20  	private static final long serialVersionUID = 3277635883084761942L;
21  
22  	/** point dat deze positie beschrijft. */
23  	private Point point;
24  
25  	/**
26  	 * Gets the point dat deze positie beschrijft.
27  	 *
28  	 * @return the point
29  	 */
30  	public Point getPoint() {
31  		return point;
32  	}
33  
34  	/**
35  	 * Sets the point dat deze positie beschrijft.
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  	 * (non-Javadoc)
46  	 * 
47  	 * @see nl.mineleni.openls.XmlNamespaceConstants#toXML()
48  	 */
49  	@Override
50  	public String toXML() {
51  		final StringBuilder sb = new StringBuilder("<"
52  				+ XmlNamespaceConstants.OPENLS_NAMESPACE_PREFIX + ":Position>");
53  		sb.append(this.point.toXML());
54  		sb.append("</" + XmlNamespaceConstants.OPENLS_NAMESPACE_PREFIX
55  				+ ":Position>");
56  		return sb.toString();
57  	}
58  
59  }