Statistics
| Revision:

svn-gvsig-desktop / trunk / applications / appCatalogYNomenclatorClient / src / es / gva / cit / catalogClient / parsers / Resource.java @ 3486

History | View | Annotate | Download (4.22 KB)

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

    
43
import es.gva.cit.catalogClient.querys.Coordinates;
44

    
45

    
46

    
47
/**
48
 * This class implements a geodata linked by a metadata
49
 * 
50
 * @author Jorge Piera Llodra (piera_jor@gva.es)
51
 */
52
public class Resource {
53
    public static final String WMS = "OGC:WMS";
54
    public static final String WFS = "OGC:WFS";
55
    public static final String WCS = "OGC:WCS";
56
    public static final String POSTGIS = "POSTGIS";
57
    public static final String WEBSITE = "WWW:LINK";
58
    public static final String DOWNLOAD = "WWW:DOWNLOAD";
59
    
60
    private String linkage = null;
61
    private String protocol = null;
62
    private String name = null;
63
    private String description = null;
64
    private String function = null;
65
    private String srs = null;
66
    private Coordinates coordinates = null;
67

    
68
    /**
69
     * @param linkage
70
     * @param protocol
71
     * @param name
72
     * @param description
73
     * @param function
74
     * @param srs
75
     * @param coordinates
76
     */
77
    public Resource(String linkage, String protocol, String name,
78
        String description, String function, String srs, Coordinates coordinates) {
79
        super();
80
        this.linkage = linkage;
81
        this.protocol = protocol;
82
        this.name = name;
83
        this.description = description;
84
        this.function = function;
85
        this.srs = srs;
86
        this.coordinates = coordinates;
87
    }
88

    
89
    /**
90
     * @return Returns the description.
91
     */
92
    public String getDescription() {
93
        return description;
94
    }
95

    
96
    /**
97
     * @param description The description to set.
98
     */
99
    public void setDescription(String description) {
100
        this.description = description;
101
    }
102

    
103
    /**
104
     * @return Returns the function.
105
     */
106
    public String getFunction() {
107
        return function;
108
    }
109

    
110
    /**
111
     * @param function The function to set.
112
     */
113
    public void setFunction(String function) {
114
        this.function = function;
115
    }
116

    
117
    /**
118
     * @return Returns the linkage.
119
     */
120
    public String getLinkage() {
121
        return linkage;
122
    }
123

    
124
    /**
125
     * @param linkage The linkage to set.
126
     */
127
    public void setLinkage(String linkage) {
128
        this.linkage = linkage;
129
    }
130

    
131
    /**
132
     * @return Returns the name.
133
     */
134
    public String getName() {
135
        return name;
136
    }
137

    
138
    /**
139
     * @param name The name to set.
140
     */
141
    public void setName(String name) {
142
        this.name = name;
143
    }
144

    
145
    /**
146
     * @return Returns the protocol.
147
     */
148
    public String getProtocol() {
149
        return protocol;
150
    }
151

    
152
    /**
153
     * @param protocol The protocol to set.
154
     */
155
    public void setProtocol(String protocol) {
156
        this.protocol = protocol;
157
    }
158
        /**
159
         * @return Returns the srs.
160
         */
161
        public String getSrs() {
162
                return srs;
163
        }
164
        /**
165
         * @param srs The srs to set.
166
         */
167
        public void setSrs(String srs) {
168
                this.srs = srs;
169
        }
170
        /**
171
         * @return Returns the coordinates.
172
         */
173
        public Coordinates getCoordinates() {
174
                return coordinates;
175
        }
176
        /**
177
         * @param coordinates The coordinates to set.
178
         */
179
        public void setCoordinates(Coordinates coordinates) {
180
                this.coordinates = coordinates;
181
        }
182
}