|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.pvm.impl.ProcessElementImpl org.jbpm.pvm.impl.ObservableElementImpl
public class ObservableElementImpl
observable and visible process elements.
Field Summary | |
---|---|
protected java.lang.String |
description
|
protected java.util.Map<java.lang.String,EventImpl> |
events
|
protected java.lang.String |
name
|
Fields inherited from class org.jbpm.pvm.impl.ProcessElementImpl |
---|
dbid, dbversion, exceptionHandlers, processDefinition, properties |
Constructor Summary | |
---|---|
ObservableElementImpl()
|
Method Summary | |
---|---|
EventImpl |
addEvent(EventImpl event)
add an event to this processDefinition element. |
EventImpl |
createEvent(java.lang.String eventName)
event factory method that also establishes the bidirectional relation. |
java.lang.String |
getDescription()
the long description. |
EventImpl |
getEvent(java.lang.String eventName)
listeners for a specific event. |
java.util.Map<java.lang.String,Event> |
getEvents()
listeners, partitioned by event name. |
java.lang.String |
getName()
the short display name given to this element. |
ObservableElementImpl |
getParent()
by default, this implementation returns null, but this is overwritten in Node and Transition to represent the parent in the
hierarchical structure of the process. |
boolean |
hasEvent(java.lang.String eventName)
check for presence of a given eventName. |
void |
setDescription(java.lang.String description)
|
void |
setEvents(java.util.Map<java.lang.String,EventImpl> events)
|
void |
setName(java.lang.String name)
|
Methods inherited from class org.jbpm.pvm.impl.ProcessElementImpl |
---|
addExceptionHandler, addProperty, createExceptionHandler, getDbid, getExceptionHandlers, getProcessDefinition, getProperties, getProperty, getPropertyKeys, setExceptionHandlers, setProcessDefinition, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jbpm.pvm.ProcessElement |
---|
getDbid, getExceptionHandlers, getProcessDefinition, getProperty, getPropertyKeys |
Field Detail |
---|
protected java.lang.String name
protected java.lang.String description
protected java.util.Map<java.lang.String,EventImpl> events
Constructor Detail |
---|
public ObservableElementImpl()
Method Detail |
---|
public ObservableElementImpl getParent()
ObservableElement
Node
and Transition
to represent the parent in the
hierarchical structure of the process. This hierarchical structure is
used for event propagation.
getParent
in interface ObservableElement
public EventImpl getEvent(java.lang.String eventName)
ObservableElement
getEvent
in interface ObservableElement
public boolean hasEvent(java.lang.String eventName)
ObservableElement
hasEvent
in interface ObservableElement
public EventImpl createEvent(java.lang.String eventName)
public EventImpl addEvent(EventImpl event)
java.lang.NullPointerException
- if event is null.public java.lang.String getName()
ObservableElement
getName
in interface ObservableElement
public void setName(java.lang.String name)
public java.lang.String getDescription()
ObservableElement
getDescription
in interface ObservableElement
public void setDescription(java.lang.String description)
public java.util.Map<java.lang.String,Event> getEvents()
ObservableElement
getEvents
in interface ObservableElement
public void setEvents(java.util.Map<java.lang.String,EventImpl> events)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |