Revision 28389
branches/v2_0_0_prep/applications/appCatalog/.settings/cvs/Entries | ||
---|---|---|
1 |
/org.eclipse.core.resources.prefs/1.1/Wed Jan 11 12:29:32 2006//TCatalogYNomenclator_v1_1_0_1005 |
|
2 |
/org.eclipse.core.runtime.prefs/1.1/Wed Jan 11 12:29:32 2006//TCatalogYNomenclator_v1_1_0_1005 |
|
0 | 3 |
branches/v2_0_0_prep/applications/appCatalog/.settings/cvs/Tag | ||
---|---|---|
1 |
TCatalogYNomenclator_v1_1_0_1005 |
|
0 | 2 |
branches/v2_0_0_prep/applications/appCatalog/.settings/cvs/Repository | ||
---|---|---|
1 |
gvSIG-project/applications/appCatalogYNomenclatorClient/.settings |
|
0 | 2 |
branches/v2_0_0_prep/applications/appCatalog/.settings/cvs/Root | ||
---|---|---|
1 |
:extssh:jorpiell@www.gvsig.org:/var/lib/cvs-gvSIG |
|
0 | 2 |
branches/v2_0_0_prep/applications/appCatalog/.settings/org.eclipse.jdt.core.prefs | ||
---|---|---|
1 |
#Mon Apr 27 14:46:56 CEST 2009 |
|
2 |
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 |
|
3 |
eclipse.preferences.version=1 |
|
4 |
org.eclipse.jdt.core.compiler.source=1.5 |
|
5 |
org.eclipse.jdt.core.compiler.compliance=1.5 |
|
0 | 6 |
branches/v2_0_0_prep/applications/appCatalog/.settings/org.eclipse.core.runtime.prefs | ||
---|---|---|
1 |
#Mon Jul 23 13:59:18 CEST 2007 |
|
2 |
eclipse.preferences.version=1 |
|
3 |
instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true |
|
4 |
line.separator=\n |
|
0 | 5 |
branches/v2_0_0_prep/applications/appCatalog/.settings/org.eclipse.core.resources.prefs | ||
---|---|---|
1 |
#Wed Jan 11 12:57:27 CET 2006 |
|
2 |
eclipse.preferences.version=1 |
|
3 |
encoding/<project>=ISO-8859-1 |
|
0 | 4 |
branches/v2_0_0_prep/applications/appCatalog/text.properties | ||
---|---|---|
1 |
catalog_search=B\u00fasqueda de Geodatos |
|
2 |
gazetteer_search=Localizar por Nomencl\u00e1tor |
|
3 |
gazetteer_connect=Localizar por Nomencl\u00e1tor |
|
4 |
metadata_catalog=B\u00fasqueda de Geodatos - Conexi\u00f3n |
|
5 |
metadata_tree=\u00c1rbol del Metadato |
|
6 |
search_results=Resultados de la b\u00fasqueda |
|
7 |
resourceTypeColumn=Tipo |
|
8 |
resourceLinkColumn=Enlace |
|
9 |
resourceShowColumn=Ver |
|
10 |
concordancia=Concordancia |
|
11 |
exactSentence=Frase Exacta |
|
12 |
anyWord=Cualquier Palabra |
|
13 |
allWords=Todas las Palabras |
|
14 |
cathegoryAny=cualquiera |
|
15 |
cathegoryBiota=biota |
|
16 |
cathegoryBoundaries=boundaries |
|
17 |
cathegoryClimatologyMeteorologyAtmosphere=climatologyMeteorologyAtmosphere |
|
18 |
cathegoryEconomy=economy |
|
19 |
cathegoryElevation=elevation |
|
20 |
cathegoryEnvironment=environment |
|
21 |
cathegoryFarming=farming |
|
22 |
cathegoryGeoscientificInformation=geoscientificInformation |
|
23 |
cathegoryHealth=health |
|
24 |
cathegoryImageryBaseMapsEarthCover=imageryBaseMapsEarthCover |
|
25 |
cathegoryInlandWaters=inlandWaters |
|
26 |
cathegoryIntelligenceMilitary=intelligenceMilitary |
|
27 |
cathegoryLocation=location |
|
28 |
cathegoryOceans=oceans |
|
29 |
cathegoryPlanningCadastre=planningCadastre |
|
30 |
cathegorySociety=society |
|
31 |
cathegoryStructure=structure |
|
32 |
cathegoryTransportation=transportation |
|
33 |
cathegoryUtilitiesCommunication=utilitiesCommunication |
|
34 |
scaleAny=qualquiera |
|
35 |
scaleI=>1.000.000 |
|
36 |
scaleII=1.000.000 - 250.000 |
|
37 |
scaleIII=250.000 - 50.000 |
|
38 |
scaleIV=50.000 - 10.000 |
|
39 |
scaleV=10.000 - 5000 |
|
40 |
scaleVI=<5.000 |
|
41 |
scale=Escala |
|
42 |
provider=Proveedor |
|
43 |
from=De: |
|
44 |
to=A: |
|
45 |
upperCoordinates=Superiores |
|
46 |
lowerCoordinates=Inferiores |
|
47 |
ULX=ULX: |
|
48 |
ULY=ULY: |
|
49 |
BRX=BRX: |
|
50 |
BRY=BRY: |
|
51 |
abstract=Resumen |
|
52 |
coordinates=Coordenadas |
|
53 |
coordinatesEqual=igual |
|
54 |
coordinatesContains=contiene |
|
55 |
coordinatesEnclose=incluye |
|
56 |
coordinatesFullyOutsideOf=est\u00e1 totalmente fuera de |
|
57 |
title=Titulo |
|
58 |
restrictArea=Restringir el area de B\u00fasqueda |
|
59 |
protocolsGroup=Protocolos |
|
60 |
serverReply=Respuesta del servidor |
|
61 |
serverURL=Introduzca la direcci\u00f3n donde se encuentra el servidor de cat\u00e1logo |
|
62 |
serverURLCat=Introduzca la direcci\u00f3n donde se encuentra el servidor de nomencl\u00e1tor |
|
63 |
database=Nombre de la base de datos |
|
64 |
connectButton=Conectar |
|
65 |
searchButton=Buscar |
|
66 |
results=Resultados |
|
67 |
of=de |
|
68 |
description=Descripcion |
|
69 |
layer=A\u00f1adir Capa |
|
70 |
next=Siquiente |
|
71 |
last=Anterior |
|
72 |
close=Cerrar |
|
73 |
value=Valor |
|
74 |
attributes=Atributos |
|
75 |
keyWords=Palabras Clave |
|
76 |
cathegory=Categor\u00eda |
|
77 |
lastUpdateDate=Fecha de \u00faltima actualizaci\u00f3n |
|
78 |
purpose=Prop\u00f3sito |
|
79 |
errorServerNotFound=No se encuentra el servidor |
|
80 |
errorNotSupportedProtocol=El servidor no soporta el protocolo especificado |
|
81 |
errorNotSupportedCapabilities=Error al hacer un GetCapabilities.Esto puede ser debido a dos razones: O bien ha habido un error al intentar hacer la operaci\u00f3n, o bien el servidor no soporta el protocolo especificado |
|
82 |
errorNotParsedReply=Error al procesar la respuesta. Se ha encontrado el servidor, pero posiblemente no soporta el protocolo especificado |
|
83 |
name=Nombre |
|
84 |
resutsByPage=Resultados por p\u00e1gina |
|
85 |
type=Tipo |
|
86 |
localize=Localizar |
|
87 |
page=P\u00e1gina |
|
88 |
errorNotThesaurusSelected=El protocolo WFS no permite hacer b\u00fasquedas si no se elige un elemento del tesauro |
|
89 |
chooseAttribute=Elige un atributo para hacer la b\u00fasqueda |
|
90 |
errorGetRecords=Se ha producido un error al hacer el getRecords |
|
91 |
anyResult=La b\u00fasqueda no ha producido ning\u00fan resultado |
|
92 |
rootName=Ra\u00edz |
|
93 |
wcsColumn=Cobertura |
|
94 |
wmsColumn=Mapa |
|
95 |
wfsColumn=Feature |
|
96 |
postgisColumn=Postgis |
|
97 |
linkColumn=P\u00e1gina Web |
|
98 |
downloadColumn=Descarga |
|
99 |
errorNotCSWSupportedProtocol=Se ha encontrado el servidor, pero parece ser que no soporta el protocolo CS-W |
|
100 |
errorIsASRWServer=Es un servidor SRW! |
|
101 |
errorServerException=El servidor ha devuelto una excepci\u00f3n |
|
102 |
errorSOAPProtocol=Error en el protocolo SOAP |
|
103 |
errorFENotSupported=De momento solo se pueden hacer querys usando la codificaci\u00f3n FILTER ENCODING que no est\u00e1 soportada por el servidor |
|
104 |
mantainold=Eliminar las busquedas anteriores |
|
105 |
goto=Hacer un zoom a la b\u00fasqueda |
|
106 |
paint=Dibujar el resultado |
|
107 |
aspect=Configuracion de aspecto |
|
108 |
unknown=Desconocido |
|
109 |
cancelSearchButton=Cancelar |
|
110 |
wmsError=Ha ocurrido un error al cargar el mapa |
|
111 |
loadWMS=Carga de WMS |
|
112 |
wfsError=Ha ocurrido un error al cargar la feature |
|
113 |
wfsLoad=Carga de WFS |
|
114 |
wcsError=Ha ocurrido un error al cargar la cobertura |
|
115 |
wcsLoad=Carga de WCS |
|
116 |
postgisError=Ha ocurrido un error al cargar la base de datos |
|
117 |
postgisLoad=Carga de Postgis |
|
118 |
linkError=Ha ocurrido un error al cargar el enlace |
|
119 |
linkLoad=carga de un recurso web |
|
120 |
link=Enlace |
|
121 |
server=Servidor |
|
122 |
layer=Capa |
|
123 |
parameters=Par\u00e1metros |
|
124 |
pluginNotFound=No tienes ninguna extensi\u00f3n para cargar recursos de este tipo |
|
125 |
pluginNotFoundTitle=Carga de capas |
|
126 |
inteligentSearch=B\u00fasqueda inteligente |
|
127 |
inteligentSearchAscii=Todas las formas de la palabra |
|
128 |
reproyectar_aviso=La proyecci\u00F3n de la capa no es igual que la de la vista.\nAVISO\: Puede ser inexacto con algunas transformaciones.\nPor favor, lea la documentaci\u00F3n. |
|
129 |
reproyectar_pregunta=\u00BFDesea reproyectar? |
|
130 |
elementName=ElementName |
|
131 |
propertiesNameWindow=Ventana de propiedades |
|
0 | 132 |
branches/v2_0_0_prep/applications/appCatalog/.classpath | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<classpath> |
|
3 |
<classpathentry including="**/*.java" kind="src" output="target/test-classes" path="src-test"/> |
|
4 |
<classpathentry including="**/*.java" kind="src" path="src"/> |
|
5 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/a2j/2.0.9/a2j-2.0.9.jar"/> |
|
6 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/a2j-runtime/2.0.9/a2j-runtime-2.0.9.jar"/> |
|
7 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/amic-util/gvsig/amic-util-gvsig.jar"/> |
|
8 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/castor/gvsig/castor-gvsig.jar"/> |
|
9 |
<classpathentry kind="src" path="/libIverUtiles"/> |
|
10 |
<classpathentry kind="var" path="M2_REPO/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar"> |
|
11 |
<attributes> |
|
12 |
<attribute name="javadoc_location" value="jar:file:/home/jpiera/.m2/repository/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6-javadoc.jar!/"/> |
|
13 |
</attributes> |
|
14 |
</classpathentry> |
|
15 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/commons-codec/gvsig/commons-codec-gvsig.jar"/> |
|
16 |
<classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/2.0/commons-collections-2.0.jar"> |
|
17 |
<attributes> |
|
18 |
<attribute name="javadoc_location" value="jar:file:/home/jpiera/.m2/repository/commons-collections/commons-collections/2.0/commons-collections-2.0-javadoc.jar!/"/> |
|
19 |
</attributes> |
|
20 |
</classpathentry> |
|
21 |
<classpathentry kind="var" path="M2_REPO/commons-httpclient/commons-httpclient/2.0.2/commons-httpclient-2.0.2.jar" sourcepath="M2_REPO/commons-httpclient/commons-httpclient/2.0.2/commons-httpclient-2.0.2-sources.jar"> |
|
22 |
<attributes> |
|
23 |
<attribute name="javadoc_location" value="jar:file:/home/jpiera/.m2/repository/commons-httpclient/commons-httpclient/2.0.2/commons-httpclient-2.0.2-javadoc.jar!/"/> |
|
24 |
</attributes> |
|
25 |
</classpathentry> |
|
26 |
<classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.jar"> |
|
27 |
<attributes> |
|
28 |
<attribute name="javadoc_location" value="jar:file:/home/jpiera/.m2/repository/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3-javadoc.jar!/"/> |
|
29 |
</attributes> |
|
30 |
</classpathentry> |
|
31 |
<classpathentry kind="var" path="M2_REPO/org/dspace/cql-java/1.0/cql-java-1.0.jar"/> |
|
32 |
<classpathentry kind="var" path="M2_REPO/org/geonames/geonames/1.0/geonames-1.0.jar"/> |
|
33 |
<classpathentry kind="var" path="M2_REPO/jdom/jdom/1.0/jdom-1.0.jar" sourcepath="M2_REPO/jdom/jdom/1.0/jdom-1.0-sources.jar"/> |
|
34 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/jts/gvsig/jts-gvsig.jar"/> |
|
35 |
<classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar" sourcepath="M2_REPO/junit/junit/3.8.1/junit-3.8.1-sources.jar"/> |
|
36 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/jzkit2-core/2.0.0/jzkit2-core-2.0.0.jar"/> |
|
37 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/jzkit2-origin/2.0.0/jzkit2-origin-2.0.0.jar"/> |
|
38 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/jzkit2-z3950/2.0.0/jzkit2-z3950-2.0.0.jar"/> |
|
39 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/kxml2/gvsig/kxml2-gvsig.jar"/> |
|
40 |
<classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar" sourcepath="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14-sources.jar"/> |
|
41 |
<classpathentry kind="src" path="/libCompat"/> |
|
42 |
<classpathentry kind="src" path="/libGPE"/> |
|
43 |
<classpathentry kind="src" path="/libGPE-GML"/> |
|
44 |
<classpathentry kind="src" path="/libGPE-XML"/> |
|
45 |
<classpathentry kind="src" path="/libInternationalization"/> |
|
46 |
<classpathentry kind="src" path="/libRemoteServices"/> |
|
47 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/ostermillerutils/1.4.3/ostermillerutils-1.4.3.jar"/> |
|
48 |
<classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.5.5/slf4j-api-1.5.5.jar" sourcepath="M2_REPO/org/slf4j/slf4j-api/1.5.5/slf4j-api-1.5.5-sources.jar"/> |
|
49 |
<classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.5.5/slf4j-log4j12-1.5.5.jar" sourcepath="M2_REPO/org/slf4j/slf4j-log4j12/1.5.5/slf4j-log4j12-1.5.5-sources.jar"/> |
|
50 |
<classpathentry kind="var" path="M2_REPO/soap/soap/2.3/soap-2.3.jar"/> |
|
51 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/spring/1.2.8/spring-1.2.8.jar"/> |
|
52 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/stax/gvsig/stax-gvsig.jar"/> |
|
53 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/stax-api/gvsig/stax-api-gvsig.jar"/> |
|
54 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/xerces/gvsig/xerces-gvsig.jar"/> |
|
55 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/xml-apis/gvsig/xml-apis-gvsig.jar"/> |
|
56 |
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> |
|
57 |
<classpathentry combineaccessrules="false" kind="src" path="/libTools"/> |
|
58 |
<classpathentry kind="output" path="target/classes"/> |
|
59 |
</classpath> |
|
0 | 60 |
branches/v2_0_0_prep/applications/appCatalog/.project | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<projectDescription> |
|
3 |
<name>appCatalog</name> |
|
4 |
<comment>Base POM for all GvSIG extension projects. This pom knows |
|
5 |
how to build and made an extension for GvSIG. The property |
|
6 |
"gvsig-path" must be set up correctly.</comment> |
|
7 |
<projects> |
|
8 |
<project>libIverUtiles</project> |
|
9 |
<project>libCompat</project> |
|
10 |
<project>libGPE</project> |
|
11 |
<project>libGPE-GML</project> |
|
12 |
<project>libGPE-XML</project> |
|
13 |
<project>libInternationalization</project> |
|
14 |
<project>libRemoteServices</project> |
|
15 |
<project>libTools</project> |
|
16 |
</projects> |
|
17 |
<buildSpec> |
|
18 |
<buildCommand> |
|
19 |
<name>org.eclipse.jdt.core.javabuilder</name> |
|
20 |
<arguments> |
|
21 |
</arguments> |
|
22 |
</buildCommand> |
|
23 |
</buildSpec> |
|
24 |
<natures> |
|
25 |
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> |
|
26 |
<nature>org.eclipse.jdt.core.javanature</nature> |
|
27 |
<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature> |
|
28 |
</natures> |
|
29 |
</projectDescription> |
|
0 | 30 |
branches/v2_0_0_prep/applications/appCatalog/src-test/org/gvsig/catalog/catalog/drivers/ExampleNewDriver.java | ||
---|---|---|
1 |
package org.gvsig.catalog.catalog.drivers; |
|
2 |
|
|
3 |
import java.net.URI; |
|
4 |
|
|
5 |
import org.gvsig.catalog.drivers.AbstractCatalogServiceDriver; |
|
6 |
import org.gvsig.catalog.drivers.CatalogCapabilities; |
|
7 |
import org.gvsig.catalog.drivers.DiscoveryServiceCapabilities; |
|
8 |
import org.gvsig.catalog.drivers.GetRecordsReply; |
|
9 |
import org.gvsig.catalog.querys.CatalogQuery; |
|
10 |
import org.gvsig.catalog.schemas.Record; |
|
11 |
import org.gvsig.catalog.schemas.RecordFactory; |
|
12 |
import org.gvsig.catalog.ui.search.SearchAditionalPropertiesPanel; |
|
13 |
|
|
14 |
|
|
15 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
16 |
* |
|
17 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
18 |
* |
|
19 |
* This program is free software; you can redistribute it and/or |
|
20 |
* modify it under the terms of the GNU General Public License |
|
21 |
* as published by the Free Software Foundation; either version 2 |
|
22 |
* of the License, or (at your option) any later version. |
|
23 |
* |
|
24 |
* This program is distributed in the hope that it will be useful, |
|
25 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
26 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
27 |
* GNU General Public License for more details. |
|
28 |
* |
|
29 |
* You should have received a copy of the GNU General Public License |
|
30 |
* along with this program; if not, write to the Free Software |
|
31 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
32 |
* |
|
33 |
* For more information, contact: |
|
34 |
* |
|
35 |
* Generalitat Valenciana |
|
36 |
* Conselleria d'Infraestructures i Transport |
|
37 |
* Av. Blasco Ib??ez, 50 |
|
38 |
* 46010 VALENCIA |
|
39 |
* SPAIN |
|
40 |
* |
|
41 |
* +34 963862235 |
|
42 |
* gvsig@gva.es |
|
43 |
* www.gvsig.gva.es |
|
44 |
* |
|
45 |
* or |
|
46 |
* |
|
47 |
* IVER T.I. S.A |
|
48 |
* Salamanca 50 |
|
49 |
* 46005 Valencia |
|
50 |
* Spain |
|
51 |
* |
|
52 |
* +34 963163400 |
|
53 |
* dac@iver.es |
|
54 |
*/ |
|
55 |
/* CVS MESSAGES: |
|
56 |
* |
|
57 |
* $Id: ExampleNewDriver.java 537 2007-07-26 11:21:10Z jpiera $ |
|
58 |
* $Log$ |
|
59 |
* Revision 1.1.2.1 2007/07/13 12:00:35 jorpiell |
|
60 |
* Add the posibility to add a new panel |
|
61 |
* |
|
62 |
* |
|
63 |
*/ |
|
64 |
/** |
|
65 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
66 |
*/ |
|
67 |
public class ExampleNewDriver extends AbstractCatalogServiceDriver { |
|
68 |
|
|
69 |
/* |
|
70 |
* (non-Javadoc) |
|
71 |
* @see es.gva.cit.catalogClient.drivers.IDiscoveryServiceDriver#getCapabilities(java.net.URI) |
|
72 |
*/ |
|
73 |
public DiscoveryServiceCapabilities getCapabilities(URI uri) { |
|
74 |
return new CatalogCapabilities(); |
|
75 |
} |
|
76 |
|
|
77 |
/* |
|
78 |
* (non-Javadoc) |
|
79 |
* @see es.gva.cit.catalog.drivers.ICatalogServiceDriver#getRecords(java.net.URI, es.gva.cit.catalog.querys.CatalogQuery, int) |
|
80 |
*/ |
|
81 |
public GetRecordsReply getRecords(URI uri, CatalogQuery query, |
|
82 |
int firstRecord) { |
|
83 |
GetRecordsReply reply = new GetRecordsReply(1); |
|
84 |
Record record = RecordFactory.createRecord(uri, null); |
|
85 |
record.setTitle("Record example"); |
|
86 |
record.setAbstract_("Just for testing"); |
|
87 |
reply.addRecord(record); |
|
88 |
return reply; |
|
89 |
} |
|
90 |
|
|
91 |
/* |
|
92 |
* (non-Javadoc) |
|
93 |
* @see es.gva.cit.catalog.drivers.IDiscoveryServiceDriver#getServiceName() |
|
94 |
*/ |
|
95 |
public String getServiceName() { |
|
96 |
return "My catalog service"; |
|
97 |
} |
|
98 |
|
|
99 |
/* |
|
100 |
* (non-Javadoc) |
|
101 |
* @see es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver#getAditionalSearchPanel() |
|
102 |
*/ |
|
103 |
public SearchAditionalPropertiesPanel getAditionalSearchPanel(){ |
|
104 |
return new ExampleNewPanel(); |
|
105 |
} |
|
106 |
|
|
107 |
|
|
108 |
|
|
109 |
|
|
110 |
} |
|
0 | 111 |
branches/v2_0_0_prep/applications/appCatalog/src-test/org/gvsig/catalog/catalog/drivers/ExampleNewDriverTest.java | ||
---|---|---|
1 |
package org.gvsig.catalog.catalog.drivers; |
|
2 |
|
|
3 |
import javax.swing.UIManager; |
|
4 |
import javax.swing.UnsupportedLookAndFeelException; |
|
5 |
|
|
6 |
import org.gvsig.catalog.ui.serverconnect.ServerConnectDialog; |
|
7 |
import org.gvsig.catalog.utils.CatalogDriverRegister; |
|
8 |
|
|
9 |
|
|
10 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
11 |
* |
|
12 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
13 |
* |
|
14 |
* This program is free software; you can redistribute it and/or |
|
15 |
* modify it under the terms of the GNU General Public License |
|
16 |
* as published by the Free Software Foundation; either version 2 |
|
17 |
* of the License, or (at your option) any later version. |
|
18 |
* |
|
19 |
* This program is distributed in the hope that it will be useful, |
|
20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
22 |
* GNU General Public License for more details. |
|
23 |
* |
|
24 |
* You should have received a copy of the GNU General Public License |
|
25 |
* along with this program; if not, write to the Free Software |
|
26 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
27 |
* |
|
28 |
* For more information, contact: |
|
29 |
* |
|
30 |
* Generalitat Valenciana |
|
31 |
* Conselleria d'Infraestructures i Transport |
|
32 |
* Av. Blasco Ib??ez, 50 |
|
33 |
* 46010 VALENCIA |
|
34 |
* SPAIN |
|
35 |
* |
|
36 |
* +34 963862235 |
|
37 |
* gvsig@gva.es |
|
38 |
* www.gvsig.gva.es |
|
39 |
* |
|
40 |
* or |
|
41 |
* |
|
42 |
* IVER T.I. S.A |
|
43 |
* Salamanca 50 |
|
44 |
* 46005 Valencia |
|
45 |
* Spain |
|
46 |
* |
|
47 |
* +34 963163400 |
|
48 |
* dac@iver.es |
|
49 |
*/ |
|
50 |
/* CVS MESSAGES: |
|
51 |
* |
|
52 |
* $Id: ExampleNewDriverTest.java 512 2007-07-24 11:25:43Z jorpiell $ |
|
53 |
* $Log$ |
|
54 |
* Revision 1.1.2.2 2007/07/24 11:25:42 jorpiell |
|
55 |
* The registers has been refactorized |
|
56 |
* |
|
57 |
* Revision 1.1.2.1 2007/07/13 12:00:35 jorpiell |
|
58 |
* Add the posibility to add a new panel |
|
59 |
* |
|
60 |
* |
|
61 |
*/ |
|
62 |
/** |
|
63 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
64 |
*/ |
|
65 |
public class ExampleNewDriverTest { |
|
66 |
|
|
67 |
/** |
|
68 |
* @param args |
|
69 |
*/ |
|
70 |
public static void main(String[] args) { |
|
71 |
CatalogDriverRegister register = CatalogDriverRegister.getInstance(); |
|
72 |
register.register("My catalog service", ExampleNewDriver.class); |
|
73 |
//Get the currently installed look and feel |
|
74 |
UIManager.getLookAndFeel(); |
|
75 |
// Install a different look and feel; specifically, the Windows look and feel |
|
76 |
try { |
|
77 |
UIManager.setLookAndFeel( |
|
78 |
"com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
79 |
} catch (InstantiationException e) { |
|
80 |
} catch (ClassNotFoundException e) { |
|
81 |
} catch (UnsupportedLookAndFeelException e) { |
|
82 |
} catch (IllegalAccessException e) { |
|
83 |
} |
|
84 |
|
|
85 |
new ServerConnectDialog(); |
|
86 |
} |
|
87 |
|
|
88 |
} |
|
0 | 89 |
branches/v2_0_0_prep/applications/appCatalog/src-test/org/gvsig/catalog/catalog/drivers/ExampleNewPanel.java | ||
---|---|---|
1 |
package org.gvsig.catalog.catalog.drivers; |
|
2 |
|
|
3 |
import java.util.Properties; |
|
4 |
|
|
5 |
import javax.swing.JLabel; |
|
6 |
import javax.swing.JTextField; |
|
7 |
|
|
8 |
import org.gvsig.catalog.ui.search.SearchAditionalPropertiesPanel; |
|
9 |
|
|
10 |
|
|
11 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
12 |
* |
|
13 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
14 |
* |
|
15 |
* This program is free software; you can redistribute it and/or |
|
16 |
* modify it under the terms of the GNU General Public License |
|
17 |
* as published by the Free Software Foundation; either version 2 |
|
18 |
* of the License, or (at your option) any later version. |
|
19 |
* |
|
20 |
* This program is distributed in the hope that it will be useful, |
|
21 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
22 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
23 |
* GNU General Public License for more details. |
|
24 |
* |
|
25 |
* You should have received a copy of the GNU General Public License |
|
26 |
* along with this program; if not, write to the Free Software |
|
27 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
28 |
* |
|
29 |
* For more information, contact: |
|
30 |
* |
|
31 |
* Generalitat Valenciana |
|
32 |
* Conselleria d'Infraestructures i Transport |
|
33 |
* Av. Blasco Ib??ez, 50 |
|
34 |
* 46010 VALENCIA |
|
35 |
* SPAIN |
|
36 |
* |
|
37 |
* +34 963862235 |
|
38 |
* gvsig@gva.es |
|
39 |
* www.gvsig.gva.es |
|
40 |
* |
|
41 |
* or |
|
42 |
* |
|
43 |
* IVER T.I. S.A |
|
44 |
* Salamanca 50 |
|
45 |
* 46005 Valencia |
|
46 |
* Spain |
|
47 |
* |
|
48 |
* +34 963163400 |
|
49 |
* dac@iver.es |
|
50 |
*/ |
|
51 |
/* CVS MESSAGES: |
|
52 |
* |
|
53 |
* $Id: ExampleNewPanel.java 537 2007-07-26 11:21:10Z jpiera $ |
|
54 |
* $Log$ |
|
55 |
* Revision 1.1.2.1 2007/07/13 12:00:35 jorpiell |
|
56 |
* Add the posibility to add a new panel |
|
57 |
* |
|
58 |
* |
|
59 |
*/ |
|
60 |
/** |
|
61 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
62 |
*/ |
|
63 |
public class ExampleNewPanel extends SearchAditionalPropertiesPanel{ |
|
64 |
JLabel label = null; |
|
65 |
JTextField text = null; |
|
66 |
|
|
67 |
public ExampleNewPanel(){ |
|
68 |
label = new JLabel(); |
|
69 |
text = new JTextField(); |
|
70 |
setLayout(new java.awt.BorderLayout()); |
|
71 |
label.setText("Label"); |
|
72 |
add(label, java.awt.BorderLayout.WEST); |
|
73 |
add(text, java.awt.BorderLayout.CENTER); |
|
74 |
} |
|
75 |
|
|
76 |
/* |
|
77 |
* (non-Javadoc) |
|
78 |
* @see es.gva.cit.gazetteer.ui.search.SearchAditionalPropertiesPanel#getProperties() |
|
79 |
*/ |
|
80 |
public Properties getProperties() { |
|
81 |
Properties properties = new Properties(); |
|
82 |
properties.put("PROP1", text.getText()); |
|
83 |
return properties; |
|
84 |
} |
|
85 |
|
|
86 |
} |
|
0 | 87 |
branches/v2_0_0_prep/applications/appCatalog/src-test/org/gvsig/catalog/catalog/utils/URIUtilsTest.java | ||
---|---|---|
1 |
package org.gvsig.catalog.catalog.utils; |
|
2 |
|
|
3 |
import java.net.URI; |
|
4 |
import java.net.URISyntaxException; |
|
5 |
|
|
6 |
import junit.framework.TestCase; |
|
7 |
|
|
8 |
import org.gvsig.catalog.utils.URIUtils; |
|
9 |
|
|
10 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
11 |
* |
|
12 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
13 |
* |
|
14 |
* This program is free software; you can redistribute it and/or |
|
15 |
* modify it under the terms of the GNU General Public License |
|
16 |
* as published by the Free Software Foundation; either version 2 |
|
17 |
* of the License, or (at your option) any later version. |
|
18 |
* |
|
19 |
* This program is distributed in the hope that it will be useful, |
|
20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
22 |
* GNU General Public License for more details. |
|
23 |
* |
|
24 |
* You should have received a copy of the GNU General Public License |
|
25 |
* along with this program; if not, write to the Free Software |
|
26 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
27 |
* |
|
28 |
* For more information, contact: |
|
29 |
* |
|
30 |
* Generalitat Valenciana |
|
31 |
* Conselleria d'Infraestructures i Transport |
|
32 |
* Av. Blasco Ib??ez, 50 |
|
33 |
* 46010 VALENCIA |
|
34 |
* SPAIN |
|
35 |
* |
|
36 |
* +34 963862235 |
|
37 |
* gvsig@gva.es |
|
38 |
* www.gvsig.gva.es |
|
39 |
* |
|
40 |
* or |
|
41 |
* |
|
42 |
* IVER T.I. S.A |
|
43 |
* Salamanca 50 |
|
44 |
* 46005 Valencia |
|
45 |
* Spain |
|
46 |
* |
|
47 |
* +34 963163400 |
|
48 |
* dac@iver.es |
|
49 |
*/ |
|
50 |
/* CVS MESSAGES: |
|
51 |
* |
|
52 |
* $Id: URIUtilsTest.java,v 1.1.2.1 2007/07/10 11:18:04 jorpiell Exp $ |
|
53 |
* $Log: URIUtilsTest.java,v $ |
|
54 |
* Revision 1.1.2.1 2007/07/10 11:18:04 jorpiell |
|
55 |
* Added the registers |
|
56 |
* |
|
57 |
* |
|
58 |
*/ |
|
59 |
/** |
|
60 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
61 |
*/ |
|
62 |
public class URIUtilsTest extends TestCase { |
|
63 |
|
|
64 |
public void test1() throws URISyntaxException{ |
|
65 |
URI uri = URIUtils.createUri("http://www.upv.es", "http", 80); |
|
66 |
assertEquals(uri.getHost(), "www.upv.es"); |
|
67 |
assertEquals(uri.getScheme(), "http"); |
|
68 |
assertEquals(uri.getPort(), 80); |
|
69 |
assertEquals(uri.getPath(), ""); |
|
70 |
} |
|
71 |
|
|
72 |
public void test2() throws URISyntaxException{ |
|
73 |
URI uri = URIUtils.createUri("www.upv.es", "http", 80); |
|
74 |
assertEquals(uri.getHost(), "www.upv.es"); |
|
75 |
assertEquals(uri.getScheme(), "http"); |
|
76 |
assertEquals(uri.getPort(), 80); |
|
77 |
assertEquals(uri.getPath(), ""); |
|
78 |
} |
|
79 |
|
|
80 |
public void test3() throws URISyntaxException{ |
|
81 |
URI uri = URIUtils.createUri("www.upv.es", "z3950", 2100); |
|
82 |
assertEquals(uri.getHost(), "www.upv.es"); |
|
83 |
assertEquals(uri.getScheme(), "z3950"); |
|
84 |
assertEquals(uri.getPort(), 2100); |
|
85 |
assertEquals(uri.getPath(), ""); |
|
86 |
} |
|
87 |
|
|
88 |
public void test4() throws URISyntaxException{ |
|
89 |
URI uri = URIUtils.createUri("http://193.144.250.29/webservices/services/IDEC_GeoServeisPort", "http", 80); |
|
90 |
assertEquals(uri.getHost(), "193.144.250.29"); |
|
91 |
assertEquals(uri.getScheme(), "http"); |
|
92 |
assertEquals(uri.getPort(), 80); |
|
93 |
assertEquals(uri.getPath(), "/webservices/services/IDEC_GeoServeisPort"); |
|
94 |
} |
|
95 |
} |
|
0 | 96 |
branches/v2_0_0_prep/applications/appCatalog/config/ApplicationContextAlone.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> |
|
3 |
|
|
4 |
<beans> |
|
5 |
|
|
6 |
<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> |
|
7 |
<property name="location"><value>config/TestContext.properties</value></property> |
|
8 |
</bean> |
|
9 |
|
|
10 |
<!-- ========================= GENERAL DEFINITIONS ========================= --> |
|
11 |
|
|
12 |
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> |
|
13 |
<property name="basename"><value>messages</value></property> |
|
14 |
</bean> |
|
15 |
|
|
16 |
|
|
17 |
<!-- ========================= PERSISTENCE DEFINITIONS ========================= --> |
|
18 |
|
|
19 |
<!-- ========================= BUSINESS DEFINITIONS ========================= --> |
|
20 |
|
|
21 |
<bean id="OIDRegister" class="org.jzkit.a2j.codec.util.OIDRegister"> |
|
22 |
<constructor-arg index="0"><value>/es/gva/cit/catalog/protocols/context/a2j.properties</value></constructor-arg> |
|
23 |
</bean> |
|
24 |
|
|
25 |
<!-- conversion rules --> |
|
26 |
<bean id="RPNToInternalRules" class="org.jzkit.util.PropsHolder"> |
|
27 |
<constructor-arg index="0"><value>/es/gva/cit/catalog/protocols/context/InternalAttrTypes.properties</value></constructor-arg> |
|
28 |
</bean> |
|
29 |
|
|
30 |
<bean id="InternalToType1ConversionRules" class="org.jzkit.z3950.QueryModel.PropsBasedInternalToType1ConversionRules"> |
|
31 |
<constructor-arg index="0"><value>/es/gva/cit/catalog/protocols/context/InternalToType1Rules.properties</value></constructor-arg> |
|
32 |
</bean> |
|
33 |
|
|
34 |
</beans> |
|
0 | 35 |
branches/v2_0_0_prep/applications/appCatalog/config/ApplicationContext.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> |
|
3 |
<beans> |
|
4 |
<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> |
|
5 |
<property name="location"><value>gvSIG/extensiones/es.gva.cit.gvsig.catalogClient/config/TestContext.properties</value></property> |
|
6 |
</bean> |
|
7 |
<!-- ========================= GENERAL DEFINITIONS ========================= --> |
|
8 |
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> |
|
9 |
<property name="basename"><value>messages</value></property> |
|
10 |
</bean> |
|
11 |
<!-- ========================= PERSISTENCE DEFINITIONS ========================= --> |
|
12 |
|
|
13 |
<!-- ========================= BUSINESS DEFINITIONS ========================= --> |
|
14 |
|
|
15 |
<bean id="OIDRegister" class="org.jzkit.a2j.codec.util.OIDRegister"> |
|
16 |
<constructor-arg index="0"><value>/es/gva/cit/catalog/protocols/context/a2j.properties</value></constructor-arg> |
|
17 |
</bean> |
|
18 |
|
|
19 |
<!-- conversion rules --> |
|
20 |
<bean id="RPNToInternalRules" class="org.jzkit.util.PropsHolder"> |
|
21 |
<constructor-arg index="0"><value>/es/gva/cit/catalog/protocols/context/InternalAttrTypes.properties</value></constructor-arg> |
|
22 |
</bean> |
|
23 |
|
|
24 |
<bean id="InternalToType1ConversionRules" class="org.jzkit.z3950.QueryModel.PropsBasedInternalToType1ConversionRules"> |
|
25 |
<constructor-arg index="0"><value>/es/gva/cit/catalog/protocols/context/InternalToType1Rules.properties</value></constructor-arg> |
|
26 |
</bean> |
|
27 |
</beans> |
|
0 | 28 |
branches/v2_0_0_prep/applications/appCatalog/build.number | ||
---|---|---|
1 |
#Build Number for ANT. Do not edit! |
|
2 |
#Fri Apr 24 13:12:16 CEST 2009 |
|
3 |
build.number=1231 |
|
0 | 4 |
branches/v2_0_0_prep/applications/appCatalog/src/org/gvsig/catalog/drivers/AbstractCatalogServiceDriver.java | ||
---|---|---|
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 org.gvsig.catalog.drivers; |
|
43 |
import org.gvsig.catalog.drivers.profiles.IProfile; |
|
44 |
import org.gvsig.catalog.metadataxml.XMLNode; |
|
45 |
import org.gvsig.catalog.metadataxml.XMLTree; |
|
46 |
import org.gvsig.catalog.querys.CatalogQuery; |
|
47 |
import org.gvsig.catalog.querys.DiscoveryServiceQuery; |
|
48 |
|
|
49 |
import com.iver.utiles.swing.jcomboServer.ServerData; |
|
50 |
|
|
51 |
|
|
52 |
/** |
|
53 |
* All classes that implement a new catalog protocol must to inherit to this class.? |
|
54 |
* It contains the common atributes for the protocols. |
|
55 |
* |
|
56 |
* |
|
57 |
* @author Jorge Piera Llodra (piera_jor@gva.es) |
|
58 |
*/ |
|
59 |
public abstract class AbstractCatalogServiceDriver extends AbstractDiscoveryServiceDriver implements ICatalogServiceDriver { |
|
60 |
private String sortBy = null; |
|
61 |
private String startPosition; |
|
62 |
private String maxRecords; |
|
63 |
private String outputFormat = null; |
|
64 |
private String[] outputSchema = null; |
|
65 |
private CatalogQuery query = null; |
|
66 |
private GetRecordsReply recordsReply = null; |
|
67 |
private String serverProfile = null; |
|
68 |
private ServerData serverData = null; |
|
69 |
|
|
70 |
/** |
|
71 |
* Used to set a ServerData that contains the properties |
|
72 |
* that have been fixed by the user |
|
73 |
*/ |
|
74 |
public void setServerData(ServerData serverData){ |
|
75 |
this.serverData = serverData; |
|
76 |
} |
|
77 |
|
|
78 |
/** |
|
79 |
* Return the server data |
|
80 |
*/ |
|
81 |
public ServerData getServerData(){ |
|
82 |
return serverData; |
|
83 |
} |
|
84 |
|
|
85 |
/** |
|
86 |
* Gets the profile. It has to be implemented |
|
87 |
* by all the drivers with profile |
|
88 |
* @return |
|
89 |
* The profile |
|
90 |
*/ |
|
91 |
public IProfile getProfile(){ |
|
92 |
return null; |
|
93 |
} |
|
94 |
|
|
95 |
/** |
|
96 |
* This function returns the number of records that have been retrieved. |
|
97 |
* It Reads a Node value. |
|
98 |
* |
|
99 |
* |
|
100 |
* @return The number of records |
|
101 |
* @param node The answer tree |
|
102 |
* @param label Node Name that contains the value |
|
103 |
* @param attribute Attributes wich contain the value |
|
104 |
*/ |
|
105 |
public int getNumberOfRecords(XMLNode node, String label, String attribute) { |
|
106 |
String sNumberOfRecords = null; |
|
107 |
int numberOfRecords; |
|
108 |
|
|
109 |
if (attribute != null) |
|
110 |
sNumberOfRecords = XMLTree.searchNodeAtribute(node, |
|
111 |
label, |
|
112 |
attribute); |
|
113 |
else |
|
114 |
sNumberOfRecords = XMLTree.searchNodeValue(node,label); |
|
115 |
|
|
116 |
try { |
|
117 |
numberOfRecords = Integer.parseInt(sNumberOfRecords); |
|
118 |
} catch (Exception e) { |
|
119 |
return -1; |
|
120 |
} |
|
121 |
|
|
122 |
return numberOfRecords; |
|
123 |
} |
|
124 |
|
|
125 |
/* |
|
126 |
* (non-Javadoc) |
|
127 |
* @see es.gva.cit.catalogClient.drivers.IDiscoveryServiceDriver#createQuery() |
|
128 |
*/ |
|
129 |
public DiscoveryServiceQuery createQuery(){ |
|
130 |
return new CatalogQuery(); |
|
131 |
} |
|
132 |
|
|
133 |
/** |
|
134 |
* @return Returns the query. |
|
135 |
*/ |
|
136 |
public CatalogQuery getQuery() { |
|
137 |
return query; |
|
138 |
} |
|
139 |
|
|
140 |
/** |
|
141 |
* @param query The query to set. |
|
142 |
*/ |
|
143 |
public void setQuery(CatalogQuery query) { |
|
144 |
if (query != null) { |
|
145 |
this.query = query; |
|
146 |
recordsReply = new GetRecordsReply(0); |
|
147 |
} |
|
148 |
} |
|
149 |
|
|
150 |
/** |
|
151 |
* @return Returns the maxRecords. |
|
152 |
*/ |
|
153 |
public String getMaxRecords() { |
|
154 |
return maxRecords; |
|
155 |
} |
|
156 |
|
|
157 |
/** |
|
158 |
* @param maxRecords The maxRecords to set. |
|
159 |
*/ |
|
160 |
public void setMaxRecords(String maxRecords) { |
|
161 |
this.maxRecords = maxRecords; |
|
162 |
} |
|
163 |
|
|
164 |
/** |
|
165 |
* @return Returns the outputFormat. |
|
166 |
*/ |
|
167 |
public String getOutputFormat() { |
|
168 |
return outputFormat; |
|
169 |
} |
|
170 |
|
|
171 |
/** |
|
172 |
* @param outputFormat The outputFormat to set. |
|
173 |
*/ |
|
174 |
public void setOutputFormat(String outputFormat) { |
|
175 |
this.outputFormat = outputFormat; |
|
176 |
} |
|
177 |
|
|
178 |
/** |
|
179 |
* @return Returns the outputSchema. |
|
180 |
*/ |
|
181 |
public String[] getOutputSchema() { |
|
182 |
return outputSchema; |
|
183 |
} |
|
184 |
|
|
185 |
/** |
|
186 |
* @param outputSchema The outputSchema to set. |
|
187 |
*/ |
|
188 |
public void setOutputSchema(String[] outputSchema) { |
|
189 |
this.outputSchema = outputSchema; |
|
190 |
} |
|
191 |
|
|
192 |
/** |
|
193 |
* @param outputSchema |
|
194 |
*/ |
|
195 |
public void setOutputSchema(String outputSchema) { |
|
196 |
String[] s = new String[1]; |
|
197 |
s[0] = outputSchema; |
|
198 |
this.outputSchema = s; |
|
199 |
} |
|
200 |
|
|
201 |
/** |
|
202 |
* @return Returns the sortBy. |
|
203 |
*/ |
|
204 |
public String getSortBy() { |
|
205 |
return sortBy; |
|
206 |
} |
|
207 |
|
|
208 |
/** |
|
209 |
* @param sortBy The sortBy to set. |
|
210 |
*/ |
|
211 |
public void setSortBy(String sortBy) { |
|
212 |
this.sortBy = sortBy; |
|
213 |
} |
|
214 |
|
|
215 |
/** |
|
216 |
* @return Returns the startPosition. |
|
217 |
*/ |
|
218 |
public String getStartPosition() { |
|
219 |
return startPosition; |
|
220 |
} |
|
221 |
|
|
222 |
/** |
|
223 |
* @param startPosition The startPosition to set. |
|
224 |
*/ |
|
225 |
public void setStartPosition(String startPosition) { |
|
226 |
this.startPosition = startPosition; |
|
227 |
} |
|
228 |
|
|
229 |
/** |
|
230 |
* @return the recordsReply |
|
231 |
*/ |
|
232 |
public GetRecordsReply getRecordsReply() { |
|
233 |
return recordsReply; |
|
234 |
} |
|
235 |
|
|
236 |
} |
|
0 | 237 |
branches/v2_0_0_prep/applications/appCatalog/src/org/gvsig/catalog/drivers/GetRecordsReply.java | ||
---|---|---|
1 |
package org.gvsig.catalog.drivers; |
|
2 |
|
|
3 |
import java.net.URI; |
|
4 |
import java.util.ArrayList; |
|
5 |
|
|
6 |
import org.gvsig.catalog.metadataxml.XMLNode; |
|
7 |
import org.gvsig.catalog.schemas.Record; |
|
8 |
import org.gvsig.catalog.schemas.RecordFactory; |
|
9 |
|
|
10 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
11 |
* |
|
12 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
13 |
* |
|
14 |
* This program is free software; you can redistribute it and/or |
|
15 |
* modify it under the terms of the GNU General Public License |
|
16 |
* as published by the Free Software Foundation; either version 2 |
|
17 |
* of the License, or (at your option) any later version. |
|
18 |
* |
|
19 |
* This program is distributed in the hope that it will be useful, |
|
20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
22 |
* GNU General Public License for more details. |
|
23 |
* |
|
24 |
* You should have received a copy of the GNU General Public License |
|
25 |
* along with this program; if not, write to the Free Software |
|
26 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
27 |
* |
|
28 |
* For more information, contact: |
|
29 |
* |
|
30 |
* Generalitat Valenciana |
|
31 |
* Conselleria d'Infraestructures i Transport |
|
32 |
* Av. Blasco Ib??ez, 50 |
|
33 |
* 46010 VALENCIA |
|
34 |
* SPAIN |
|
35 |
* |
|
36 |
* +34 963862235 |
|
37 |
* gvsig@gva.es |
|
38 |
* www.gvsig.gva.es |
|
39 |
* |
|
40 |
* or |
|
41 |
* |
|
42 |
* IVER T.I. S.A |
|
43 |
* Salamanca 50 |
|
44 |
* 46005 Valencia |
|
45 |
* Spain |
|
46 |
* |
|
47 |
* +34 963163400 |
|
48 |
* dac@iver.es |
|
49 |
*/ |
|
50 |
/* CVS MESSAGES: |
|
51 |
* |
|
52 |
* $Id: GetRecordsReply.java 600 2007-09-19 11:30:05 +0000 (Wed, 19 Sep 2007) jpiera $ |
|
53 |
* $Log$ |
|
54 |
* Revision 1.1.2.1 2007/07/23 07:14:25 jorpiell |
|
55 |
* Catalog refactoring |
|
56 |
* |
|
57 |
* |
|
58 |
*/ |
|
59 |
/** |
|
60 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
61 |
*/ |
|
62 |
public class GetRecordsReply { |
|
63 |
private ArrayList records = null; |
|
64 |
private int numRecords = 0; |
|
65 |
|
|
66 |
public GetRecordsReply(int numRecords){ |
|
67 |
this.numRecords = numRecords; |
|
68 |
records = new ArrayList(); |
|
69 |
} |
|
70 |
|
|
71 |
/** |
|
72 |
* Add a new record |
|
73 |
* @param record |
|
74 |
* rRecord to add |
|
75 |
*/ |
|
76 |
public void addRecord(Record record){ |
|
77 |
records.add(record); |
|
78 |
} |
|
79 |
|
|
80 |
/** |
|
81 |
* Add a new record |
|
82 |
* @param uri |
|
83 |
* Server uri |
|
84 |
* @param node |
|
85 |
* XML node |
|
86 |
*/ |
|
87 |
public void addRecord(URI uri, XMLNode node){ |
|
88 |
Record record = RecordFactory.createRecord(uri, node); |
|
89 |
records.add(record); |
|
90 |
} |
|
91 |
|
|
92 |
/** |
|
93 |
* Gets a record that it is in a concrete position |
|
94 |
* @param index |
|
95 |
* Record position |
|
96 |
* @return |
|
97 |
* A record |
|
98 |
*/ |
|
99 |
public Record getRecordAt(int index){ |
|
100 |
if (index >= records.size()){ |
|
101 |
return null; |
|
102 |
} |
|
103 |
return (Record)records.get(index); |
|
104 |
} |
|
105 |
|
|
106 |
/** |
|
107 |
* @return the numRecords |
|
108 |
*/ |
|
109 |
public int getRecordsNumber() { |
|
110 |
return numRecords; |
|
111 |
} |
|
112 |
|
|
113 |
/** |
|
114 |
* @return the numRecords |
|
115 |
*/ |
|
116 |
public int getRetrievedRecordsNumber() { |
|
117 |
return records.size(); |
|
118 |
} |
|
119 |
|
|
120 |
/** |
|
121 |
* @param numRecords the numRecords to set |
|
122 |
*/ |
|
123 |
public void setNumRecords(int numRecords) { |
|
124 |
this.numRecords = numRecords; |
|
125 |
} |
|
126 |
|
|
127 |
} |
|
0 | 128 |
branches/v2_0_0_prep/applications/appCatalog/src/org/gvsig/catalog/drivers/IDiscoveryServiceDriver.java | ||
---|---|---|
1 |
package org.gvsig.catalog.drivers; |
|
2 |
|
|
3 |
import java.net.URI; |
|
4 |
|
|
5 |
import org.gvsig.catalog.exceptions.NotSupportedProtocolException; |
|
6 |
import org.gvsig.catalog.exceptions.NotSupportedVersionException; |
|
7 |
import org.gvsig.catalog.querys.DiscoveryServiceQuery; |
|
8 |
import org.gvsig.catalog.ui.search.SearchAditionalPropertiesPanel; |
|
9 |
|
|
10 |
import com.iver.utiles.swing.jcomboServer.ServerData; |
|
11 |
|
|
12 |
|
|
13 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
14 |
* |
|
15 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
16 |
* |
|
17 |
* This program is free software; you can redistribute it and/or |
|
18 |
* modify it under the terms of the GNU General Public License |
|
19 |
* as published by the Free Software Foundation; either version 2 |
|
20 |
* of the License, or (at your option) any later version. |
|
21 |
* |
|
22 |
* This program is distributed in the hope that it will be useful, |
|
23 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
24 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
25 |
* GNU General Public License for more details. |
|
26 |
* |
|
27 |
* You should have received a copy of the GNU General Public License |
|
28 |
* along with this program; if not, write to the Free Software |
|
29 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
30 |
* |
|
31 |
* For more information, contact: |
|
32 |
* |
|
33 |
* Generalitat Valenciana |
|
34 |
* Conselleria d'Infraestructures i Transport |
|
35 |
* Av. Blasco Ib??ez, 50 |
|
36 |
* 46010 VALENCIA |
|
37 |
* SPAIN |
|
38 |
* |
|
39 |
* +34 963862235 |
|
40 |
* gvsig@gva.es |
|
41 |
* www.gvsig.gva.es |
|
42 |
* |
|
43 |
* or |
|
44 |
* |
|
45 |
* IVER T.I. S.A |
|
46 |
* Salamanca 50 |
|
47 |
* 46005 Valencia |
|
48 |
* Spain |
|
49 |
* |
|
50 |
* +34 963163400 |
|
51 |
* dac@iver.es |
|
52 |
*/ |
|
53 |
/* CVS MESSAGES: |
|
54 |
* |
|
55 |
* $Id$ |
|
56 |
* $Log$ |
|
57 |
* |
|
58 |
*/ |
|
59 |
/** |
|
60 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
61 |
*/ |
|
62 |
public interface IDiscoveryServiceDriver { |
|
63 |
/** |
|
64 |
* It try to discover the server capabilities. |
|
65 |
* @return Node with the server answer. |
|
66 |
* @param uri Server URI |
|
67 |
*/ |
|
68 |
public DiscoveryServiceCapabilities getCapabilities(URI uri) throws NotSupportedVersionException; |
|
69 |
|
|
70 |
/** |
|
71 |
* It have to prove if the specified protocol is supported. |
|
72 |
* @return true if is supported, false if it isn't supported |
|
73 |
* @param uri Server URI |
|
74 |
*/ |
|
75 |
public boolean isProtocolSupported(URI uri) throws NotSupportedProtocolException; |
|
76 |
|
|
77 |
/** |
|
78 |
* It return a message to write in the server connection frame |
|
79 |
* @return It is/isn't the supported protocol |
|
80 |
*/ |
|
81 |
public String getServerAnswerReady(); |
Also available in: Unified diff