org.knime.core.node
Class ContextAwareNodeFactory<T extends NodeModel>
java.lang.Object
org.knime.core.node.NodeFactory<T>
org.knime.core.node.ContextAwareNodeFactory<T>
- Type Parameters:
T - any subclass of NodeModel
- Direct Known Subclasses:
- CSVReaderNodeFactory, FileReaderNodeFactory, PMMLReaderNodeFactory, ReadTableNodeFactory
public abstract class ContextAwareNodeFactory<T extends NodeModel>
- extends NodeFactory<T>
This extension of NodeFactory is used in order to create a new node
in a certain context. Implementors who wish that their nodes can be used in a
context (e.g. when a file is dropped onto the workflow editor) should extend
this class instead of NodeFactory and register the factory in the
plugin.xml (in addition to the normal registration).
- Author:
- Thorsten Meinl, University of Konstanz
| Methods inherited from class org.knime.core.node.NodeFactory |
addLoadedFactory, callCreateNodeModel, createAbstractNodeView, createNodeDialogPane, createNodeModel, createNodeView, getDefaultIcon, getIcon, getInportDescription, getInportName, getLoadedNodeFactories, getNodeName, getNodeViewName, getNrNodeViews, getOutportDescription, getOutportName, getType, getViewDescription, getXMLDescription, hasDialog |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextAwareNodeFactory
public ContextAwareNodeFactory()
createNodeModel
public abstract T createNodeModel(NodeCreationContext context)
- Creates a new node model.
- Overrides:
createNodeModel in class NodeFactory<T extends NodeModel>
- Parameters:
context - the context in which the node should be created
- Returns:
- a node model
Copyright, 2003 - 2012. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.