org.ow2.orchestra.pvm.internal.model
Class ObservableElementImpl
java.lang.Object
org.ow2.orchestra.pvm.internal.model.ProcessElementImpl
org.ow2.orchestra.pvm.internal.model.ObservableElementImpl
- All Implemented Interfaces:
- 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.orchestra.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 String name
description
protected String description
events
protected Map<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(String eventName)
hasEvent
public boolean hasEvent(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(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:
NullPointerException - if event is null.
getName
public 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(String name)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getEvents
public Map<String,Event> getEvents()
setEvents
public void setEvents(Map<String,EventImpl> events)
Copyright © 2011 OW2 Consortium. All Rights Reserved.