comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/PreSettingsTransferState.java @ 796:a5526908f92f

Added javadoc in state package. gnv-artifacts/trunk@878 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 01 Apr 2010 09:15:36 +0000
parents c4156275c1e1
children feae2f9d6c6f
comparison
equal deleted inserted replaced
795:cdade5005cba 796:a5526908f92f
12 12
13 import org.w3c.dom.Element; 13 import org.w3c.dom.Element;
14 import org.w3c.dom.Node; 14 import org.w3c.dom.Node;
15 15
16 /** 16 /**
17 * This special state does a lookup for already inserted data while
18 * initializing. If there are some data for this state, take them for further
19 * work.
20 *
17 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> 21 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
18 *
19 */ 22 */
20 public class PreSettingsTransferState extends DefaultState { 23 public class PreSettingsTransferState extends DefaultState {
21 24
22 /** 25 /**
23 * The UID of this Class 26 * The UID of this Class
32 */ 35 */
33 public PreSettingsTransferState() { 36 public PreSettingsTransferState() {
34 super(); 37 super();
35 } 38 }
36 39
40
37 /** 41 /**
38 * @see de.intevation.gnv.state.StateBase#initialize(java.lang.String, de.intevation.artifacts.CallContext) 42 * This method does a lookup for already inserted data before initializing
43 * it.
44 *
45 * @param uuid
46 * @param context
47 * @throws StateException
39 */ 48 */
40 @Override 49 @Override
41 public void initialize(String uuid, CallContext context) 50 public void initialize(String uuid, CallContext context)
42 throws StateException { 51 throws StateException {
43 Map<String, InputData> preSettings = this.getPreSettings(); 52 Map<String, InputData> preSettings = this.getPreSettings();
52 } 61 }
53 62
54 super.initialize(uuid, context); 63 super.initialize(uuid, context);
55 } 64 }
56 65
66
57 /** 67 /**
58 * @see de.intevation.gnv.state.StateBase#setup(org.w3c.dom.Node) 68 *
69 * @param configuration
59 */ 70 */
60 @Override 71 @Override
61 public void setup(Node configuration) { 72 public void setup(Node configuration) {
62 73
63 Element preSettingsNode = (Element)Config.getNodeXPath(configuration, 74 Element preSettingsNode = (Element)Config.getNodeXPath(configuration,
66 this.transferPreSettingsName = preSettingsNode.getAttribute("presetting"); 77 this.transferPreSettingsName = preSettingsNode.getAttribute("presetting");
67 this.transferInputDataname = preSettingsNode.getAttribute("inputvalue"); 78 this.transferInputDataname = preSettingsNode.getAttribute("inputvalue");
68 } 79 }
69 super.setup(configuration); 80 super.setup(configuration);
70 } 81 }
71
72
73
74 } 82 }
83 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org