Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java @ 6727:af70e3ab2e83
Doc.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 31 Jul 2013 11:34:31 +0200 |
parents | b2eab164a441 |
children | c14e17dabf39 c894b7b45c4c |
comparison
equal
deleted
inserted
replaced
6726:b68798973da2 | 6727:af70e3ab2e83 |
---|---|
83 | 83 |
84 public void setWst(ImportWst wst) { | 84 public void setWst(ImportWst wst) { |
85 this.wst = wst; | 85 this.wst = wst; |
86 } | 86 } |
87 | 87 |
88 /** Returns a new ImportTimeInterval with a date guessed from string. */ | |
88 public static ImportTimeInterval guessDate(String string) { | 89 public static ImportTimeInterval guessDate(String string) { |
89 try { | 90 try { |
90 Matcher m = YEAR_INTERVAL.matcher(string); | 91 Matcher m = YEAR_INTERVAL.matcher(string); |
91 if (m.matches()) { | 92 if (m.matches()) { |
92 return new ImportTimeInterval( | 93 return new ImportTimeInterval( |