Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/ArtifactDescriptionFactory.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | 238fc722f87a |
children | f575ff573cbb 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
123 * | 123 * |
124 * @return A {@link Data} object that represents the data which might be | 124 * @return A {@link Data} object that represents the data which might be |
125 * entered by the user in the current state or null, if no data might be | 125 * entered by the user in the current state or null, if no data might be |
126 * entered. | 126 * entered. |
127 */ | 127 */ |
128 protected static DataList extractCurrentData(Node dynamicNode, String state) { | 128 protected static DataList extractCurrentData( |
129 Node dynamicNode, | |
130 String state | |
131 ) { | |
129 log.debug("ArtifactDescriptionFactory.extractCurrentData"); | 132 log.debug("ArtifactDescriptionFactory.extractCurrentData"); |
130 | 133 |
131 NodeList data = ClientProtocolUtils.getSelectNode(dynamicNode); | 134 NodeList data = ClientProtocolUtils.getSelectNode(dynamicNode); |
132 String help = extractHelpText(dynamicNode); | 135 String help = extractHelpText(dynamicNode); |
133 String uiProvider = extractUIProvider(dynamicNode); | 136 String uiProvider = extractUIProvider(dynamicNode); |
210 } | 213 } |
211 } | 214 } |
212 else if (type.equals("intarray")) { | 215 else if (type.equals("intarray")) { |
213 list.add(new IntegerArrayData(name, label, null)); | 216 list.add(new IntegerArrayData(name, label, null)); |
214 } | 217 } |
215 else if (type.equals("intoptions") && uiProvider.equals("parameter-matrix")) { | 218 else if (type.equals("intoptions") |
219 && uiProvider.equals("parameter-matrix") | |
220 ) { | |
216 list.add(DataFactory.createIntegerOptionsData(d, name, label)); | 221 list.add(DataFactory.createIntegerOptionsData(d, name, label)); |
217 } | 222 } |
218 else if (type.equals("options")) { | 223 else if (type.equals("options")) { |
219 list.add(DataFactory.createStringOptionsData(d, name, label)); | 224 list.add(DataFactory.createStringOptionsData(d, name, label)); |
220 } | 225 } |
584 String targetOut = e.getAttribute("target_out"); | 589 String targetOut = e.getAttribute("target_out"); |
585 | 590 |
586 if (factory != null && factory.length() > 0) { | 591 if (factory != null && factory.length() > 0) { |
587 log.debug("Adding Recommendation. Factory: " + factory + | 592 log.debug("Adding Recommendation. Factory: " + factory + |
588 " IDs: " + index + " target out " + targetOut); | 593 " IDs: " + index + " target out " + targetOut); |
589 rec[i] = new Recommendation(factory, index, null, null, targetOut); | 594 rec[i] = new Recommendation( |
595 factory, index, null, null, targetOut); | |
590 } | 596 } |
591 } | 597 } |
592 | 598 |
593 return rec; | 599 return rec; |
594 } | 600 } |