Revision 32523

View differences:

branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/build.number
1
#Build number for ANT. Do not edit!
2
#Mon Apr 27 08:55:04 CEST 2009
3
build.number=39
0 4

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/target/org.gvsig.normalization.extension-2.0-SNAPSHOT-distribution/org.gvsig.normalization.extension-2.0-SNAPSHOT/gvSIG/extensiones/org.gvsig.normalization.extension/text_en.properties
1
# Normalization Extension
2

  
3
#labels
4
normalize=Normalization
5
normalizefile=Normalize text file
6
normalizetable=Normalize table field
7
NormalizationTransform=Normalization
8

  
9
normtitle=Normalization of 
10

  
11
normsource=Data source
12
selfield=Select a field
13
normselectFieldType=Select a type 
14
normfirstrows=Don`t normalize the first
15
normfirstnumberrows=rows
16
normfields=New fields
17
normfieldsettings=Field settings
18
normfieldname=Field name
19
normdontimport=Don`t import
20
normfieldtype=Field type
21
normfielddecimal=Decimal
22
normfieldinteger=Integer
23
normfieldstring=String
24
normfielddate=Date
25
normdelimetersnext=Set how field delimiters with next one
26
normcharacter=Character
27
normfixedwidth=Fixed width
28
normfieldseparators=Select field separators
29
normtab=Tab
30
normspace=Space
31
normcolon=Comma
32
normsemicolon=Semicolon
33
normother=Other
34
normjoin=Join consecutive delimiters
35
norminfieldseparators=Identificator
36
normdecimal=Decimal
37
normthousand=Thousand
38
normtextdelimiter=Text
39
normsampleout=Sample output
40
normoutputopt=Output options
41
normaltertable=Alter table
42
normnewtable=Create new table
43
normjoinfield=Select join field
44
normconsole=Info console
45

  
46
#buttons
47
normload=Load...
48
normsave=Save...
49
normcancel=Exit
50
normrun=Run
51
normtest=Test
52

  
53

  
54
save_norm_pattern=Save normalization pattern
55
load_norm_pattern=Load normalization pattern
56
normerrorloadingfile= Error loading file
57
normerrorreadingfile= Error reading file
58
load_text_file=Load text file
59
txt_file=Text File (*.txt, *.csv)
60
pattern_norm_file=Normalization Pattern File (*.xml)
61

  
62

  
63
Normalizating=     Normalizing ...
64

  
65
generate_news_fields=     Generating new fields
66
cant_alter_table=Can`t alter this table
67
already_exists_fields=Some new fields already exist in the original table
68
chains_normalizated=     chains normalized  
69
new_table=New table
70
nofield=Select a table field
71

  
72

  
73
preference_file=Address Elements
74
preference_location=File location
75
preference_edit=You can edit the list with new address elements
76

  
77
nolayersinview=No layer in view
78
combodefaulttext=...
79
combonamefields=Fields Names
80
comboaddresselements=Address Elements
81

  
82
none_field=None fields
83
all_fields=All fields
84

  
85
gdbmsdbfdriver=Driver dbf
86

  
87
file_exists=file already exists, you wish to overwrite it?
88
filenotfound=File not found
89
parsingpatternxml=Reading the normalization pattern
90
loadsuccess= Pattern loaded OK
91
savesuccess= Pattern saved OK
92
savingpat=Saving the normalization pattern
93
fileexists= File exists, process canceled
94
finishprocess=Process finished
95
filenotsave=File don't save
96
filenotoverwrite=File don't overwrite
97
startprocess=Start normalization...
98

  
99
errorformattingdate=Formatting the date
100
errorformattingnumberrow=Formatting the number in the row 
101
errorformattingdaterow=Formatting the date in the row
102
errorformattingintegerrow=Formatting the integer in the row
103
errorformattingdecimalrow=Formatting the double in the row
104
errorformattingstringrow=Formatting the string in the row
105
errornullsubstring=Null substring replaced for white in the row
106
errornotselectedfield=There isn`t field selected in the main table
107
errordoubledname=There are fields with the name doubled in the main table
108
errormodifyoritable=Altering original table
109
erroraddfieldstable=Adding news fields main table
110
errortabledontaltered=Table didn't alter
111
normalizing=Normalizing ...
112
endnormalizing= Normalization process ended
113
writtingdbf=Writing dbf file ...
114
errorwrittingdbf=Writing dbf file
115

  
116
noload=Loading pattern canceled
117
nosave=Saving pattern canceled
118
noformatok=Pattern hasn't correct format 
119

  
120
pref_title_folder=Normalization patterns folder
121
pref_change_folder=Change folder
122
pref_dialog_forder=Select folder to store patterns
123
pref_normalization=Normalization
124
pref_path_folder=Folder path
125

  
126

  
127
normalization_description=	
128
Normalize strings, the various records of a field of a data store, based on a normalization pattern
0 129

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/target/org.gvsig.normalization.extension-2.0-SNAPSHOT-distribution/org.gvsig.normalization.extension-2.0-SNAPSHOT/gvSIG/extensiones/org.gvsig.normalization.extension/config.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<plugin-config>
3
	<libraries library-dir="lib" />
4
	<depends plugin-name="org.gvsig.app" />
5
	<depends plugin-name="org.gvsig.app.daltransform" />
6
	<depends plugin-name="org.gvsig.geocoding" />
7
	
8
	<resourceBundle name="text" />
9
	<extensions>
10

  
11
		<extension
12
			class-name="org.gvsig.normalization.extension.AboutExtension"
13
			description="Add a new about to the about panel." active="true">
14
		</extension> 
15
		<extension
16
			class-name="org.gvsig.normalization.extension.NormalizationExtension"
17
			description="Extension for the preferences of Normalization."
18
			active="true">
19
		</extension>		
20
	</extensions>
21
</plugin-config>
0 22

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/target/org.gvsig.normalization.extension-2.0-SNAPSHOT-distribution/org.gvsig.normalization.extension-2.0-SNAPSHOT/gvSIG/extensiones/org.gvsig.normalization.extension/about/normabout.htm
1
<html>
2
	<head>
3
	<style type="text/css">
4
	BODY { background-image: url(about.png); font:Verdana, Arial, Helvetica, sans-serif; background-repeat: no-repeat; background-position: 100% 0% }
5
	</style>
6
	</head>
7
	<body>	
8
		<h2>Extensi&oacute;n de normalizaci&oacute;n de cadenas de texto</h2>	
9
		<p><a href="http://www.prodevelop.es">Prodevelop S.L.</a> ha creado esta nueva extensi&oacute;n de gvSIG que permite normalizar cadenas de texto de un almac&eacute;n de datos.</p>
10
					
11
		<p>Director del proyecto:</p>
12
		<ul>
13
			<li>Miguel Montesinos Lajara</li>
14
		</ul>
15
		<p>Desarrollado:</p>
16
		<ul>
17
			<li>Equipo GIS</li>
18
		</ul>			
19

  
20
		<p>extNormalization 1.0 - bn: #build.number#</p>		
21
	</body>
22
</html>
0 23

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/target/org.gvsig.normalization.extension-2.0-SNAPSHOT-distribution/org.gvsig.normalization.extension-2.0-SNAPSHOT/gvSIG/extensiones/org.gvsig.normalization.extension/text.properties
1
# Extension de Normalizaci?n 
2

  
3
#labels
4
normalize=Normalizaci?n
5
normalizefile=Normalizar fichero de texto
6
normalizetable=Normalizar un campo de tabla
7
NormalizationTransform=Normalizaci?n
8

  
9
normtitle=Normalizaci?n de
10

  
11
normsource=Fuente de datos
12
selfield=Selecciona un campo
13
normselectFieldType=Selecciona el tipo 
14
normfirstrows=No normalizar las primeras
15
normfirstnumberrows=filas
16
normfields=Nuevos campos
17
normfieldsettings=Configuraci?n del nuevo campo
18
normfieldname=Nombre nuevo campo
19
normdontimport=No importar
20
normfieldtype=Tipo de campo
21
normfielddecimal=Decimal
22
normfieldinteger=Integer
23
normfieldstring=String
24
normfielddate=Date
25
normdelimetersnext=Separadores con el siguiente
26
normcharacter=Car?cter
27
normfixedwidth=Ancho fijo
28
normfieldseparators=Separadores
29
normtab=Tab
30
normspace=Espacio
31
normcolon=Coma
32
normsemicolon=Punto y coma
33
normother=Otros
34
normjoin=Unir delimitadores consecutivos
35
norminfieldseparators=Identificador
36
normdecimal=Decimal
37
normthousand=Miles
38
normtextdelimiter=Texto
39
normsampleout=Muestra de salida
40
normoutputopt=Opciones de salida
41
normaltertable=En la tabla actual
42
normnewtable=En una nueva tabla
43
normjoinfield=Campo com?n
44
normconsole=C?nsola de informaci?n
45

  
46
#buttons
47
normload=Cargar...
48
normsave=Guardar...
49
normcancel=Salir
50
normrun=Ejecutar
51
normtest=Testear
52

  
53

  
54
save_norm_pattern=Guardar patr?n de normalizaci?n
55
load_norm_pattern=Cargar el patr?n de normalizaci?n
56
normerrorloadingfile= Error cargando el archivo
57
normerrorreadingfile= Error leyendo el archivo
58
load_text_file=Cargar fichero de texto
59
txt_file=Fichero de texto (*.txt, *.csv)
60
pattern_norm_file=Fichero Patr?n Normalizaci?n (*.xml)
61

  
62

  
63
Normalizating=     Normalizando ...
64

  
65
generate_news_fields=     Generando los nuevos campos
66
cant_alter_table=Tabla no editable
67
already_exists_fields=Algunos de los nuevos campos ya existen en la tabla original 
68
chains_normalizated=     cadenas normalizadas
69
new_table=Nueva tabla
70
nofield=Selecciona un campo de la tabla
71

  
72

  
73
preference_file=Elementos de direcci?n
74
preference_location=Localizaci?n del fichero
75
preference_edit=Tu puedes editar esta lista con los nuevos elementos de direcci?n
76

  
77
nolayersinview=Ninguna capa en la vista
78
combodefaulttext=...
79
combonamefields=Nombre de campos
80
comboaddresselements=Elementos de direcci?n
81

  
82
none_field=Ning?n campo
83
all_fields=Todos los campos
84

  
85
gdbmsdbfdriver=Driver dbf
86

  
87
file_exists=El fichero ya existe, ?desea sobreescribirlo?
88
filenotfound=Fichero no se ha encontrado
89
parsingpatternxml=Leyendo el patr?n de normalizaci?n
90
loadsuccess=Patr?n cargado correctamente
91
savesuccess=Patr?n guardado correctamente
92
savingpat=Guardando el patr?n de normalizaci?n
93
fileexists= El fichero ya existe, proceso de normalizaci?n cancelado
94
finishprocess=Proceso de normalizaci?n terminado
95
filenotsave=El fichero no se ha guardado
96
filenotoverwrite=El fichero no se ha sobreescrito
97
startprocess=Empieza la normalizaci?n...
98

  
99
errorformattingdate=Formateando la fecha
100
errorformattingnumberrow=Formateando un n?mero en la fila 
101
errorformattingdaterow=Formateando la fecha en la fila 
102
errorformattingintegerrow=Formateando un entero en la fila
103
errorformattingdecimalrow=Formateando un decimal en la fila
104
errorformattingstringrow=Formateando una cadena de texto en la fila
105
errornullsubstring=Subcadena nula reemplazada por blanco en la fila
106
errornotselectedfield=No hay un campo seleccionado en la tabla
107
errordoubledname=Hay campos con el mismo nombre en la tabla
108
errormodifyoritable=Modificando la tabla principal
109
erroraddfieldstable=A?adiendo nuevos campos a la tabla principal
110
errortabledontaltered=Tabla no modificada
111
normalizing=Normalizando ...
112
endnormalizing=Fin del proceso de normalizacion
113
writtingdbf=Escribiendo fichero dbf ...
114
errorwrittingdbf=Escribiendo fichero dbf
115

  
116
noload=Cancelada la carga del patr?n
117
nosave=Cancelado el guardado del patr?n
118
noformatok=El patr?n no tiene el formato correcto
119

  
120
pref_title_folder=Carpeta para almacenar patrones de normalizaci?n
121
pref_change_folder=Cambiar carpeta
122
pref_dialog_forder=Indicar carpeta para ubicar patrones
123
pref_normalization=Normalizaci?n
124
pref_path_folder=Ubicaci?n de la carpeta
125

  
126

  
127
normalization_description=Normaliza las cadenas de texto, de los diferentes registros de un almac?n de datos, en base a un patr?n de normalizaci?n 
128

  
0 129

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/target/org.gvsig.maven.base.tools/META-INF/maven/org.gvsig/org.gvsig.maven.base.tools/pom.properties
1
#Generated by Maven
2
#Tue Feb 23 14:34:56 CET 2010
3
version=1.0.0-SNAPSHOT
4
groupId=org.gvsig
5
artifactId=org.gvsig.maven.base.tools
0 6

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/target/org.gvsig.maven.base.tools/META-INF/maven/org.gvsig/org.gvsig.maven.base.tools/pom.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2

  
3
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
5
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
6
                      
7
	<modelVersion>4.0.0</modelVersion>
8
	<groupId>org.gvsig</groupId>
9
	<artifactId>org.gvsig.maven.base.tools</artifactId>
10
	<packaging>jar</packaging>
11
	<version>1.0.0-SNAPSHOT</version>
12
	<name>org.gvsig.maven.base.tools</name>
13
	<description>Maven build utilities for gvSIG</description>
14
	<parent>
15
		<groupId>org.gvsig</groupId>
16
		<artifactId>org.gvsig.maven.base</artifactId>
17
		<version>1.0.0-SNAPSHOT</version>
18
	</parent>	
19
</project>
0 20

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/target/org.gvsig.maven.base.tools/META-INF/MANIFEST.MF
1
Manifest-Version: 1.0
2
Archiver-Version: Plexus Archiver
3
Created-By: Apache Maven
4
Built-By: cordin
5
Build-Jdk: 1.6.0_16
6

  
0 7

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/target/org.gvsig.maven.base.tools/ant/depman-ant.xml
1
<project name="Native Build System" default="native" basedir=".">
2

  
3
	<import file="utilities.xml" />
4

  
5
	<target name="generate">
6
		<cmake args="-DCMAKE_INSTALL_PREFIX=${project.build.directory}/target_cmake_product" />
7
	</target>
8

  
9
	<target name="build">
10
		<make-install numProc="${numProc}" />
11
	</target>
12

  
13
	<target name="native" depends="build" />
14

  
15
	<target name="native-eclipse" depends="generate" />
16

  
17
</project>
18

  
0 19

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/target/org.gvsig.maven.base.tools/ant/utilities.xml
1
<project name="ant_libs">
2
	<dirname file="${ant.file.ant_libs}" property="ant.file.ant_libs.dir"/>
3

  
4
	<!--
5
		====================================
6
		Compilation base properties
7
		====================================
8
	-->
9
	<property name="JUNIT_HOME" location="${ant.file.ant_libs.dir}" />
10
	<property name="JavaSourceVersion" value="1.5"/>
11
	<property name="JavaTargetVersion" value="1.5"/>
12
	<property name="debug" value="on"/>
13
	<property name="debuglevel" value="lines, vars, source"/>
14
	<property name="encoding" value="ISO_8859_1"/>
15
	<property name="workspaceDir" location="${ant.file.ant_libs.dir}/../.."/>
16
	<property name="workspace_loc" location="${workspaceDir}"/>
17
	<property name="binaries_loc" location="${workspace_loc}/binaries"/>
18
	<property name="dependencies_loc" location="${binaries_loc}/dependencies"/>
19
	<property name="lib_loc" location="${binaries_loc}/lib"/>
20
	<property name="unixOS" value="Linux,SunOS,Solaris,Mac OS X" />
21

  
22

  
23
	<!-- Macros to call the usual maven 2 goals from ant -->
24
	<macrodef name="mvn">
25
	   <attribute name="arg" />
26
	   <sequential>
27
			<exec executable="${workspaceDir}/build/maven/bin/mvn" failonerror="true" os="${unixOS}">
28
				<arg line="@{arg}"/>
29
			</exec>
30
			<exec executable="cmd" os="windows">
31
		    	<arg value="/c"/>
32
		    	<arg value="${workspaceDir}/build/maven/bin/mvn.bat"/>
33
		    	<arg value="@{arg}"/>
34
		    </exec>
35
	   </sequential>
36
	</macrodef>	
37
	
38
	<macrodef name="mvn-clean">
39
	   <sequential>
40
	   		<mvn arg="clean"/>
41
	   </sequential>
42
	</macrodef>
43
	
44
	<macrodef name="mvn-compile">
45
	   <sequential>
46
	   		<mvn arg="compile"/>
47
	   </sequential>
48
	</macrodef>
49

  
50
	<macrodef name="mvn-install">
51
	   <attribute name="tofile" />
52
	   <attribute name="mvnJarName"/>
53
	   <attribute name="disable-tests" default="false" />
54
	   <sequential>
55
	   		<mvn arg="install"/>
56
			<copy tofile="@{tofile}" file="target/@{mvnJarName}"/>
57
	   </sequential>
58
	</macrodef>
59

  
60
	<macrodef name="mvn-install-no-tests">
61
	   <attribute name="tofile" />
62
	   <attribute name="mvnJarName"/>
63
	   <attribute name="disable-tests" default="false" />
64
	   <sequential>
65
	   		<mvn arg="-Dmaven.test.skip=true install"/>
66
			<copy tofile="@{tofile}" file="target/@{mvnJarName}"/>
67
	   </sequential>
68
	</macrodef>
69
	
70
	<macrodef name="mvn-javadoc">
71
	   <sequential>
72
	   		<mvn arg="javadoc:javadoc"/>
73
	   </sequential>
74
	</macrodef>
75

  
76

  
77
	<!-- Macros to call the usual cmake goals from ant -->
78
	<property name="target" value="target/target_cmake"/>
79
	<property name="cmakeExe" value="cmake"/>
80
	<property name="buildman.executable" location="${workspaceDir}/build/buildman/bin/bmn.py" />
81

  
82
	<macrodef name="cmake">
83
		<attribute name="install-dependencies" default="OFF"/>
84
		<attribute name="cmake-build-type" default="Release"/>
85
		<attribute name="args" default=""/>
86
	   <sequential>
87
			<mkdir dir="${target}" />
88
			<delete file="${target}/CMakeCache.txt"/>
89
	        <exec dir="${target}" executable="${cmakeExe}" failonerror="true" os="${unixOS}">
90
    	        <arg value="-GUnix Makefiles" />
91
        	    <arg value="-DCMAKE_BUILD_TYPE=@{cmake-build-type}" />
92
            	<arg value="-DINSTALL_DEPENDENCIES=@{install-dependencies}"/>
93
            	<arg line="@{args}"/>
94
	            <arg value="../../" />
95
    	    </exec>
96
	        <exec dir="${target}" executable="${cmakeExe}" failonerror="true" osfamily="windows">
97
    	        <arg value="-GNMake Makefiles" />
98
        	    <arg value="-DCMAKE_BUILD_TYPE=@{cmake-build-type}" />
99
            	<arg value="-DINSTALL_DEPENDENCIES=@{install-dependencies}"/>
100
            	<arg line="@{args}"/>
101
	            <arg value="..\\..\\" />
102
    	    </exec>
103
		</sequential>
104
	</macrodef>	
105

  
106
	<macrodef name="make-install">
107
		<attribute name="numProc" default="2"/>
108
	   <sequential>
109
			<exec dir="${target}" executable="make" failonerror="true" os="${unixOS}">
110
				<arg value="-j@{numProc}"/>
111
				<arg value="install"/>
112
			</exec>
113
			<exec dir="${target}" executable="nmake" failonerror="true" osfamily="windows">
114
				<arg value="install"/>
115
			</exec>
116
		</sequential>
117
	</macrodef>
118
	<macrodef name="buildman">
119
		<attribute name="goal"/>
120
		<attribute name="args" default=""/>
121
	   	<sequential>
122
			<exec executable="python" failonerror="true" >
123
				<arg value="${buildman.executable}" />
124
				<arg value="@{goal}" />
125
				<arg line="@{args}" />
126
			</exec>
127
		</sequential>
128
	</macrodef>
129
</project>
130

  
131

  
132

  
0 133

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/target/org.gvsig.maven.base.tools/ant/gvsig-extension-tasks.xml
1
<project name="gvSIG-extension-tasks" default="make-extension-new">
2
	<description>
3
		Ant tasks for extension installation
4
	</description>
5

  
6
	<!-- gvSIG extension targets -->
7
	<condition property="isJar">
8
		<equals arg1="${project.packaging}" arg2="jar" />
9
	</condition>
10

  
11
	<target name="make-extension-new" if="isJar">
12
		<echo message="======================== Copying extension files to extensions dir..." />
13
		<copy todir="${gvsig.install.dir}">
14
			<fileset dir="target/${distribution-final-name}-distribution/${distribution-final-name}" includes="**/**" />
15
		</copy>
16
	</target>
17
</project>
0 18

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/target/org.gvsig.maven.base.tools/bash/unpack-dependencies.sh
1
#!/bin/bash
2

  
3
dep_dir=$1;
4
dest_dir=$2;
5

  
6
if [ ! -d $dest_dir ]; then mkdir $dest_dir; fi;
7
if [ ! -d $dep_dir ]; then exit 0; fi 
8

  
9
files=$(find $dep_dir -name *.tar.gz)
10
for i in $files; do
11
	echo "Expanding $i in $dest_dir"
12
	tar xzf $i -C $dest_dir
13
done
14

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/target/org.gvsig.maven.base.tools/checkstyle/gvsig.header
1
 ?/\* gvSIG\. Geographic Information System of the Valencian Government *$
2
 ?\* *$
3
 ?\* Copyright \(C\) 20\d\d-20\d\d Infrastructures and Transports Department *$
4
 ?\* of the Valencian Government \(CIT\) *$
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\., 51 Franklin Street, Fifth Floor, Boston, *$
19
 ?\* MA  02110-1301, USA\. *$
20
 ?\* *$
21
 ?\*/ *$
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/target/org.gvsig.maven.base.tools/checkstyle/checkstyle_gvsig.xml
1
<?xml version="1.0"?>
2
<!DOCTYPE module PUBLIC
3
    "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
4
    "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
5

  
6
<!--
7

  
8
  Checkstyle configuration that checks the sun coding conventions from:
9

  
10
    - the Java Language Specification at
11
      http://java.sun.com/docs/books/jls/second_edition/html/index.html
12

  
13
    - the Sun Code Conventions at http://java.sun.com/docs/codeconv/
14

  
15
    - the Javadoc guidelines at
16
      http://java.sun.com/j2se/javadoc/writingdoccomments/index.html
17

  
18
    - the JDK Api documentation http://java.sun.com/j2se/docs/api/index.html
19

  
20
    - some best practices
21

  
22
  Checkstyle is very configurable. Be sure to read the documentation at
23
  http://checkstyle.sf.net (or in your downloaded distribution).
24

  
25
  Most Checks are configurable, be sure to consult the documentation.
26

  
27
  To completely disable a check, just comment it out or delete it from the file.
28

  
29
  Finally, it is worth reading the documentation.
30

  
31
-->
32

  
33
<module name="Checker">
34

  
35
    <!-- Checks that a package.html file exists for each package.     -->
36
    <!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml -->
37
    <module name="PackageHtml"/>
38

  
39
    <!-- Checks whether files end with a new line.                        -->
40
    <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
41
    <!--module name="NewlineAtEndOfFile"/-->
42

  
43
    <!-- Checks that property files contain the same keys.         -->
44
    <!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
45
    <!--module name="Translation"/-->
46

  
47
    <module name="TreeWalker">
48

  
49
    	<property name="charset" value="UTF-8"/>
50

  
51
        <!-- Checks for Javadoc comments.                     -->
52
        <!-- See http://checkstyle.sf.net/config_javadoc.html -->
53
        <!-- gvSIG: All protected or public classes must have a Javadoc
54
             comment with the @author tag included -->
55
        <module name="JavadocType">
56
            <property name="scope" value="protected"/>
57
			<property name="authorFormat" value="\S"/>
58
        </module>
59
        <!-- gvSIG: All protected or public classes must have a Javadoc
60
             comments, except getters and setters -->
61
        <module name="JavadocMethod">
62
            <property name="scope" value="protected"/>
63
        	<property name="allowMissingPropertyJavadoc" value="true"/>
64
        </module>
65
        <!-- gvSIG: Check correctly formatted Javadoc -->
66
        <module name="JavadocStyle">
67
            <property name="scope" value="protected"/>
68
        </module>
69
        <!--
70
        <module name="JavadocVariable"/>
71
		 -->
72

  
73
        <!-- Checks for Naming Conventions.                  -->
74
        <!-- See http://checkstyle.sf.net/config_naming.html -->
75
        <!-- gvSIG: All packages must begin with org.gvsig.  -->
76
        <module name="PackageName">
77
			<property name="format"
78
            	  value="^org\.gvsig(\.[a-z][a-z0-9]*)+$"/>
79
        </module>
80
        <!-- gvSIG: Abstract class names must begin with Abstract. -->
81
        <module name="AbstractClassName"/>
82
        <!--
83
        <module name="ConstantName"/>
84
        <module name="LocalFinalVariableName"/>
85
        <module name="LocalVariableName"/>
86
        <module name="MemberName"/>
87
        <module name="MethodName"/>
88
        <module name="ParameterName"/>
89
        <module name="StaticVariableName"/>
90
        <module name="TypeName"/>
91
		 -->
92

  
93
        <!-- Checks for Headers                                -->
94
        <!-- See http://checkstyle.sf.net/config_header.html   -->
95
        <!-- gvSIG: Files must have the gvSIG header. -->
96

  
97
   <module name="RegexpHeader">                  
98
            <!-- The follow property value demonstrates the ability     -->
99
            <!-- to have access to ANT properties. In this case it uses -->
100
            <!-- the ${basedir} property to allow Checkstyle to be run  -->
101
            <!-- from any directory within a project. See property      -->
102
            <!-- expansion,                                             -->
103
            <!-- http://checkstyle.sf.net/config.html#properties        -->
104
            <!-- <property                                              -->
105
            <!--     name="headerFile"                                  -->
106
            <!--     value="${basedir}/build/java.header"/>                   -->
107
  			 
108
  					 	
109
  			<property name="headerFile" value="${checkstyle.header.file}"/>
110
           
111
        </module> 
112
        
113

  
114
        <!-- Following interprets the header file as regular expressions. -->
115
       <!-- <module name="RegexpHeader"/>    -->                             
116
         
117
        <!-- Checks for imports                              -->
118
        <!-- See http://checkstyle.sf.net/config_import.html -->
119
        <!-- gvSIG: Add warnings for redundant and unused imports -->
120
        <module name="RedundantImport">
121
        	<property name="severity" value="warning"/>
122
        </module>
123
        <module name="UnusedImports">
124
        	<property name="severity" value="warning"/>
125
        </module>
126
        <!--
127
        <module name="AvoidStarImport"/>
128
        <module name="IllegalImport"/> <!-#- defaults to sun.* packages -#->
129
 		-->
130

  
131
        <!-- Checks for Size Violations.                    -->
132
        <!-- See http://checkstyle.sf.net/config_sizes.html -->
133
        <!--
134
        <module name="FileLength"/>
135
        <module name="LineLength"/>
136
        <module name="MethodLength"/>
137
        <module name="ParameterNumber"/>
138
		 -->
139

  
140
        <!-- Checks for whitespace                               -->
141
        <!-- See http://checkstyle.sf.net/config_whitespace.html -->
142
        <!--
143
        <module name="EmptyForIteratorPad"/>
144
        <module name="MethodParamPad"/>
145
        <module name="NoWhitespaceAfter"/>
146
        <module name="NoWhitespaceBefore"/>
147
        <module name="OperatorWrap"/>
148
        <module name="ParenPad"/>
149
        <module name="TypecastParenPad"/>
150
        <module name="TabCharacter"/>
151
        <module name="WhitespaceAfter"/>
152
        <module name="WhitespaceAround"/>
153
 		-->
154

  
155
        <!-- Modifier Checks                                    -->
156
        <!-- See http://checkstyle.sf.net/config_modifiers.html -->
157
        <!--
158
        <module name="ModifierOrder"/>
159
        <module name="RedundantModifier"/>
160
		 -->
161

  
162
        <!-- Checks for blocks. You know, those {}'s         -->
163
        <!-- See http://checkstyle.sf.net/config_blocks.html -->
164
        <!--
165
        <module name="AvoidNestedBlocks"/>
166
        <module name="EmptyBlock"/>
167
        <module name="LeftCurly"/>
168
        <module name="NeedBraces"/>
169
        <module name="RightCurly"/>
170
		 -->
171

  
172
        <!-- Checks for common coding problems               -->
173
        <!-- See http://checkstyle.sf.net/config_coding.html -->
174
        <!-- gvSIG: Check for some common programming errors -->
175
        <module name="DoubleCheckedLocking"/>
176
        <module name="CovariantEquals"/>
177
        <module name="EqualsHashCode"/>
178
        <module name="IllegalInstantiation">
179
		    <property name="classes" value="java.lang.Boolean"/>
180
		</module>
181
		<module name="StringLiteralEquality"/>
182
        <!--
183
        <module name="AvoidInlineConditionals"/>
184
        <module name="EmptyStatement"/>
185
        <module name="HiddenField"/>
186
        <module name="InnerAssignment"/>
187
        <module name="MagicNumber"/>
188
        <module name="MissingSwitchDefault"/>
189
        <module name="RedundantThrows"/>
190
        <module name="SimplifyBooleanExpression"/>
191
        <module name="SimplifyBooleanReturn"/>
192
 		-->
193

  
194
        <!-- Checks for class design                         -->
195
        <!-- See http://checkstyle.sf.net/config_design.html -->
196
        <!--
197
        <module name="DesignForExtension"/>
198
        <module name="FinalClass"/>
199
        <module name="HideUtilityClassConstructor"/>
200
        <module name="InterfaceIsType"/>
201
        <module name="VisibilityModifier"/>
202
		 -->
203

  
204
        <!-- Miscellaneous other checks.                   -->
205
        <!-- See http://checkstyle.sf.net/config_misc.html -->
206
		<!-- gvSIG: Get the author from the Javadoc -->
207
        <!--
208
   		<module name="WriteTag">
209
            <property name="tag" value="@author"/>
210
            <property name="tagFormat" value="\S"/>
211
        </module>
212
        <module name="ArrayTypeStyle"/>
213
        <module name="FinalParameters"/>
214
        <module name="GenericIllegalRegexp">
215
            <property name="format" value="\s+$"/>
216
            <property name="message" value="Line has trailing spaces."/>
217
        </module>
218
        <module name="TodoComment"/>
219
        <module name="UpperEll"/>
220
 		-->
221

  
222
    </module>
223

  
224
</module>
0 225

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/target/org.gvsig.maven.base.tools/assembly/native.xml
1
<assembly>
2
	<id>${native-classifier}</id>
3
	<formats>
4
		<format>tar.gz</format>
5
	</formats>
6
	<baseDirectory></baseDirectory>
7
	<fileSets>
8
		<fileSet>
9
			<directory>${project.build.directory}/target_cmake_product</directory>
10
			<includes>
11
				<include>**/**</include>
12
			</includes>
13
			<outputDirectory>/</outputDirectory>
14
		</fileSet>
15
	</fileSets>
16
</assembly>
0 17

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/target/maven-archiver/pom.properties
1
#Generated by Maven
2
#Wed Mar 24 17:01:21 CET 2010
3
version=2.0-SNAPSHOT
4
groupId=org.gvsig
5
artifactId=org.gvsig.normalization.extension
0 6

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/src/org/gvsig/normalization/extension/NormalizationExtension.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
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., 51 Franklin Street, Fifth Floor, Boston, 
19
 * MA  02110-1301, USA.
20
 * 
21
 */
22

  
23
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2008 Prodevelop S.L. main development
26
 */
27

  
28
package org.gvsig.normalization.extension;
29

  
30
import org.gvsig.andami.plugins.Extension;
31
import org.gvsig.andami.preferences.IPreference;
32
import org.gvsig.andami.preferences.IPreferenceExtension;
33
import org.gvsig.app.daltransform.DataTransformLibrary;
34
import org.gvsig.app.daltransform.DataTransformLocator;
35
import org.gvsig.app.daltransform.DataTransformManager;
36
import org.gvsig.app.daltransform.impl.DefaultDataTransformLibrary;
37
import org.gvsig.normalization.gui.NormalizationTransformGui;
38
import org.gvsig.normalization.impl.DefaultNormalizationLibrary;
39
import org.gvsig.normalization.preferences.NormPreferences;
40
import org.gvsig.tools.library.Library;
41

  
42

  
43
/**
44
 * Normalization Extension
45
 * 
46
 * @author <a href="mailto:jsanz@prodevelop.es"> Jorge Gaspar Sanz Salinas</a>
47
 * @author <a href="mailto:vsanjaime@prodevelop.es"> Vicent Sanjaime Calvet</a>
48
 */
49

  
50
public class NormalizationExtension extends Extension implements
51
		IPreferenceExtension {
52

  
53
	private static final IPreference preference = new NormPreferences();
54

  
55
	/**
56
	 * This method executes the normalization file extension
57
	 * 
58
	 * @param actionCommand
59
	 */
60
	public void execute(String actionCommand) {
61

  
62
	}
63

  
64
	/**
65
	 * This method initializes some parameters of the extension
66
	 */
67

  
68
	public void initialize() {
69

  
70
		Library normLib = new DefaultNormalizationLibrary();
71
		normLib.initialize();
72

  
73
		Library transLib = new DefaultDataTransformLibrary();
74
		transLib.initialize();
75

  
76
		DataTransformManager dataTransformManager = DataTransformLocator
77
				.getDataTransformManager();
78
		dataTransformManager.registerDataTransform("NormalizationTransform",
79
				NormalizationTransformGui.class);
80
	}
81

  
82
	/**
83
	 * This method puts available the extension
84
	 * 
85
	 * @return enable
86
	 */
87
	public boolean isEnabled() {
88
		return false;
89
	}
90

  
91
	/**
92
	 * This method puts visible the extension
93
	 * 
94
	 * @return visible
95
	 */
96
	public boolean isVisible() {
97
		return false;
98
	}
99

  
100
	/**
101
	 * Get preference page
102
	 */
103
	public IPreference[] getPreferencesPages() {
104
		IPreference[] preferences = new IPreference[1];
105
		preferences[0] = preference;
106
		return preferences;
107
	}
108

  
109
	/**
110
	 * post initialize extension
111
	 */
112
	public void postInitialize() {
113
		Library normLib = new DefaultNormalizationLibrary();
114
		normLib.postInitialize();
115

  
116
		Library transLib = new DataTransformLibrary();
117
		transLib.postInitialize();
118
	}
119

  
120
}
0 121

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/src/org/gvsig/normalization/extension/AboutExtension.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
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., 51 Franklin Street, Fifth Floor, Boston, 
19
 * MA  02110-1301, USA.
20
 * 
21
 */
22

  
23
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2008 Prodevelop S.L. main development
26
 */
27

  
28
package org.gvsig.normalization.extension;
29

  
30
import java.io.File;
31

  
32
import org.gvsig.andami.PluginServices;
33
import org.gvsig.andami.plugins.Extension;
34
import org.gvsig.app.extension.About;
35

  
36

  
37
/**
38
 * About Normalization Extension
39
 * 
40
 * @author <a href="mailto:jsanz@prodevelop.es"> Jorge Gaspar Sanz Salinas</a>
41
 * @author <a href="mailto:vsanjaime@prodevelop.es"> Vicent Sanjaime Calvet</a>
42
 */
43
public class AboutExtension extends Extension {
44

  
45
	/**
46
	 * @see com.iver.andami.plugins.Extension#inicializar()
47
	 */
48
	public void initialize() {
49
		About classAbout = (About) PluginServices
50
				.getExtension(About.class);
51
		ClassLoader classLoader = getClass().getClassLoader();
52
		java.net.URL aboutURL2 = classLoader.getResource("about"
53
				+ File.separator + "normabout.htm");
54
		String title = PluginServices.getText(null, "pref_normalization");
55
		classAbout.getAboutPanel().addAboutUrl(title, aboutURL2);
56
	}
57

  
58
	/**
59
	 * @see com.iver.andami.plugins.Extension#execute(java.lang.String)
60
	 */
61
	public void execute(String actionCommand) {
62
	}
63

  
64
	/**
65
	 * @see com.iver.andami.plugins.Extension#isEnabled()
66
	 */
67
	public boolean isEnabled() {
68
		return true;
69
	}
70

  
71
	/**
72
	 * @see com.iver.andami.plugins.Extension#isVisible()
73
	 */
74
	public boolean isVisible() {
75
		return true;
76
	}
77

  
78
}
0 79

  
branches/v2_0_0_prep/extensions/org.gvsig.normalization.extension/src/org/gvsig/normalization/preferences/NormPreferences.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
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,
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff