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