View Javadoc
1   /*
2    * Copyright (c) 2002-2018, Mairie de Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  package fr.paris.lutece.plugins.appointment.business.localization;
35  
36  import java.io.Serializable;
37  
38  /**
39   * Business class of the Form Display
40   * 
41   * @author Laurent Payen
42   *
43   */
44  public final class Localization implements Serializable
45  {
46  
47      /**
48       * Serial version UID
49       */
50      private static final long serialVersionUID = 611153651324369773L;
51  
52      /**
53       * Localization Id
54       */
55      private int _nIdLocalization;
56  
57      /**
58       * Longitude
59       */
60      private Double _dLongitude;
61  
62      /**
63       * Latitude
64       */
65      private Double _dLatitude;
66  
67      /**
68       * Address
69       */
70      private String _strAddress;
71  
72      /**
73       * Form id (foreign key)
74       */
75      private int _nIdForm;
76  
77      /**
78       * Get the Id Localization
79       * 
80       * @return the id of the localization
81       */
82      public int getIdLocalization( )
83      {
84          return _nIdLocalization;
85      }
86  
87      /**
88       * Set the id of the localization
89       * 
90       * @param nIdLocalization
91       *            the of the localization
92       */
93      public void setIdLocalization( int nIdLocalization )
94      {
95          this._nIdLocalization = nIdLocalization;
96      }
97  
98      /**
99       * Get the longitude
100      * 
101      * @return the longitude
102      */
103     public Double getLongitude( )
104     {
105         return _dLongitude;
106     }
107 
108     /**
109      * Set the longitude
110      * 
111      * @param dLongitude
112      *            the longitude
113      */
114     public void setLongitude( Double dLongitude )
115     {
116         this._dLongitude = dLongitude;
117     }
118 
119     /**
120      * Get the latitude
121      * 
122      * @return the latitude
123      */
124     public Double getLatitude( )
125     {
126         return _dLatitude;
127     }
128 
129     /**
130      * Set the latitude
131      * 
132      * @param dLatitude
133      *            the latitude
134      */
135     public void setLatitude( Double dLatitude )
136     {
137         this._dLatitude = dLatitude;
138     }
139 
140     /**
141      * Get the address of the form
142      * 
143      * @return the address
144      */
145     public String getAddress( )
146     {
147         return _strAddress;
148     }
149 
150     /**
151      * Set the address of the form
152      * 
153      * @param strAddress
154      */
155     public void setAddress( String strAddress )
156     {
157         this._strAddress = strAddress;
158     }
159 
160     /**
161      * Get the Form Id
162      * 
163      * @return the Form Id
164      */
165     public int getIdForm( )
166     {
167         return _nIdForm;
168     }
169 
170     /**
171      * Set the Form Id
172      * 
173      * @param nIdForm
174      *            the Form Id to set
175      */
176     public void setIdForm( int nIdForm )
177     {
178         this._nIdForm = nIdForm;
179     }
180 
181 }