comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java @ 765:763c4137d6e1

Added classification of annotation types. Needs testing! flys-backend/trunk@2162 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 19 Jun 2011 12:26:12 +0000
parents bcc18293a547
children aa9e3da95c31
comparison
equal deleted inserted replaced
764:e09f00ecb915 765:763c4137d6e1
58 58
59 protected List<ImportWst> floodProtection; 59 protected List<ImportWst> floodProtection;
60 60
61 protected ImportWst wst; 61 protected ImportWst wst;
62 62
63 protected AnnotationClassifier annotationClassifier;
64
63 protected River peer; 65 protected River peer;
64 66
65 public ImportRiver() { 67 public ImportRiver() {
68 this(null);
69 }
70
71 public ImportRiver(AnnotationClassifier annotationClassifier) {
66 extraWsts = new ArrayList<ImportWst>(); 72 extraWsts = new ArrayList<ImportWst>();
67 fixations = new ArrayList<ImportWst>(); 73 fixations = new ArrayList<ImportWst>();
68 officialLines = new ArrayList<ImportWst>(); 74 officialLines = new ArrayList<ImportWst>();
69 floodWater = new ArrayList<ImportWst>(); 75 floodWater = new ArrayList<ImportWst>();
70 floodProtection = new ArrayList<ImportWst>(); 76 floodProtection = new ArrayList<ImportWst>();
77 this.annotationClassifier = annotationClassifier;
71 } 78 }
72 79
73 public ImportRiver(String name, File wstFile, File bbInfoFile) { 80 public ImportRiver(String name, File wstFile, File bbInfoFile) {
74 this(); 81 this();
75 this.name = name; 82 this.name = name;
328 } 335 }
329 } 336 }
330 337
331 public void parseAnnotations() throws IOException { 338 public void parseAnnotations() throws IOException {
332 File riverDir = wstFile.getParentFile().getParentFile(); 339 File riverDir = wstFile.getParentFile().getParentFile();
333 AnnotationsParser aparser = new AnnotationsParser(); 340 AnnotationsParser aparser =
341 new AnnotationsParser(annotationClassifier);
334 aparser.parse(riverDir); 342 aparser.parse(riverDir);
335 343
336 annotations = aparser.getAnnotations(); 344 annotations = aparser.getAnnotations();
337 } 345 }
338 346

http://dive4elements.wald.intevation.org