Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/CalculationSelect.java @ 1180:1aba1a75beb2
Write the name of the selected waterlevels (used for the floodmap) into the static DESCRIBE.
flys-artifacts/trunk@2770 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 16 Sep 2011 08:47:09 +0000 |
parents | fc572b30f1b8 |
children | 47ecf98f09eb |
comparison
equal
deleted
inserted
replaced
1179:ebb48bef3529 | 1180:1aba1a75beb2 |
---|---|
97 | 97 |
98 return calcs; | 98 return calcs; |
99 } | 99 } |
100 | 100 |
101 | 101 |
102 protected Element createItem(XMLUtils.ElementCreator cr, Object obj) { | |
103 Element item = ProtocolUtils.createArtNode(cr, "item", null, null); | |
104 Element label = ProtocolUtils.createArtNode(cr, "label", null, null); | |
105 Element value = ProtocolUtils.createArtNode(cr, "value", null, null); | |
106 | |
107 String[] arr = (String[]) obj; | |
108 | |
109 label.setTextContent(arr[0]); | |
110 value.setTextContent(arr[1]); | |
111 | |
112 item.appendChild(label); | |
113 item.appendChild(value); | |
114 | |
115 return item; | |
116 } | |
117 | |
118 | |
119 @Override | 102 @Override |
120 public boolean validate(Artifact artifact) | 103 public boolean validate(Artifact artifact) |
121 throws IllegalArgumentException | 104 throws IllegalArgumentException |
122 { | 105 { |
123 logger.debug("CalculationSelect.validate"); | 106 logger.debug("CalculationSelect.validate"); |