final class NodeDescription13Proxy extends NodeDescription
NodeDescription for pre-2.0 node descriptions. It uses XMLBeans to extract the information
from the XML file.KNIMEConstants.ASSERTIONS_ENABLED it also checks the contents of the XML for
against the XML schema and reports errors via the logger.| Constructor and Description |
|---|
NodeDescription13Proxy(Document doc)
Creates a new proxy object using the given XML document.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getIconPath()
Returns the path to the node's icon.
|
String |
getInportDescription(int index)
Returns a description for an input port.
|
String |
getInportName(int index)
Returns a name for an input port.
|
String |
getInteractiveViewName()
Returns the name of the interactive view if such a view exists.
|
String |
getNodeName()
Returns the name of this node.
|
String |
getOutportDescription(int index)
Returns a description for an output port.
|
String |
getOutportName(int index)
Returns a name for an output port.
|
NodeFactory.NodeType |
getType()
Returns the type of the node.
|
int |
getViewCount()
Returns the number of views which are listed in the meta information.
|
String |
getViewDescription(int index)
Returns a description for a view.
|
String |
getViewName(int index)
Returns the name for this node's view at the given index.
|
Element |
getXMLDescription()
The XML description can be used with the
NodeFactoryHTMLCreator in order to get a converted HTML
description of it, which fits the overall KNIME HTML style. |
protected void |
setIsDeprecated(boolean b)
Flags this node as deprecated node.
|
(package private) boolean |
validate()
Validate against the XML Schema.
|
isDeprecated, stripXmlFragmentpublic NodeDescription13Proxy(Document doc) throws org.apache.xmlbeans.XmlException
KNIMEConstants.ASSERTIONS_ENABLED it also checks the contents of the XML for against the XML schema and
reports errors via the logger.doc - the XML document of the node description XML fileorg.apache.xmlbeans.XmlException - if something goes wrong while analyzing the XML structurefinal boolean validate()
true if the document is valid, false otherwisepublic String getIconPath()
getIconPath in class NodeDescriptionnull if no icon existsNodeFactory.getIcon()public String getInportDescription(int index)
getInportDescription in class NodeDescriptionindex - the index of the input port, starting at 0null if no description existsNodeFactory.getInportDescription(int)public String getInportName(int index)
getInportName in class NodeDescriptionindex - the index of the input port, starting at 0null if not name is knownNodeFactory.getInportName(int)public String getInteractiveViewName()
null is returned.getInteractiveViewName in class NodeDescriptionnullNodeFactory.getInteractiveViewName()public String getNodeName()
getNodeName in class NodeDescriptionnull if no name is knownNodeFactory.getNodeName()public String getOutportDescription(int index)
getOutportDescription in class NodeDescriptionindex - the index of the output port, starting at 0null if not description existsNodeFactory.getOutportDescription(int)public String getOutportName(int index)
getOutportName in class NodeDescriptionindex - the index of the output port, starting at 0null if no name is knownNodeFactory.getOutportName(int)public NodeFactory.NodeType getType()
getType in class NodeDescriptionNodeFactory.getType()public int getViewCount()
getViewCount in class NodeDescriptionpublic String getViewDescription(int index)
getViewDescription in class NodeDescriptionindex - the index of the view, starting at 0null if no description existsNodeFactory.getViewDescription(int)public String getViewName(int index)
getViewName in class NodeDescriptionindex - the view index, starting at 0null if no name is knownprotected void setIsDeprecated(boolean b)
setIsDeprecated in class NodeDescriptionb - true if this node is node is deprecated, false otherwisepublic Element getXMLDescription()
NodeFactoryHTMLCreator in order to get a converted HTML
description of it, which fits the overall KNIME HTML style.getXMLDescription in class NodeDescription
KNIME GmbH, Konstanz, Germany
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.