|
SAP NetWeaver 7.4 (SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
com.sap.tc.cmi.util.CMIRelationRoleEvent
public final class CMIRelationRoleEvent
Describes a change in a relation role of an observed model object.
0..1 1 0..n 1..n
ELEMENT_ADDED x - x x
ELEMENT_REMOVED x - x x
ELEMENT_CHANGED x x x x
ROLE_CLEARED x - x -
COMPLEX_CHANGE x x x x
0..1
ADDED: role was empty, single element added
REMOVED: single element removed, role now empty
CHANGED: role had an element and it has been changed (not for null)
CLEARED: like REMOVED
1
0..n
ADDED:
REMOVED:
Type Classification:
This class is part of the Common Model Interface, so applications may reference it or call any method of this type, but they must not subclass it.
| Field Summary | |
|---|---|
static int |
CONTIGUOUS_ELEMENTS_ADDED
Event type when multiple elements have been added en block. |
static int |
CONTIGUOUS_ELEMENTS_REMOVED
Event type used when multiple elements have been removed en block from a relation role. |
static int |
ELEMENT_ADDED
|
static int |
ELEMENT_CHANGED
Deprecated. use ELEMENT_REPLACED instead |
static int |
ELEMENT_REMOVED
|
static int |
ELEMENT_REPLACED
|
static int |
ELEMENTS_REORDERED
Event type when the order of the elements in the relation role changed, but the set of elements did not change (no adds, removes, replacements). |
static int |
FIRST_MODEL_DEFINED_EVENT_TYPE
Smallest integer that model implementations may use to define their own event types. |
static int |
MULTIPLE_ELEMENTS_REMOVED
Event type when multiple elements have been removed at not necessarily contiguous positions. |
static int |
ROLE_CLEARED
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
CMIRelationRoleEvent(ICMIObservableModelClass source,
ICMIRelationRoleInfo role,
int type,
Object oldElement,
Object newElement,
int fromIndex,
int toIndex)
|
|
| Method Summary | |
|---|---|
int |
getChangeType()
|
Object |
getElement()
Deprecated. Use getOldElement() for ELEMENT_REMOVED or ELEMENT_REPLACED and use getNewElement() for ELEMENT_ADDED instead. As this method was only visible internally, it will be removed before the end of NW Paris MIT. |
int |
getFromIndex()
|
Object |
getNewElement()
|
ICMIObservableModelClass |
getObservableModelClass()
|
Object |
getOldElement()
|
ICMIRelationRoleInfo |
getRelationRoleInfo()
|
int |
getToIndex()
|
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ROLE_CLEARED
public static final int ELEMENT_ADDED
public static final int ELEMENT_REMOVED
public static final int ELEMENT_CHANGED
public static final int ELEMENT_REPLACED
public static final int CONTIGUOUS_ELEMENTS_ADDED
public static final int CONTIGUOUS_ELEMENTS_REMOVED
Implies an index decrement by toIndex-fromIndex+1 for any existing element after the insert position. Only to be fired for relation roles that have a list semantic.
public static final int MULTIPLE_ELEMENTS_REMOVED
public static final int ELEMENTS_REORDERED
public static final int FIRST_MODEL_DEFINED_EVENT_TYPE
Events with a type >= FIRST_MODEL_DEFINED_EVENT_TYPE
must be delivered to listeners through their
ICMIRelationRoleChangeListener.complexRoleChange(CMIRelationRoleEvent)
method.
| Constructor Detail |
|---|
public CMIRelationRoleEvent(ICMIObservableModelClass source,
ICMIRelationRoleInfo role,
int type,
Object oldElement,
Object newElement,
int fromIndex,
int toIndex)
| Method Detail |
|---|
public final ICMIObservableModelClass getObservableModelClass()
public final ICMIRelationRoleInfo getRelationRoleInfo()
public final int getChangeType()
public final Object getElement()
public final Object getOldElement()
public final Object getNewElement()
public final int getFromIndex()
public final int getToIndex()
| 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 | |||||||||