Package de.xima.fc.workflow
Class NodePrototypeData<TData>
- java.lang.Object
-
- de.xima.fc.workflow.NodePrototypeData<TData>
-
- Type Parameters:
TData
- Type of the properties model, seeINodeHandler
.
- All Implemented Interfaces:
IElementPrototypeData<TData>
,IWorkflowElementTypeProviding
,INodePrototypeData<TData>
,IWorkflowNodeTypeProviding
public class NodePrototypeData<TData> extends Object implements INodePrototypeData<TData>
Default POJO implementation ofINodePrototypeData
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description NodePrototypeData(String kind, TData customParameters, List<INodePrototypeData<?>> children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<INodePrototypeData<?>>
getChildren()
TData
getData()
When a new workflow element is created, its data default to what is returned by this method.String
getType()
-
-
-
Constructor Detail
-
NodePrototypeData
public NodePrototypeData(String kind, TData customParameters, List<INodePrototypeData<?>> children)
-
-
Method Detail
-
getChildren
public List<INodePrototypeData<?>> getChildren()
- Specified by:
getChildren
in interfaceINodePrototypeData<TData>
- Returns:
- A list of children for this node prototype. All children will be cloned and added as well when a new node is created.
-
getData
public TData getData()
Description copied from interface:IElementPrototypeData
When a new workflow element is created, its data default to what is returned by this method. A copy is made of that data, subsequent modifications to the value returned by this method will not affect the workflow designer.- Specified by:
getData
in interfaceIElementPrototypeData<TData>
- Returns:
- The properties to be used for the new workflow element.
-
getType
public String getType()
- Specified by:
getType
in interfaceIWorkflowElementTypeProviding
- Returns:
- The type of the workflow element that determines how the workflow element behaves. Usually there is a registered handler for each type.
-
-