org.ow2.bonita.pvm.internal.model
Class ObservableElementImpl
java.lang.Object
org.ow2.bonita.pvm.internal.model.ProcessElementImpl
org.ow2.bonita.pvm.internal.model.ObservableElementImpl
- All Implemented Interfaces:
- java.io.Serializable, ObservableElement
- Direct Known Subclasses:
- CompositeElementImpl, TransitionImpl
public class ObservableElementImpl
- extends ProcessElementImpl
- implements ObservableElement
observable and visible process elements.
- Author:
- Tom Baeyens
- See Also:
- Serialized Form
Methods inherited from class org.ow2.bonita.pvm.internal.model.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 |
name
protected java.lang.String name
description
protected java.lang.String description
events
protected java.util.Map<java.lang.String,EventImpl> events
ObservableElementImpl
public ObservableElementImpl()
getParent
public ObservableElementImpl getParent()
- Description copied from interface:
ObservableElement
- the enclosing node or the process definition
- Specified by:
getParent
in interface ObservableElement
getEvent
public EventImpl getEvent(java.lang.String eventName)
hasEvent
public boolean hasEvent(java.lang.String eventName)
- Description copied from interface:
ObservableElement
- indicates if the given event is defined no this element. This method only
looks in this observable element and it will not search the parent
hierarchy for the given event.
- Specified by:
hasEvent
in interface ObservableElement
createEvent
public EventImpl createEvent(java.lang.String eventName)
- event factory method that also establishes the bidirectional relation.
addEvent
public EventImpl addEvent(EventImpl event)
- add an event to this processDefinition element.
- Throws:
java.lang.NullPointerException
- if event is null.
getName
public java.lang.String getName()
- Description copied from interface:
ObservableElement
- the short display name given to this element.
- Specified by:
getName
in interface ObservableElement
setName
public void setName(java.lang.String name)
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String description)
getEvents
public java.util.Map<java.lang.String,Event> getEvents()
setEvents
public void setEvents(java.util.Map<java.lang.String,EventImpl> events)
Copyright © 2009 OW2 Consortium. All Rights Reserved.