public interface Node
Two type of Node's exist each represented by a different sub-interfaces:
| Modifier and Type | Method and Description |
|---|---|
ClassificationNode |
getClassificationNodeParent() |
List<String> |
getListPluginId(Class<? extends NodePlugin> classNodePlugin)
Returns the List of plugin IDs of all NodePlugin's of the specified class
available.
|
Model |
getModel() |
String |
getName() |
NodePath |
getNodePath() |
<NodePluginInterface extends NodePlugin> |
getNodePlugin(Class<NodePluginInterface> classNodePlugin,
String pluginId)
Gets the specified
NodePlugin for this Node. |
NodeType |
getNodeType() |
String |
getProperty(String name)
Returns the value of a property.
|
boolean |
isCreatedDynamically() |
boolean |
isNodePluginExists(Class<? extends NodePlugin> classNodePlugin,
String pluginId)
Verifies if a
NodePlugin exists for this Node, without instantiating it. |
void |
raiseNodeEvent(NodeEvent nodeEvent)
Raises a
NodeEvent. |
<NodeEventClass extends NodeEvent> |
registerListener(NodeEventListener<NodeEventClass> nodeEventListener,
boolean indChildrenAlso)
Registers a
NodeEventListener. |
ClassificationNode getClassificationNodeParent()
ClassificationNode. null in the case of the root
ClassificationNode.String getName()
NodeConfig is available.Model getModel()
NodeType getNodeType()
NodePath getNodePath()
ClassificationNode.String getProperty(String name)
name - Name of the property.<NodePluginInterface extends NodePlugin> NodePluginInterface getNodePlugin(Class<NodePluginInterface> classNodePlugin, String pluginId)
NodePlugin for this Node.
The NodePlugin must exist. isNodePluginExists(java.lang.Class<? extends org.azyva.dragom.model.plugin.NodePlugin>, java.lang.String) can be used to verify if
a NodePlugin exists before getting it.
NodePluginInterface - NodePlugin interface.classNodePlugin - Class of the NodePlugin.pluginId - Plugin ID to distinguish between multiple instances of the same
NodePlugin.boolean isNodePluginExists(Class<? extends NodePlugin> classNodePlugin, String pluginId)
NodePlugin exists for this Node, without instantiating it.classNodePlugin - Class of the NodePlugin.pluginId - Plugin ID to distinguish between multiple instances of the same
NodePlugin.List<String> getListPluginId(Class<? extends NodePlugin> classNodePlugin)
classNodePlugin - Class of the NodePlugin.<NodeEventClass extends NodeEvent> void registerListener(NodeEventListener<NodeEventClass> nodeEventListener, boolean indChildrenAlso)
NodeEventListener.
The NodeEventListener is registered within the Node, and thus within the
Model. It is also possible to register NodeEventListener's in the
ExecContext.
NodeEventClass - NodeEvent class.nodeEventListener - NodeEventListener.indChildrenAlso - Indicates if NodeEvent raised on children should
be dispatched to the NodeEventListener.void raiseNodeEvent(NodeEvent nodeEvent)
NodeEvent.
The NodeEvent is dispatched to all registered NodeEventListener's
interested in it.
NodeEventListener's registered in the ExecContext using
EventPlugin.registerListener(org.azyva.dragom.model.Node, org.azyva.dragom.model.event.NodeEventListener<NodeEventClass>, boolean, boolean) are also considered.
The NodeEvent sub-interface (ModuleEvent or ClassificationNodeEvent) must match the type of Node.
The NodeEvent must be dispatched on NodeEvent.getNode().
nodeEvent - NodeEvent.boolean isCreatedDynamically()
NodeConfig and is inferred from some
external system.Copyright © 2015–2017 AZYVA INC.. All rights reserved.