Statistics
| Revision:

root / trunk / applications / appCatalogAndGazetteerClient / src / es / gva / cit / gazetteer / drivers / AbstractGazetteerServiceDriver.java @ 15558

History | View | Annotate | Download (3.38 KB)

1

    
2
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
3
 *
4
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
19
 *
20
 * For more information, contact:
21
 *
22
 *  Generalitat Valenciana
23
 *   Conselleria d'Infraestructures i Transport
24
 *   Av. Blasco Ib??ez, 50
25
 *   46010 VALENCIA
26
 *   SPAIN
27
 *
28
 *      +34 963862235
29
 *   gvsig@gva.es
30
 *      www.gvsig.gva.es
31
 *
32
 *    or
33
 *
34
 *   IVER T.I. S.A
35
 *   Salamanca 50
36
 *   46005 Valencia
37
 *   Spain
38
 *
39
 *   +34 963163400
40
 *   dac@iver.es
41
 */
42
package es.gva.cit.gazetteer.drivers;
43
import java.net.URI;
44

    
45
import es.gva.cit.catalog.drivers.AbstractDiscoveryServiceDriver;
46
import es.gva.cit.catalog.querys.DiscoveryServiceQuery;
47
import es.gva.cit.gazetteer.querys.FeatureType;
48
import es.gva.cit.gazetteer.querys.FeatureTypeAttribute;
49
import es.gva.cit.gazetteer.querys.GazetteerQuery;
50

    
51
/**
52
 * This class must be inherited by all the gazetteer drivers. It contains
53
 * the common attributes. 
54
 * @author Jorge Piera Llodra (piera_jor@gva.es)
55
 */
56
public abstract class AbstractGazetteerServiceDriver extends AbstractDiscoveryServiceDriver implements IGazetteerServiceDriver {
57
        private FeatureType[] featureTypes;
58
        private GazetteerQuery query;
59
        private String projection = null;        
60

    
61
        /**
62
         * @return Returns the feature.
63
         */
64
        public FeatureType[] getFeatureTypes() {        
65
                return featureTypes;
66
        } 
67

    
68
        /**
69
         * @param feature The feature to set.
70
         */
71
        public void setFeatureTypes(FeatureType[] featureTypes) {        
72
                this.featureTypes = featureTypes;
73
        }         
74

    
75
        /*
76
         * (non-Javadoc)
77
         * @see es.gva.cit.catalogClient.drivers.IDiscoveryServiceDriver#createQuery()
78
         */
79
        public DiscoveryServiceQuery createQuery(){
80
                return new GazetteerQuery();
81
        }
82
        
83
        /**
84
         * @return Returns the query.
85
         */
86
        public GazetteerQuery getQuery() {        
87
                return query;
88
        } 
89

    
90
        /**
91
         * @param query The query to set.
92
         */
93
        public void setQuery(GazetteerQuery query) {        
94
                this.query = query;
95
        }        
96

    
97
        /*
98
         * (non-Javadoc)
99
         * @see es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver#describeFeatureType(java.net.URI, java.lang.String)
100
         */
101
        public FeatureTypeAttribute[] describeFeatureType(URI uri, String feature) {        
102
                return null;
103
        }         
104

    
105
        /*
106
         * (non-Javadoc)
107
         * @see es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver#isDescribeFeatureTypeNeeded()
108
         */
109
        public boolean isDescribeFeatureTypeNeeded()  {        
110
                return false;
111
        } 
112

    
113
        /*
114
         * (non-Javadoc)
115
         * @see es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver#getProjection()
116
         */         
117
        public String getProjection(){
118
                return projection;
119
        }
120

    
121
        /*
122
         * (non-Javadoc)
123
         * @see es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver#setProjection(java.lang.String)
124
         */
125
        public void setProjection(String projection){
126
                this.projection = projection;
127
        }
128
}