# HG changeset patch # User Sascha L. Teichmann # Date 1254387469 0 # Node ID 158e89c2263be077a79310d61c1582698e07c647 # Parent d8d38a4dd965a2552b54163d5e4577a5c8979d89 Removed needless imports. gnv-artifacts/trunk@166 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r d8d38a4dd965 -r 158e89c2263b gnv-artifacts/Changelog --- a/gnv-artifacts/Changelog Wed Sep 30 13:48:02 2009 +0000 +++ b/gnv-artifacts/Changelog Thu Oct 01 08:57:49 2009 +0000 @@ -1,3 +1,18 @@ +2009-10-01 Sascha L. Teichmann + + * src/main/java/de/intevation/gnv/artifacts/fis/FISArtifact.java, + src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java, + src/main/java/de/intevation/gnv/utils/ArtifactFactoryUtilities.java, + src/main/java/de/intevation/gnv/timeseries/TimeSeriesArtifact.java, + src/main/java/de/intevation/gnv/transition/MinMaxTransition.java, + src/main/java/de/intevation/gnv/transition/profile/vertical/VerticalProfileOutputTransition.java, + src/main/java/de/intevation/gnv/statistics/TimeseriesStatistics.java: + Removed needless imports. + + * src/main/java/de/intevation/gnv/utils/InputValidator.java: + Import org.apache.commons.validator.GenericValidator instead of + absolute usage in methods. + 2009-09-30 Tim Englich * src/test/ressources/queries.properties Edited: diff -r d8d38a4dd965 -r 158e89c2263b gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java --- a/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java Wed Sep 30 13:48:02 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java Thu Oct 01 08:57:49 2009 +0000 @@ -5,13 +5,11 @@ import java.io.IOException; import java.io.OutputStream; -import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.Map; -import javax.xml.XMLConstants; import javax.xml.xpath.XPathConstants; import org.apache.log4j.Logger; diff -r d8d38a4dd965 -r 158e89c2263b gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/fis/FISArtifact.java --- a/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/fis/FISArtifact.java Wed Sep 30 13:48:02 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/fis/FISArtifact.java Thu Oct 01 08:57:49 2009 +0000 @@ -29,9 +29,6 @@ import de.intevation.gnv.artifacts.fis.product.Product; import de.intevation.gnv.transition.DefaultInputData; import de.intevation.gnv.transition.InputData; -import de.intevation.gnv.transition.InputValue; -import de.intevation.gnv.transition.OutputMode; -import de.intevation.gnv.transition.OutputTransition; import de.intevation.gnv.utils.ArtifactFactoryUtilities; import de.intevation.gnv.utils.ArtifactXMLUtilities; diff -r d8d38a4dd965 -r 158e89c2263b gnv-artifacts/src/main/java/de/intevation/gnv/statistics/TimeseriesStatistics.java --- a/gnv-artifacts/src/main/java/de/intevation/gnv/statistics/TimeseriesStatistics.java Wed Sep 30 13:48:02 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/statistics/TimeseriesStatistics.java Thu Oct 01 08:57:49 2009 +0000 @@ -25,7 +25,6 @@ import org.apache.log4j.Logger; import de.intevation.gnv.geobackend.base.Result; -import de.intevation.gnv.geobackend.sde.datasources.ResultSet; import de.intevation.gnv.statistics.exception.StatisticsException; diff -r d8d38a4dd965 -r 158e89c2263b gnv-artifacts/src/main/java/de/intevation/gnv/timeseries/TimeSeriesArtifact.java --- a/gnv-artifacts/src/main/java/de/intevation/gnv/timeseries/TimeSeriesArtifact.java Wed Sep 30 13:48:02 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/timeseries/TimeSeriesArtifact.java Thu Oct 01 08:57:49 2009 +0000 @@ -5,12 +5,10 @@ import org.apache.log4j.Logger; import org.w3c.dom.Document; -import org.w3c.dom.Node; import de.intevation.artifacts.ArtifactFactory; import de.intevation.artifacts.CallContext; import de.intevation.gnv.artifacts.GNVArtifactBase; -import de.intevation.gnv.artifacts.context.GNVArtifactContext; /** * @author Tim Englich diff -r d8d38a4dd965 -r 158e89c2263b gnv-artifacts/src/main/java/de/intevation/gnv/transition/MinMaxTransition.java --- a/gnv-artifacts/src/main/java/de/intevation/gnv/transition/MinMaxTransition.java Wed Sep 30 13:48:02 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/transition/MinMaxTransition.java Thu Oct 01 08:57:49 2009 +0000 @@ -7,13 +7,10 @@ import java.util.Collection; import org.apache.log4j.Logger; -import org.w3c.dom.Document; -import org.w3c.dom.Node; import de.intevation.gnv.geobackend.base.Result; import de.intevation.gnv.transition.describedata.DefaultMinMaxDescribeData; import de.intevation.gnv.transition.describedata.DescribeData; -import de.intevation.gnv.transition.describedata.MinMaxDescribeData; /** * @author Tim Englich diff -r d8d38a4dd965 -r 158e89c2263b gnv-artifacts/src/main/java/de/intevation/gnv/transition/profile/vertical/VerticalProfileOutputTransition.java --- a/gnv-artifacts/src/main/java/de/intevation/gnv/transition/profile/vertical/VerticalProfileOutputTransition.java Wed Sep 30 13:48:02 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/transition/profile/vertical/VerticalProfileOutputTransition.java Thu Oct 01 08:57:49 2009 +0000 @@ -12,7 +12,6 @@ import de.intevation.gnv.chart.VerticalProfileChartFactory; import de.intevation.gnv.chart.exception.TechnicalChartException; import de.intevation.gnv.statistics.Statistics; -import de.intevation.gnv.statistics.TimeseriesStatistics; import de.intevation.gnv.statistics.VerticalProfileStatistics; import de.intevation.gnv.transition.describedata.KeyValueDescibeData; import de.intevation.gnv.transition.timeseries.TimeSeriesOutputTransition; diff -r d8d38a4dd965 -r 158e89c2263b gnv-artifacts/src/main/java/de/intevation/gnv/utils/ArtifactFactoryUtilities.java --- a/gnv-artifacts/src/main/java/de/intevation/gnv/utils/ArtifactFactoryUtilities.java Wed Sep 30 13:48:02 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/utils/ArtifactFactoryUtilities.java Thu Oct 01 08:57:49 2009 +0000 @@ -7,7 +7,6 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; -import de.intevation.artifactdatabase.Config; import de.intevation.artifacts.ArtifactFactory; diff -r d8d38a4dd965 -r 158e89c2263b gnv-artifacts/src/main/java/de/intevation/gnv/utils/InputValidator.java --- a/gnv-artifacts/src/main/java/de/intevation/gnv/utils/InputValidator.java Wed Sep 30 13:48:02 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/utils/InputValidator.java Thu Oct 01 08:57:49 2009 +0000 @@ -7,6 +7,8 @@ import de.intevation.gnv.geobackend.util.DateUtils; +import org.apache.commons.validator.GenericValidator; + /** * @author Tim Englich * @@ -31,15 +33,15 @@ for (int i = 0; i < values.length; i++){ boolean valid; if ("Integer".equalsIgnoreCase(type)){ - valid = org.apache.commons.validator.GenericValidator.isInt(values[i].trim()); + valid = GenericValidator.isInt(values[i].trim()); }else if ("Double".equalsIgnoreCase(type)){ - valid = org.apache.commons.validator.GenericValidator.isDouble(values[i].trim()); + valid = GenericValidator.isDouble(values[i].trim()); }else if ("String".equalsIgnoreCase(type)){ - valid = org.apache.commons.validator.GenericValidator.matchRegexp(values[i], "[a-zA-Z0-9]"); // TODO: FIXME: VALIDATE REGEXP + valid = GenericValidator.matchRegexp(values[i], "[a-zA-Z0-9]"); // TODO: FIXME: VALIDATE REGEXP }else if ("Date".equalsIgnoreCase(type)){ - valid = org.apache.commons.validator.GenericValidator.isDate(values[i].trim(), DateUtils.DATE_PATTERN, true); + valid = GenericValidator.isDate(values[i].trim(), DateUtils.DATE_PATTERN, true); }else if ("Point".equalsIgnoreCase(type)){ - valid = org.apache.commons.validator.GenericValidator.matchRegexp(values[i], "[0-9]"); // TODO: FIXME: VALIDATE REGEXP + valid = GenericValidator.matchRegexp(values[i], "[0-9]"); // TODO: FIXME: VALIDATE REGEXP }else{ valid = false; }