Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/HistoricalDischargeState.java @ 8202:e4606eae8ea5
sed src/**/*.java 's/logger/log/g'
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 12:58:17 +0200 |
parents | af13ceeba52a |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
25 /** | 25 /** |
26 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 26 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
27 */ | 27 */ |
28 public class HistoricalDischargeState extends DefaultState { | 28 public class HistoricalDischargeState extends DefaultState { |
29 | 29 |
30 private static final Logger logger = | 30 private static final Logger log = |
31 Logger.getLogger(HistoricalDischargeState.class); | 31 Logger.getLogger(HistoricalDischargeState.class); |
32 | 32 |
33 public static final String I18N_MODE_W = "historical.mode.w"; | 33 public static final String I18N_MODE_W = "historical.mode.w"; |
34 public static final String I18N_MODE_Q = "historical.mode.q"; | 34 public static final String I18N_MODE_Q = "historical.mode.q"; |
35 | 35 |
74 ElementCreator creator, | 74 ElementCreator creator, |
75 Artifact artifact, | 75 Artifact artifact, |
76 String name, | 76 String name, |
77 CallContext context | 77 CallContext context |
78 ) { | 78 ) { |
79 logger.debug("createItems()"); | 79 log.debug("createItems()"); |
80 | 80 |
81 if (name != null && name.equals(DATA_MODE)) { | 81 if (name != null && name.equals(DATA_MODE)) { |
82 return createModeItem(creator, artifact, name, context); | 82 return createModeItem(creator, artifact, name, context); |
83 } | 83 } |
84 else if (name != null && name.equals(DATA_VALUES)) { | 84 else if (name != null && name.equals(DATA_VALUES)) { |
85 return createValuesItem(creator, artifact, name, context); | 85 return createValuesItem(creator, artifact, name, context); |
86 } | 86 } |
87 | 87 |
88 logger.warn("Tried to create item for invalid data: " + name); | 88 log.warn("Tried to create item for invalid data: " + name); |
89 | 89 |
90 return new Element[0]; | 90 return new Element[0]; |
91 } | 91 } |
92 | 92 |
93 | 93 |
119 ElementCreator creator, | 119 ElementCreator creator, |
120 Artifact artifact, | 120 Artifact artifact, |
121 String name, | 121 String name, |
122 CallContext context | 122 CallContext context |
123 ) { | 123 ) { |
124 logger.debug("createModeItem()"); | 124 log.debug("createModeItem()"); |
125 | 125 |
126 CallMeta meta = context.getMeta(); | 126 CallMeta meta = context.getMeta(); |
127 | 127 |
128 Element modeW = createItem( | 128 Element modeW = createItem( |
129 creator, | 129 creator, |
145 ElementCreator creator, | 145 ElementCreator creator, |
146 Artifact artifact, | 146 Artifact artifact, |
147 String name, | 147 String name, |
148 CallContext context | 148 CallContext context |
149 ) { | 149 ) { |
150 logger.debug("createValuesItem()"); | 150 log.debug("createValuesItem()"); |
151 | 151 |
152 Element valuesW = createItem( | 152 Element valuesW = createItem( |
153 creator, new String[] { "ws", "" } ); | 153 creator, new String[] { "ws", "" } ); |
154 | 154 |
155 Element valuesQ = createItem( | 155 Element valuesQ = createItem( |