org.knime.base.node.io.csvreader
Class CSVReaderNodeFactory

java.lang.Object
  extended by org.knime.core.node.NodeFactory<T>
      extended by org.knime.core.node.ContextAwareNodeFactory<CSVReaderNodeModel>
          extended by org.knime.base.node.io.csvreader.CSVReaderNodeFactory

public class CSVReaderNodeFactory
extends ContextAwareNodeFactory<CSVReaderNodeModel>

Factory for CSV Reader node.

Author:
Bernd Wiswedel, KNIME.com, Zurich, Switzerland

Nested Class Summary
 
Nested classes/interfaces inherited from class org.knime.core.node.NodeFactory
NodeFactory.NodeType
 
Constructor Summary
CSVReaderNodeFactory()
           
 
Method Summary
protected  NodeDialogPane createNodeDialogPane()
          Creates and returns a new node dialog pane, if NodeFactory.hasDialog() returns true.
 CSVReaderNodeModel createNodeModel()
          Creates and returns a new instance of the node's corresponding model.
 CSVReaderNodeModel createNodeModel(NodeCreationContext context)
          Creates a new node model.
 NodeView<CSVReaderNodeModel> createNodeView(int viewIndex, CSVReaderNodeModel nodeModel)
          Creates and returns a new node view for the given index.
protected  int getNrNodeViews()
          Returns the number of possible views or 0 if no view is available.
protected  boolean hasDialog()
          Returns true if this node provides a dialog to adjust node specific settings.
 
Methods inherited from class org.knime.core.node.NodeFactory
addLoadedFactory, createAbstractNodeView, getDefaultIcon, getIcon, getInportDescription, getInportName, getLoadedNodeFactories, getNodeName, getNodeViewName, getOutportDescription, getOutportName, getType, getViewDescription, getXMLDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVReaderNodeFactory

public CSVReaderNodeFactory()
Method Detail

createNodeDialogPane

protected NodeDialogPane createNodeDialogPane()
Creates and returns a new node dialog pane, if NodeFactory.hasDialog() returns true.

Specified by:
createNodeDialogPane in class NodeFactory<CSVReaderNodeModel>
Returns:
node dialog pane
See Also:
NodeFactory.hasDialog()

createNodeModel

public CSVReaderNodeModel createNodeModel()
Creates and returns a new instance of the node's corresponding model.

Specified by:
createNodeModel in class NodeFactory<CSVReaderNodeModel>
Returns:
A new NodeModel for this node. Never null!

createNodeView

public NodeView<CSVReaderNodeModel> createNodeView(int viewIndex,
                                                   CSVReaderNodeModel nodeModel)
Creates and returns a new node view for the given index.

Specified by:
createNodeView in class NodeFactory<CSVReaderNodeModel>
Parameters:
viewIndex - The index for the view to create.
nodeModel - the underlying model
Returns:
a new node view for the given index
See Also:
NodeFactory.getNrNodeViews()

createNodeModel

public CSVReaderNodeModel createNodeModel(NodeCreationContext context)
Creates a new node model.

Specified by:
createNodeModel in class ContextAwareNodeFactory<CSVReaderNodeModel>
Parameters:
context - the context in which the node should be created
Returns:
a node model

getNrNodeViews

protected int getNrNodeViews()
Returns the number of possible views or 0 if no view is available.

Specified by:
getNrNodeViews in class NodeFactory<CSVReaderNodeModel>
Returns:
number of views available for this node
See Also:
NodeFactory.createNodeView(int,NodeModel)

hasDialog

protected boolean hasDialog()
Returns true if this node provides a dialog to adjust node specific settings.

Specified by:
hasDialog in class NodeFactory<CSVReaderNodeModel>
Returns:
true if a NodeDialogPane is available
See Also:
NodeFactory.createNodeDialogPane()


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.