]>
git.argeo.org Git - gpl/argeo-slc.git/blob - legacy/org.argeo.slc.spring/src/org/argeo/slc/core/execution/generator/RunnableDataNode.java
1 package org
.argeo
.slc
.core
.execution
.generator
;
7 * Stores information relative to a Runnable.
8 * Allows to structure the information as a tree, each node
9 * storing data as a Map.
11 public interface RunnableDataNode
{
14 * @return a Map containing the data associated with this node.
15 * Data associated with parent nodes are expected
16 * to be contained in the returned Map
18 public Map
<String
, Object
> getData();
21 * @return the name of the bean to create.
22 * Can be null if no bean shall be created for the
23 * <code>RunnableDataNode</code> (e.g. is is a sub-node)
25 public String
getBeanName();
28 * @return the path of the flow bean to create.
29 * Can be null if the bean to created is not an
30 * <code>ExecutionFlow</code> or if no bean shall be created for the
31 * <code>RunnableDataNode</code> (e.g. is is a sub-node)
33 public String
getPath();
36 * @return whether the <code>RunnableDataNode</code> has
38 * Expected to be equivalent to <code>getChildren().empty()</code>
40 public boolean isLeaf();
43 * @return the list of <code>RunnableDataNode</code> children.
44 * Can be empty. Shall not be null.
46 public List
<RunnableDataNode
> getChildren();
49 * @return the <code>RunnableDataNode</code> parent.
50 * Can be null if no parent is defined (top node).
52 public RunnableDataNode
getParent();
55 * Sets the <code>RunnableDataNode</code> parent
58 public void setParent(RunnableDataNode parent
);