org.jbpm.workflow.core.impl
Class ConnectionImpl

java.lang.Object
  extended by org.jbpm.workflow.core.impl.ConnectionImpl
All Implemented Interfaces:
Serializable, Connection

public class ConnectionImpl
extends Object
implements Connection, Serializable

Default implementation of a connection.

See Also:
Serialized Form

Constructor Summary
ConnectionImpl()
           
ConnectionImpl(Node from, String fromType, Node to, String toType)
          Creates a new connection, given a from node, a to node and a type.
 
Method Summary
 void connect()
           
 Node getFrom()
           
 String getFromType()
           
 Map<String,Object> getMetaData()
           
 Object getMetaData(String name)
           
 Node getTo()
           
 String getToType()
           
 void setFrom(Node from)
           
 void setFromType(String fromType)
           
 void setMetaData(String name, Object value)
           
 void setTo(Node to)
           
 void setToType(String toType)
           
 void terminate()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionImpl

public ConnectionImpl()

ConnectionImpl

public ConnectionImpl(Node from,
                      String fromType,
                      Node to,
                      String toType)
Creates a new connection, given a from node, a to node and a type.

Parameters:
from - The from node
to - The to node
type - The connection type
Method Detail

connect

public void connect()

terminate

public void terminate()

getFrom

public Node getFrom()
Specified by:
getFrom in interface Connection

getTo

public Node getTo()
Specified by:
getTo in interface Connection

getFromType

public String getFromType()
Specified by:
getFromType in interface Connection

getToType

public String getToType()
Specified by:
getToType in interface Connection

setFrom

public void setFrom(Node from)

setTo

public void setTo(Node to)

setFromType

public void setFromType(String fromType)

setToType

public void setToType(String toType)

getMetaData

public Map<String,Object> getMetaData()
Specified by:
getMetaData in interface Connection

setMetaData

public void setMetaData(String name,
                        Object value)

getMetaData

public Object getMetaData(String name)
Specified by:
getMetaData in interface Connection

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2011 JBoss by Red Hat. All Rights Reserved.