public abstract class NodeImpl extends Object implements Node, Serializable, ContextResolver
| Modifier and Type | Field and Description |
|---|---|
protected Map<ConnectionRef,Constraint> |
constraints |
protected static NodeImpl[] |
EMPTY_NODE_ARRAY |
CONNECTION_DEFAULT_TYPE| Constructor and Description |
|---|
NodeImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConstraint(ConnectionRef connectionRef,
Constraint constraint) |
void |
addIncomingConnection(String type,
org.kie.api.definition.process.Connection connection) |
void |
addOutgoingConnection(String type,
org.kie.api.definition.process.Connection connection) |
void |
clearIncomingConnection() |
void |
clearOutgoingConnection() |
Constraint |
getConstraint(org.kie.api.definition.process.Connection connection) |
Map<ConnectionRef,Constraint> |
getConstraints() |
Context |
getContext(String contextId) |
List<org.kie.api.definition.process.Connection> |
getDefaultIncomingConnections()
Helper method for nodes that have multiple default incoming connections
|
List<org.kie.api.definition.process.Connection> |
getDefaultOutgoingConnections()
Helper method for nodes that have multiple default outgoing connections
|
org.kie.api.definition.process.Connection |
getFrom()
Helper method for nodes that have at most one default incoming connection
|
long |
getId() |
Map<String,List<org.kie.api.definition.process.Connection>> |
getIncomingConnections() |
List<org.kie.api.definition.process.Connection> |
getIncomingConnections(String type) |
Map<String,Object> |
getMetaData() |
Object |
getMetaData(String name) |
String |
getName() |
org.kie.api.definition.process.NodeContainer |
getNodeContainer() |
Map<String,List<org.kie.api.definition.process.Connection>> |
getOutgoingConnections() |
List<org.kie.api.definition.process.Connection> |
getOutgoingConnections(String type) |
org.kie.api.definition.process.Connection |
getTo()
Helper method for nodes that have at most one default outgoing connection
|
String |
getUniqueId() |
Constraint |
internalGetConstraint(ConnectionRef ref) |
void |
removeIncomingConnection(String type,
org.kie.api.definition.process.Connection connection) |
void |
removeOutgoingConnection(String type,
org.kie.api.definition.process.Connection connection) |
Context |
resolveContext(String contextId,
Object param) |
void |
setConstraint(org.kie.api.definition.process.Connection connection,
Constraint constraint) |
void |
setContext(String contextId,
Context context) |
void |
setId(long id)
Method for setting the id of the node
|
void |
setMetaData(Map<String,Object> metaData) |
void |
setMetaData(String name,
Object value) |
void |
setName(String name)
Method for setting the name of the node
|
void |
setNodeContainer(org.kie.api.definition.process.NodeContainer nodeContainer) |
void |
validateAddIncomingConnection(String type,
org.kie.api.definition.process.Connection connection) |
void |
validateAddOutgoingConnection(String type,
org.kie.api.definition.process.Connection connection) |
void |
validateRemoveIncomingConnection(String type,
org.kie.api.definition.process.Connection connection) |
void |
validateRemoveOutgoingConnection(String type,
org.kie.api.definition.process.Connection connection) |
protected static final NodeImpl[] EMPTY_NODE_ARRAY
protected Map<ConnectionRef,Constraint> constraints
public long getId()
getId in interface org.kie.api.definition.process.Nodepublic String getUniqueId()
public void setId(long id)
Nodeid - the id of the nodepublic String getName()
getName in interface org.kie.api.definition.process.Nodepublic void setName(String name)
Nodename - the name of the nodepublic Map<String,List<org.kie.api.definition.process.Connection>> getIncomingConnections()
getIncomingConnections in interface org.kie.api.definition.process.Nodepublic Map<String,List<org.kie.api.definition.process.Connection>> getOutgoingConnections()
getOutgoingConnections in interface org.kie.api.definition.process.Nodepublic void addIncomingConnection(String type, org.kie.api.definition.process.Connection connection)
public void validateAddIncomingConnection(String type, org.kie.api.definition.process.Connection connection)
public List<org.kie.api.definition.process.Connection> getIncomingConnections(String type)
getIncomingConnections in interface org.kie.api.definition.process.Nodepublic void addOutgoingConnection(String type, org.kie.api.definition.process.Connection connection)
public void validateAddOutgoingConnection(String type, org.kie.api.definition.process.Connection connection)
public List<org.kie.api.definition.process.Connection> getOutgoingConnections(String type)
getOutgoingConnections in interface org.kie.api.definition.process.Nodepublic void removeIncomingConnection(String type, org.kie.api.definition.process.Connection connection)
public void clearIncomingConnection()
public void clearOutgoingConnection()
public void validateRemoveIncomingConnection(String type, org.kie.api.definition.process.Connection connection)
public void removeOutgoingConnection(String type, org.kie.api.definition.process.Connection connection)
public void validateRemoveOutgoingConnection(String type, org.kie.api.definition.process.Connection connection)
public org.kie.api.definition.process.Connection getFrom()
public org.kie.api.definition.process.Connection getTo()
public List<org.kie.api.definition.process.Connection> getDefaultIncomingConnections()
public List<org.kie.api.definition.process.Connection> getDefaultOutgoingConnections()
public org.kie.api.definition.process.NodeContainer getNodeContainer()
getNodeContainer in interface org.kie.api.definition.process.Nodepublic void setNodeContainer(org.kie.api.definition.process.NodeContainer nodeContainer)
public void setContext(String contextId, Context context)
setContext in interface Contextablepublic Context getContext(String contextId)
getContext in interface Contextablepublic Context resolveContext(String contextId, Object param)
resolveContext in interface ContextResolverpublic Map<String,Object> getMetaData()
getMetaData in interface org.kie.api.definition.process.Nodepublic Constraint getConstraint(org.kie.api.definition.process.Connection connection)
public Constraint internalGetConstraint(ConnectionRef ref)
public void setConstraint(org.kie.api.definition.process.Connection connection,
Constraint constraint)
public void addConstraint(ConnectionRef connectionRef, Constraint constraint)
public Map<ConnectionRef,Constraint> getConstraints()
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.