Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/sinfo/importitem/InfrastructureSeriesImport.java @ 9616:cedcee24a21a
Nachtrag Pos. 20: group added in infrastructure importer
author | mschaefer |
---|---|
date | Wed, 09 Oct 2019 19:25:55 +0200 |
parents | 4c5eeaff554c |
children | 75bd347147ad |
comparison
equal
deleted
inserted
replaced
9615:ca492336570b | 9616:cedcee24a21a |
---|---|
33 | 33 |
34 private static Logger log = Logger.getLogger(InfrastructureSeriesImport.class); | 34 private static Logger log = Logger.getLogger(InfrastructureSeriesImport.class); |
35 | 35 |
36 private ImportAnnotationType type; | 36 private ImportAnnotationType type; |
37 | 37 |
38 private ImportAnnotationType group; | |
39 | |
38 private String provider; | 40 private String provider; |
39 | 41 |
40 private String evaluation_by; | 42 private String evaluation_by; |
41 | 43 |
42 private int year; | 44 private int year; |
51 | 53 |
52 /***** METHODS *****/ | 54 /***** METHODS *****/ |
53 | 55 |
54 public void setType(final ImportAnnotationType type) { | 56 public void setType(final ImportAnnotationType type) { |
55 this.type = type; | 57 this.type = type; |
58 } | |
59 | |
60 public void setGroup(final ImportAnnotationType group) { | |
61 this.group = group; | |
56 } | 62 } |
57 | 63 |
58 public void setProvider(final String provider) { | 64 public void setProvider(final String provider) { |
59 this.provider = provider; | 65 this.provider = provider; |
60 } | 66 } |
81 } | 87 } |
82 | 88 |
83 | 89 |
84 @Override | 90 @Override |
85 public Infrastructure createSeriesItem(final River river) { | 91 public Infrastructure createSeriesItem(final River river) { |
86 return new Infrastructure(river, this.filename, this.kmrange_info, this.notes, this.type.getPeer(), this.year, this.provider, this.evaluation_by); | 92 return new Infrastructure(river, this.filename, this.kmrange_info, this.notes, this.type.getPeer(), this.group.getPeer(), this.year, this.provider, |
93 this.evaluation_by); | |
87 } | 94 } |
88 } | 95 } |