|
SAP NetWeaver 7.4 (SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICMIRelationRoleChangeListener
Listener interface for model consumers that want to be notified about
changes in a relation role of an ICMIObservableModelClass.
When an implementation of this interface has been registered with a model object and if one of the relation roles of interest has changed, then one of the callback methods in this interface is called.
Each callback method receives an event object as a parameter that describes the change in more detail. The callback complexRoleChange(CMIRelationRoleEvent) also serves as a future extension point. If new types of changes are identified and added to CMI, then they will lead to such a complex change event.
Type Classification:
This interface is part of the Common Model Interface and is intended to be implemented by applications.
| Method Summary | |
|---|---|
void |
complexRoleChange(CMIRelationRoleEvent event)
Called when a relation role, that this listener has been registered for, has been changed in way that can not be described by the other events. |
void |
objectAddedToRole(CMIRelationRoleEvent event)
Called when a single object has been added to a relation role that this listener has been registered for. |
void |
objectRemovedFromRole(CMIRelationRoleEvent event)
Called when a single object has been removed from a relation role that this listener has been registered for. |
void |
objectReplacedInRole(CMIRelationRoleEvent event)
Called when a single object has been replaced in a relation role that this listener has been registered for. |
| Method Detail |
|---|
void objectAddedToRole(CMIRelationRoleEvent event)
The source and relation role properties of the event object describe which role in which model object has changed. The element property of the event object describes, what object has been added. If the relation has list semantic, then the from index of the event object describes at which position the element has been added.
event - void objectReplacedInRole(CMIRelationRoleEvent event)
The source and relation role properties of the event object describe which role in which model object has changed. The element property of the event object describes the object that has been replaced. The new object can not be identified! If the relation has list semantic, then the from index of the event object describes at which position the element has been replaced.
event - void objectRemovedFromRole(CMIRelationRoleEvent event)
The source and relation role properties of the event object describe which role in which model object has changed. The element property of the event object describes, which object has been removed. If the relation has list semantic, then the from index of the event object describes at which position the element has been removed.
event - void complexRoleChange(CMIRelationRoleEvent event)
The source and relation role properties of the event object describe which role in which model object has changed.
The type property of the event object describes the type of change. See CMIRelationRoleEvent for details.
Note: CMIRelationRoleEvent might introduce new event types in the future. Therefore any listener must deal with unknown event types. The only practical way to do so is to switch on the event type and in an obligatory default branch, have a look at the complete relation role. Just imagine that the relation role changed completely without further notice.
Furthermore, model implementations might introduce their own event types to synchronize with listeners more efficiently. If so, the above default reaction on events helps more general listeners to continue to work.
event - | Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] FRAMEWORK
|
[sap.com] tc/cm/ejb/api
|
api
|
BC-JAS-EJB
|
[sap.com] FRAMEWORK
|
[sap.com] tc/cmi
|
default
|
BC-WD-JAV-RUN
|
|
SAP NetWeaver 7.4 (SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||