com.ibm.db.models.db2.util
Class ReverseNavigationHelper.InverseAdapter

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by com.ibm.db.models.db2.util.ReverseNavigationHelper.InverseAdapter
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal
Enclosing class:
ReverseNavigationHelper

public static class ReverseNavigationHelper.InverseAdapter
extends org.eclipse.emf.common.notify.impl.AdapterImpl

A InverseAdapter may be attached to any EObject that is the source of a one-way EMF relationship. This adapter will provide the ability to navigate from a target object back to a source object via the ReverseNavigationHelper#getOppositeEnd(Notifier) helper method.

A singleton instance of a InverseAdapter is needed for a given type of relationship. This singleton instance can be attached to all instances of the source of that relationship. The InverseAdapter must be constructed with the EReference that identifies the relationship and also with a flag to indicate whether the virtual inverse relationship has a cardinality of ReverseNavigationHelper.SINGLE or ReverseNavigationHelper.MULTIPLE.