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, stripXmlFragment
public 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 NodeDescription
null
if no icon existsNodeFactory.getIcon()
public String getInportDescription(int index)
getInportDescription
in class NodeDescription
index
- the index of the input port, starting at 0null
if no description existsNodeFactory.getInportDescription(int)
public String getInportName(int index)
getInportName
in class NodeDescription
index
- 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 NodeDescription
null
NodeFactory.getInteractiveViewName()
public String getNodeName()
getNodeName
in class NodeDescription
null
if no name is knownNodeFactory.getNodeName()
public String getOutportDescription(int index)
getOutportDescription
in class NodeDescription
index
- the index of the output port, starting at 0null
if not description existsNodeFactory.getOutportDescription(int)
public String getOutportName(int index)
getOutportName
in class NodeDescription
index
- the index of the output port, starting at 0null
if no name is knownNodeFactory.getOutportName(int)
public NodeFactory.NodeType getType()
getType
in class NodeDescription
NodeFactory.getType()
public int getViewCount()
getViewCount
in class NodeDescription
public String getViewDescription(int index)
getViewDescription
in class NodeDescription
index
- the index of the view, starting at 0null
if no description existsNodeFactory.getViewDescription(int)
public String getViewName(int index)
getViewName
in class NodeDescription
index
- the view index, starting at 0null
if no name is knownprotected void setIsDeprecated(boolean b)
setIsDeprecated
in class NodeDescription
b
- 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.