View Javadoc
1   /*******************************************************************************
2    * Gisgraphy Project 
3    *  
4    *    This library is free software; you can redistribute it and/or
5    *    modify it under the terms of the GNU Lesser General Public
6    *    License as published by the Free Software Foundation; either
7    *    version 2.1 of the License, or (at your option) any later version.
8    *  
9    *    This library is distributed in the hope that it will be useful,
10   *    but WITHOUT ANY WARRANTY; without even the implied warranty of
11   *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12   *    Lesser General Public License for more details.
13   *  
14   *    You should have received a copy of the GNU Lesser General Public
15   *    License along with this library; if not, write to the Free Software
16   *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
17   *  
18   *   Copyright 2008  Gisgraphy project 
19   * 
20   *   David Masclet <davidmasclet@gisgraphy.com>
21   ******************************************************************************/
22  package com.gisgraphy.fulltext;
23  
24  import com.gisgraphy.domain.geoloc.entity.Adm;
25  import com.gisgraphy.domain.geoloc.entity.City;
26  import com.gisgraphy.domain.geoloc.entity.CitySubdivision;
27  import com.gisgraphy.domain.geoloc.entity.Street;
28  
29  public class Constants {
30  	
31  		/**
32  		 * convenence placetype for only city
33  		 */
34  		public final static Class[] ONLY_CITY_PLACETYPE = new Class[]{City.class};
35  		/**
36  		 * convenence placetype for only adm
37  		 */
38  		public final static Class[] ONLY_ADM_PLACETYPE = new Class[]{Adm.class};
39  		
40  		/**
41  		 * convenence placetype for city and citySubdivision
42  		 */
43  		public final static Class[] CITY_AND_CITYSUBDIVISION_PLACETYPE = new Class[] {City.class,CitySubdivision.class};
44  		
45  		
46  		/**
47  		 * convenence placetype for city and citySubdivision
48  		 */
49  		public final static Class[] ADDRESSES_PLACETYPE = new Class[] {City.class,CitySubdivision.class,Street.class,Adm.class}; 
50  		
51  		/**
52  		 * convenence placetype for city and citySubdivision
53  		 */
54  		public final static Class[] ONLY_CITYSUBDIVISION_PLACETYPE = new Class[] {CitySubdivision.class};
55  		
56  		/**
57  		 * convenence placetype for city and citySubdivision
58  		 */
59  		public final static Class[] STREET_PLACETYPE = new Class[] {Street.class};
60  
61  }