comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/RangeState.java @ 635:acf3b49ec31f

Take the flow direction into account. flys-artifacts/trunk@2010 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 26 May 2011 14:27:06 +0000
parents c21fb8de54f8
children 610d0e0f4f85
comparison
equal deleted inserted replaced
634:d8c47520c726 635:acf3b49ec31f
42 else if (to > toValid) { 42 else if (to > toValid) {
43 logger.error( 43 logger.error(
44 "Invalid 'to'. " + to + " is bigger than " + toValid); 44 "Invalid 'to'. " + to + " is bigger than " + toValid);
45 throw new IllegalArgumentException("error_feed_to_out_of_range"); 45 throw new IllegalArgumentException("error_feed_to_out_of_range");
46 } 46 }
47 /*
47 else if (from > to) { 48 else if (from > to) {
48 throw new IllegalArgumentException("error_feed_from_bigger_to"); 49 throw new IllegalArgumentException("error_feed_from_bigger_to");
49 } 50 }
51 */
50 52
51 return true; 53 return true;
52 } 54 }
53 } 55 }
54 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : 56 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org