Class CoreModelElement
- java.lang.Object
-
- org.camunda.bpm.engine.impl.core.model.CoreModelElement
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CoreActivity
,TransitionImpl
public abstract class CoreModelElement extends java.lang.Object implements java.io.Serializable
- Author:
- Daniel Meyer, Roman Smirnov, Sebastian Menski
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.util.List<DelegateListener<? extends BaseDelegateExecution>>>
builtInListeners
contains built-in listenersprotected java.util.Map<java.lang.String,java.util.List<VariableListener<?>>>
builtInVariableListeners
protected java.lang.String
id
protected java.util.Map<java.lang.String,java.util.List<DelegateListener<? extends BaseDelegateExecution>>>
listeners
contains all listeners (built-in + user-provided)protected java.lang.String
name
protected Properties
properties
protected java.util.Map<java.lang.String,java.util.List<VariableListener<?>>>
variableListeners
-
Constructor Summary
Constructors Constructor Description CoreModelElement(java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBuiltInListener(java.lang.String eventName, DelegateListener<? extends BaseDelegateExecution> listener)
void
addBuiltInListener(java.lang.String eventName, DelegateListener<? extends BaseDelegateExecution> listener, int index)
void
addBuiltInVariableListener(java.lang.String eventName, VariableListener<?> listener)
void
addBuiltInVariableListener(java.lang.String eventName, VariableListener<?> listener, int index)
void
addListener(java.lang.String eventName, DelegateListener<? extends BaseDelegateExecution> listener)
void
addListener(java.lang.String eventName, DelegateListener<? extends BaseDelegateExecution> listener, int index)
protected <T> void
addListenerToMap(java.util.Map<java.lang.String,java.util.List<T>> listenerMap, java.lang.String eventName, T listener, int index)
void
addVariableListener(java.lang.String eventName, VariableListener<?> listener)
void
addVariableListener(java.lang.String eventName, VariableListener<?> listener, int index)
java.util.Map<java.lang.String,java.util.List<DelegateListener<? extends BaseDelegateExecution>>>
getBuiltInListeners()
java.util.List<DelegateListener<? extends BaseDelegateExecution>>
getBuiltInListeners(java.lang.String eventName)
java.util.Map<java.lang.String,java.util.List<VariableListener<?>>>
getBuiltInVariableListeners()
java.util.List<VariableListener<?>>
getBuiltInVariableListenersLocal(java.lang.String eventName)
java.lang.String
getId()
java.util.Map<java.lang.String,java.util.List<DelegateListener<? extends BaseDelegateExecution>>>
getListeners()
java.util.List<DelegateListener<? extends BaseDelegateExecution>>
getListeners(java.lang.String eventName)
java.lang.String
getName()
Properties
getProperties()
Returns the properties of the element.java.lang.Object
getProperty(java.lang.String name)
java.util.Map<java.lang.String,java.util.List<VariableListener<?>>>
getVariableListeners()
java.util.List<VariableListener<?>>
getVariableListenersLocal(java.lang.String eventName)
void
setId(java.lang.String id)
void
setName(java.lang.String name)
void
setProperties(Properties properties)
void
setProperty(java.lang.String name, java.lang.Object value)
-
-
-
Field Detail
-
id
protected java.lang.String id
-
name
protected java.lang.String name
-
properties
protected Properties properties
-
builtInListeners
protected java.util.Map<java.lang.String,java.util.List<DelegateListener<? extends BaseDelegateExecution>>> builtInListeners
contains built-in listeners
-
listeners
protected java.util.Map<java.lang.String,java.util.List<DelegateListener<? extends BaseDelegateExecution>>> listeners
contains all listeners (built-in + user-provided)
-
builtInVariableListeners
protected java.util.Map<java.lang.String,java.util.List<VariableListener<?>>> builtInVariableListeners
-
variableListeners
protected java.util.Map<java.lang.String,java.util.List<VariableListener<?>>> variableListeners
-
-
Method Detail
-
getId
public java.lang.String getId()
-
getName
public java.lang.String getName()
-
setProperty
public void setProperty(java.lang.String name, java.lang.Object value)
- See Also:
Properties.set(PropertyKey, Object)
-
getProperty
public java.lang.Object getProperty(java.lang.String name)
- See Also:
Properties.get(PropertyKey)
-
getProperties
public Properties getProperties()
Returns the properties of the element.- Returns:
- the properties
-
setProperties
public void setProperties(Properties properties)
-
setId
public void setId(java.lang.String id)
-
setName
public void setName(java.lang.String name)
-
getListeners
public java.util.List<DelegateListener<? extends BaseDelegateExecution>> getListeners(java.lang.String eventName)
-
getBuiltInListeners
public java.util.List<DelegateListener<? extends BaseDelegateExecution>> getBuiltInListeners(java.lang.String eventName)
-
getVariableListenersLocal
public java.util.List<VariableListener<?>> getVariableListenersLocal(java.lang.String eventName)
-
getBuiltInVariableListenersLocal
public java.util.List<VariableListener<?>> getBuiltInVariableListenersLocal(java.lang.String eventName)
-
addListener
public void addListener(java.lang.String eventName, DelegateListener<? extends BaseDelegateExecution> listener)
-
addBuiltInListener
public void addBuiltInListener(java.lang.String eventName, DelegateListener<? extends BaseDelegateExecution> listener)
-
addBuiltInListener
public void addBuiltInListener(java.lang.String eventName, DelegateListener<? extends BaseDelegateExecution> listener, int index)
-
addListener
public void addListener(java.lang.String eventName, DelegateListener<? extends BaseDelegateExecution> listener, int index)
-
addListenerToMap
protected <T> void addListenerToMap(java.util.Map<java.lang.String,java.util.List<T>> listenerMap, java.lang.String eventName, T listener, int index)
-
addVariableListener
public void addVariableListener(java.lang.String eventName, VariableListener<?> listener)
-
addVariableListener
public void addVariableListener(java.lang.String eventName, VariableListener<?> listener, int index)
-
addBuiltInVariableListener
public void addBuiltInVariableListener(java.lang.String eventName, VariableListener<?> listener)
-
addBuiltInVariableListener
public void addBuiltInVariableListener(java.lang.String eventName, VariableListener<?> listener, int index)
-
getListeners
public java.util.Map<java.lang.String,java.util.List<DelegateListener<? extends BaseDelegateExecution>>> getListeners()
-
getBuiltInListeners
public java.util.Map<java.lang.String,java.util.List<DelegateListener<? extends BaseDelegateExecution>>> getBuiltInListeners()
-
getBuiltInVariableListeners
public java.util.Map<java.lang.String,java.util.List<VariableListener<?>>> getBuiltInVariableListeners()
-
getVariableListeners
public java.util.Map<java.lang.String,java.util.List<VariableListener<?>>> getVariableListeners()
-
-