[Schmitzm-commits] r1002 - in trunk: src/schmitzm/data/resource/locales src/skrueger/db src_junit/schmitzm/lang

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Sep 14 14:45:06 CEST 2010


Author: alfonx
Date: 2010-09-14 14:45:05 +0200 (Tue, 14 Sep 2010)
New Revision: 1002

Modified:
   trunk/src/schmitzm/data/resource/locales/DataResourceBundle_it.properties
   trunk/src/skrueger/db/PGUtil.java
   trunk/src_junit/schmitzm/lang/LangUtilTest.java
Log:


Modified: trunk/src/schmitzm/data/resource/locales/DataResourceBundle_it.properties
===================================================================
--- trunk/src/schmitzm/data/resource/locales/DataResourceBundle_it.properties	2010-09-14 12:29:01 UTC (rev 1001)
+++ trunk/src/schmitzm/data/resource/locales/DataResourceBundle_it.properties	2010-09-14 12:45:05 UTC (rev 1002)
@@ -1,57 +1,57 @@
-##########
-#Copyright (c) 2009 Martin O. J. Schmitz.
-#
-#This file is part of the SCHMITZM library - a collection of utility 
-#classes based on Java 1.6, focusing (not only) on Java Swing 
-#and the Geotools library.
-#
-#The SCHMITZM project is hosted at:
-#http://wald.intevation.org/projects/schmitzm/
-#
-#This program is free software; you can redistribute it and/or
-#modify it under the terms of the GNU Lesser General Public License
-#as published by the Free Software Foundation; either version 3
-#of the License, or (at your option) any later version.
-#
-#This program is distributed in the hope that it will be useful,
-#but WITHOUT ANY WARRANTY; without even the implied warranty of
-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-#GNU General Public License for more details.
-#
-#You should have received a copy of the GNU Lesser General Public License (license.txt)
-#along with this program; if not, write to the Free Software
-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
-#or try this link: http://www.gnu.org/licenses/lgpl.html
-#
-#Contributors:
-#    Annica Sahlin
-##########
-
-# -------------------------------------------------
-# ------ Italian Translations for components ------
-# ------ in Package schmitzm.data            ------
-# -------------------------------------------------
-DistanceUnit.FEET=feet
-DistanceUnit.FEET.Abb=ft
-DistanceUnit.KM=Chilometri
-DistanceUnit.KM.Abb=km
-DistanceUnit.METERS=metri
-DistanceUnit.METERS.Abb=m
-DistanceUnit.MILES=miles
-DistanceUnit.MILES.Abb=mi
-DistanceUnit.YARDS=yards
-DistanceUnit.YARDS.Abb=yt
-RasterDim.CellHeight=Altezza cella
-RasterDim.CellWidth=Larghezza cella
-RasterDim.ErrorMess=${0} di '${1}' \u00e8 incompatibile a '${2}'...
-RasterDim.GridHeight=Altezza griglia
-RasterDim.GridWidth=Larghezza griglia
-RasterDim.SampleType=Grid sample type
-
-# --- Translations for RasterOperationTree / RasterOperationTreeParser
-RasterOperationTree.AllowedIdx=accettato: 0 a ${0}
-RasterOperationTree.NoneAllowed=nessuno accettato
-RasterOperationTree.err.FilterReferenceNotAllowed=Filto pu\u00f2 solo essere applicato a raster reference
-RasterOperationTree.err.InvalidFilterReference=Riferimento filtro di input non valido'F${0}' (${1})
-RasterOperationTree.err.InvalidRasterReference=Riferimento raster di input non valido '#${0}' (${1})
-RasterOperationTree.err.NonNumericResult=RasterCalculator pu\u00f2 solo supportare risultati numerici: ${0}
+##########
+#Copyright (c) 2009 Martin O. J. Schmitz.
+#
+#This file is part of the SCHMITZM library - a collection of utility 
+#classes based on Java 1.6, focusing (not only) on Java Swing 
+#and the Geotools library.
+#
+#The SCHMITZM project is hosted at:
+#http://wald.intevation.org/projects/schmitzm/
+#
+#This program is free software; you can redistribute it and/or
+#modify it under the terms of the GNU Lesser General Public License
+#as published by the Free Software Foundation; either version 3
+#of the License, or (at your option) any later version.
+#
+#This program is distributed in the hope that it will be useful,
+#but WITHOUT ANY WARRANTY; without even the implied warranty of
+#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#GNU General Public License for more details.
+#
+#You should have received a copy of the GNU Lesser General Public License (license.txt)
+#along with this program; if not, write to the Free Software
+#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+#or try this link: http://www.gnu.org/licenses/lgpl.html
+#
+#Contributors:
+#    Annica Sahlin
+##########
+
+# -------------------------------------------------
+# ------ Italian Translations for components ------
+# ------ in Package schmitzm.data            ------
+# -------------------------------------------------
+DistanceUnit.FEET=feet
+DistanceUnit.FEET.Abb=ft
+DistanceUnit.KM=Chilometri
+DistanceUnit.KM.Abb=km
+DistanceUnit.METERS=metri
+DistanceUnit.METERS.Abb=m
+DistanceUnit.MILES=miles
+DistanceUnit.MILES.Abb=mi
+DistanceUnit.YARDS=yards
+DistanceUnit.YARDS.Abb=yt
+RasterDim.CellHeight=Altezza cella
+RasterDim.CellWidth=Larghezza cella
+RasterDim.ErrorMess=${0} di '${1}' \u00e8 incompatibile a '${2}'...
+RasterDim.GridHeight=Altezza griglia
+RasterDim.GridWidth=Larghezza griglia
+RasterDim.SampleType=Grid sample type
+
+# --- Translations for RasterOperationTree / RasterOperationTreeParser
+RasterOperationTree.AllowedIdx=accettato: 0 a ${0}
+RasterOperationTree.NoneAllowed=nessuno accettato
+RasterOperationTree.err.FilterReferenceNotAllowed=Filto pu\u00f2 solo essere applicato a raster reference
+RasterOperationTree.err.InvalidFilterReference=Riferimento filtro di input non valido'F${0}' (${1})
+RasterOperationTree.err.InvalidRasterReference=Riferimento raster di input non valido '#${0}' (${1})
+RasterOperationTree.err.NonNumericResult=RasterCalculator pu\u00f2 solo supportare risultati numerici: ${0}

Modified: trunk/src/skrueger/db/PGUtil.java
===================================================================
--- trunk/src/skrueger/db/PGUtil.java	2010-09-14 12:29:01 UTC (rev 1001)
+++ trunk/src/skrueger/db/PGUtil.java	2010-09-14 12:45:05 UTC (rev 1002)
@@ -4,6 +4,8 @@
  * Hilfsmethoden für PostgreSQL
  */
 public class PGUtil {
+	
+// TODO	isGeoColumn();
 
 	/**
 	 * @param binding

Modified: trunk/src_junit/schmitzm/lang/LangUtilTest.java
===================================================================
--- trunk/src_junit/schmitzm/lang/LangUtilTest.java	2010-09-14 12:29:01 UTC (rev 1001)
+++ trunk/src_junit/schmitzm/lang/LangUtilTest.java	2010-09-14 12:45:05 UTC (rev 1002)
@@ -8,7 +8,21 @@
 
 public class LangUtilTest {
 	
+
 	@Test
+	public void testOnlyZeros() {
+		assertTrue(LangUtil.onlyZero("000000"));
+		assertTrue(LangUtil.onlyZero("0.0"));
+		assertTrue(LangUtil.onlyZero("0,0"));
+		assertTrue(LangUtil.onlyZero("0"));
+		assertTrue(LangUtil.onlyZero(""));
+		assertTrue(LangUtil.onlyZero("000,000,0.0"));
+		assertFalse(LangUtil.onlyZero("  0,02"));
+		assertFalse(LangUtil.onlyZero(" 20,0"));
+		assertFalse(LangUtil.onlyZero(" 00200,0"));
+	}
+	
+	@Test
 	public void testParseStringDefaultFalse() {
 		assertTrue(LangUtil.parseStringDefaultFalse("y"));
 		assertTrue(LangUtil.parseStringDefaultFalse("Yes"));



More information about the Schmitzm-commits mailing list