|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.workflow.core.impl.NodeImpl
public abstract class NodeImpl
Default implementation of a node.
Field Summary | |
---|---|
protected Map<ConnectionRef,Constraint> |
constraints
|
protected static NodeImpl[] |
EMPTY_NODE_ARRAY
|
Fields inherited from interface org.jbpm.workflow.core.Node |
---|
CONNECTION_DEFAULT_TYPE |
Constructor Summary | |
---|---|
NodeImpl()
|
Method Summary | |
---|---|
void |
addConstraint(ConnectionRef connectionRef,
Constraint constraint)
|
void |
addIncomingConnection(String type,
Connection connection)
|
void |
addOutgoingConnection(String type,
Connection connection)
|
Constraint |
getConstraint(Connection connection)
|
Map<ConnectionRef,Constraint> |
getConstraints()
|
Context |
getContext(String contextId)
|
List<Connection> |
getDefaultIncomingConnections()
Helper method for nodes that have multiple default incoming connections |
List<Connection> |
getDefaultOutgoingConnections()
Helper method for nodes that have multiple default outgoing connections |
Connection |
getFrom()
Helper method for nodes that have at most one default incoming connection |
long |
getId()
The id of the node. |
Map<String,List<Connection>> |
getIncomingConnections()
The incoming connections for this Node. |
List<Connection> |
getIncomingConnections(String type)
The incoming connections for this Node for the given entry-point. |
Map<String,Object> |
getMetaData()
Meta data associated with this Node. |
Object |
getMetaData(String name)
Meta data associated with this Node. |
String |
getName()
The name of the node |
NodeContainer |
getNodeContainer()
The NodeContainer this Node lives in. |
Map<String,List<Connection>> |
getOutgoingConnections()
The outgoing connections for this Node. |
List<Connection> |
getOutgoingConnections(String type)
The outgoing connections for this Node for the given exit-point. |
Connection |
getTo()
Helper method for nodes that have at most one default outgoing connection |
String |
getUniqueId()
|
Constraint |
internalGetConstraint(ConnectionRef ref)
|
void |
removeIncomingConnection(String type,
Connection connection)
|
void |
removeOutgoingConnection(String type,
Connection connection)
|
Context |
resolveContext(String contextId,
Object param)
|
void |
setConstraint(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(NodeContainer nodeContainer)
|
void |
validateAddIncomingConnection(String type,
Connection connection)
|
void |
validateAddOutgoingConnection(String type,
Connection connection)
|
void |
validateRemoveIncomingConnection(String type,
Connection connection)
|
void |
validateRemoveOutgoingConnection(String type,
Connection connection)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final NodeImpl[] EMPTY_NODE_ARRAY
protected Map<ConnectionRef,Constraint> constraints
Constructor Detail |
---|
public NodeImpl()
Method Detail |
---|
public long getId()
Node
getId
in interface Node
public String getUniqueId()
public void setId(long id)
Node
id
- the id of the nodepublic String getName()
Node
getName
in interface Node
public void setName(String name)
Node
name
- the name of the nodepublic Map<String,List<Connection>> getIncomingConnections()
Node
getIncomingConnections
in interface Node
public Map<String,List<Connection>> getOutgoingConnections()
Node
getOutgoingConnections
in interface Node
public void addIncomingConnection(String type, Connection connection)
public void validateAddIncomingConnection(String type, Connection connection)
public List<Connection> getIncomingConnections(String type)
Node
getIncomingConnections
in interface Node
public void addOutgoingConnection(String type, Connection connection)
public void validateAddOutgoingConnection(String type, Connection connection)
public List<Connection> getOutgoingConnections(String type)
Node
getOutgoingConnections
in interface Node
public void removeIncomingConnection(String type, Connection connection)
public void validateRemoveIncomingConnection(String type, Connection connection)
public void removeOutgoingConnection(String type, Connection connection)
public void validateRemoveOutgoingConnection(String type, Connection connection)
public Connection getFrom()
public Connection getTo()
public List<Connection> getDefaultIncomingConnections()
public List<Connection> getDefaultOutgoingConnections()
public NodeContainer getNodeContainer()
Node
getNodeContainer
in interface Node
public void setNodeContainer(NodeContainer nodeContainer)
public void setContext(String contextId, Context context)
setContext
in interface Contextable
public Context getContext(String contextId)
getContext
in interface Contextable
public Context resolveContext(String contextId, Object param)
resolveContext
in interface ContextResolver
public void setMetaData(String name, Object value)
public Object getMetaData(String name)
Node
getMetaData
in interface Node
public Map<String,Object> getMetaData()
Node
getMetaData
in interface Node
public void setMetaData(Map<String,Object> metaData)
public Constraint getConstraint(Connection connection)
public Constraint internalGetConstraint(ConnectionRef ref)
public void setConstraint(Connection connection, Constraint constraint)
public void addConstraint(ConnectionRef connectionRef, Constraint constraint)
public Map<ConnectionRef,Constraint> getConstraints()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |