comparison backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java @ 6328:53d08f33d094

Backend: Moved guessing of main values and there time intervals out of the STA parser. Same come will be useful to extend the WST parser to better handle official lines.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 13 Jun 2013 17:15:34 +0200
parents f9c5e1a8032d
children 224d7c4b5291
comparison
equal deleted inserted replaced
6327:447ed3dee890 6328:53d08f33d094
75 75
76 public void setWst(ImportWst wst) { 76 public void setWst(ImportWst wst) {
77 this.wst = wst; 77 this.wst = wst;
78 } 78 }
79 79
80 public ImportTimeInterval guessDate(String string) { 80 public static ImportTimeInterval guessDate(String string) {
81 try { 81 try {
82 return new ImportTimeInterval( 82 return new ImportTimeInterval(
83 DateGuesser.guessDate(string)); 83 DateGuesser.guessDate(string));
84 } 84 }
85 catch (IllegalArgumentException iae) { 85 catch (IllegalArgumentException iae) {

http://dive4elements.wald.intevation.org