org.drools.ruleflow.core.impl
Class ActionNodeImpl

java.lang.Object
  extended by org.drools.ruleflow.core.impl.NodeImpl
      extended by org.drools.ruleflow.core.impl.ActionNodeImpl
All Implemented Interfaces:
java.io.Serializable, ActionNode, Node

public class ActionNodeImpl
extends NodeImpl
implements ActionNode

Default implementation of an action node.

Author:
Kris Verlaenen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.drools.ruleflow.core.impl.NodeImpl
EMPTY_NODE_ARRAY
 
Constructor Summary
ActionNodeImpl()
           
 
Method Summary
 java.lang.Object getAction()
          Returns the action of the ActionNode.
 Connection getFrom()
          Returns the incoming connection of the ActionNode.
 Connection getTo()
          Returns the outgoing connection of the ActionNode.
 void setAction(java.lang.Object action)
          Sets the action of the ActionNode.
protected  void validateAddIncomingConnection(Connection connection)
          This method validates whether the given connection can be added.
protected  void validateAddOutgoingConnection(Connection connection)
          This method validates whether the given connection can be added.
 
Methods inherited from class org.drools.ruleflow.core.impl.NodeImpl
addIncomingConnection, addOutgoingConnection, getId, getIncomingConnections, getName, getOutgoingConnections, removeIncomingConnection, removeOutgoingConnection, setId, setName, validateRemoveIncomingConnection, validateRemoveOutgoingConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.ruleflow.core.Node
getId, getIncomingConnections, getName, getOutgoingConnections, setId, setName
 

Constructor Detail

ActionNodeImpl

public ActionNodeImpl()
Method Detail

getAction

public java.lang.Object getAction()
Description copied from interface: ActionNode
Returns the action of the ActionNode.

Specified by:
getAction in interface ActionNode
Returns:
the action of the ActionNode.

setAction

public void setAction(java.lang.Object action)
Description copied from interface: ActionNode
Sets the action of the ActionNode.

Specified by:
setAction in interface ActionNode

getFrom

public Connection getFrom()
Description copied from interface: ActionNode
Returns the incoming connection of the ActionNode.

Specified by:
getFrom in interface ActionNode
Returns:
the incoming connection of the ActionNode.

getTo

public Connection getTo()
Description copied from interface: ActionNode
Returns the outgoing connection of the ActionNode.

Specified by:
getTo in interface ActionNode
Returns:
the outgoing connection of the ActionNode.

validateAddIncomingConnection

protected void validateAddIncomingConnection(Connection connection)
Description copied from class: NodeImpl
This method validates whether the given connection can be added. If the connection cannot be added, an IllegalArgumentException is thrown.

Overrides:
validateAddIncomingConnection in class NodeImpl
Parameters:
connection - the incoming connection to be added

validateAddOutgoingConnection

protected void validateAddOutgoingConnection(Connection connection)
Description copied from class: NodeImpl
This method validates whether the given connection can be added. If the connection cannot be added, an IllegalArgumentException is thrown.

Overrides:
validateAddOutgoingConnection in class NodeImpl
Parameters:
connection - the outgoin connection to be added