public class ConnectionImpl extends Object implements Connection, Serializable
Constructor and Description |
---|
ConnectionImpl() |
ConnectionImpl(org.kie.api.definition.process.Node from,
String fromType,
org.kie.api.definition.process.Node to,
String toType)
This constructor calls
connect() itself! |
Modifier and Type | Method and Description |
---|---|
void |
connect() |
org.kie.api.definition.process.Node |
getFrom() |
String |
getFromType() |
Map<String,Object> |
getMetaData() |
Object |
getMetaData(String name) |
org.kie.api.definition.process.Node |
getTo() |
String |
getToType() |
void |
setFrom(org.kie.api.definition.process.Node from) |
void |
setFromType(String fromType) |
void |
setMetaData(String name,
Object value) |
void |
setTo(org.kie.api.definition.process.Node to) |
void |
setToType(String toType) |
void |
terminate() |
String |
toString() |
public ConnectionImpl()
public ConnectionImpl(org.kie.api.definition.process.Node from, String fromType, org.kie.api.definition.process.Node to, String toType)
connect()
itself! That means
that simply creating the object also adds it to the appropriate
List
fields in other objects.
Creates a new connection, given a from node, a to node
and a type.from
- The from nodefromType
- The node typeto
- The to nodetoType
- The connection typepublic void connect()
public void terminate()
public org.kie.api.definition.process.Node getFrom()
getFrom
in interface org.kie.api.definition.process.Connection
public org.kie.api.definition.process.Node getTo()
getTo
in interface org.kie.api.definition.process.Connection
public String getFromType()
getFromType
in interface org.kie.api.definition.process.Connection
public String getToType()
getToType
in interface org.kie.api.definition.process.Connection
public void setFrom(org.kie.api.definition.process.Node from)
public void setTo(org.kie.api.definition.process.Node to)
public void setFromType(String fromType)
public void setToType(String toType)
public Map<String,Object> getMetaData()
getMetaData
in interface org.kie.api.definition.process.Connection
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.