root / trunk / applications / appCatalogYNomenclatorClient / src / es / gva / cit / catalogClient / profiles / ISO19115Profile.java @ 3486
History | View | Annotate | Download (4.38 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.profiles; |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
/**
|
47 |
* This class defines the labels for the ISO19115/19119 CSW Profile
|
48 |
* @author Jorge Piera Llodra (piera_jor@gva.es)
|
49 |
*/
|
50 |
public class ISO19115Profile implements IProfiles { |
51 |
/* (non-Javadoc)
|
52 |
* @see es.gva.cit.catalogClient.languages.cswProfiles.IProfiles#getCoordinates()
|
53 |
*/
|
54 |
public String getTitle() { |
55 |
return "Title"; |
56 |
} |
57 |
|
58 |
/* (non-Javadoc)
|
59 |
* @see es.gva.cit.catalogClient.languages.cswProfiles.IProfiles#getCoordinates()
|
60 |
*/
|
61 |
public String getAbstract() { |
62 |
return "Abstract"; |
63 |
} |
64 |
|
65 |
/* (non-Javadoc)
|
66 |
* @see es.gva.cit.catalogClient.languages.cswProfiles.IProfiles#getCoordinates()
|
67 |
*/
|
68 |
public String getThemeKey() { |
69 |
return "Identifier"; |
70 |
} |
71 |
|
72 |
/* (non-Javadoc)
|
73 |
* @see es.gva.cit.catalogClient.languages.cswProfiles.IProfiles#getCoordinates()
|
74 |
*/
|
75 |
public String getScale() { |
76 |
return "Scale"; |
77 |
} |
78 |
|
79 |
/* (non-Javadoc)
|
80 |
* @see es.gva.cit.catalogClient.languages.cswProfiles.IProfiles#getCoordinates()
|
81 |
*/
|
82 |
public String getProvider() { |
83 |
return "Publisher"; |
84 |
} |
85 |
|
86 |
/* (non-Javadoc)
|
87 |
* @see es.gva.cit.catalogClient.languages.cswProfiles.IProfiles#getCoordinates()
|
88 |
*/
|
89 |
public String getDateFrom() { |
90 |
return "Modified"; |
91 |
} |
92 |
|
93 |
/* (non-Javadoc)
|
94 |
* @see es.gva.cit.catalogClient.languages.cswProfiles.IProfiles#getCoordinates()
|
95 |
*/
|
96 |
public String getDateTo() { |
97 |
return "Modified"; |
98 |
} |
99 |
|
100 |
/* (non-Javadoc)
|
101 |
* @see es.gva.cit.catalogClient.languages.cswProfiles.IProfiles#getCoordinates()
|
102 |
*/
|
103 |
public String getTopic() { |
104 |
return "Topic"; |
105 |
} |
106 |
|
107 |
/* (non-Javadoc)
|
108 |
* @see es.gva.cit.catalogClient.languages.cswProfiles.IProfiles#getCoordinates()
|
109 |
*/
|
110 |
public String getCoordinates() { |
111 |
return "Geom"; |
112 |
} |
113 |
|
114 |
/* (non-Javadoc)
|
115 |
* @see es.gva.cit.catalogClient.languages.cswProfiles.IProfiles#getCoordinates()
|
116 |
*/
|
117 |
public AdditionalClauses[] getAdditionalClauses(String[] dataset) { |
118 |
return new AdditionalClauses[0]; |
119 |
} |
120 |
|
121 |
/* (non-Javadoc)
|
122 |
* @see es.gva.cit.catalogClient.languages.cswProfiles.IProfiles#getProviderValue(java.lang.String)
|
123 |
*/
|
124 |
public String getTitleValue(String title, String filter) { |
125 |
return envolveWithJokers(title,filter);
|
126 |
} |
127 |
|
128 |
/* (non-Javadoc)
|
129 |
* @see es.gva.cit.catalogClient.languages.cswProfiles.IProfiles#getCoordinates()
|
130 |
*/
|
131 |
public String getTopicValue(String topic) { |
132 |
return topic;
|
133 |
} |
134 |
|
135 |
|
136 |
/* (non-Javadoc)
|
137 |
* @see es.gva.cit.catalogClient.languages.cswProfiles.IProfiles#getProviderValue(java.lang.String)
|
138 |
*/
|
139 |
public String getProviderValue(String provider) { |
140 |
return envolveWithJokers(provider,"E"); |
141 |
} |
142 |
|
143 |
/**
|
144 |
* This funcion envolves the array with an spacial char like *
|
145 |
* @param array
|
146 |
* @param filter
|
147 |
* @return
|
148 |
*/
|
149 |
public String envolveWithJokers(String array, String filter){ |
150 |
if (!(filter.equals("E"))){ |
151 |
String[] split = array.split(" "); |
152 |
String aux = ""; |
153 |
for (int i=0 ; i<split.length ; i++){ |
154 |
aux = aux + "*" + split[i] + "* "; |
155 |
} |
156 |
return aux;
|
157 |
} |
158 |
return "*" + array + "*"; |
159 |
} |
160 |
|
161 |
|
162 |
|
163 |
|
164 |
} |