org.eclipse.emf.cdo.view
Interface CDOAdapterPolicy

All Known Implementing Classes:
AbstractObjectConflictResolver.MergeLocalChangesPerFeature, AbstractObjectConflictResolver.ThreeWayMerge

public interface CDOAdapterPolicy

Specifies an adapter policy.

Since:
2.0
Author:
Simon McDuff
See Also:
CDOView.Options.addChangeSubscriptionPolicy(CDOAdapterPolicy), CDOView.Options.setStrongReferencePolicy(CDOAdapterPolicy)

Field Summary
static CDOAdapterPolicy ALL
          A default adapter policy that always triggers special behaviour.
static CDOAdapterPolicy CDO
          A default adapter policy that only triggers special behaviour if the adapter under test implements CDOAdapter.
static CDOAdapterPolicy NONE
          A default adapter policy that never triggers any special behaviour.
 
Method Summary
 boolean isValid(EObject eObject, Adapter adapter)
          Returns true if the given adapter on the given object should trigger a certain operation or behaviour, false otherwise.
 

Field Detail

NONE

static final CDOAdapterPolicy NONE
A default adapter policy that never triggers any special behaviour.


CDO

static final CDOAdapterPolicy CDO
A default adapter policy that only triggers special behaviour if the adapter under test implements CDOAdapter.


ALL

static final CDOAdapterPolicy ALL
A default adapter policy that always triggers special behaviour.

Method Detail

isValid

boolean isValid(EObject eObject,
                Adapter adapter)
Returns true if the given adapter on the given object should trigger a certain operation or behaviour, false otherwise.

See Also:
CDOView.Options.addChangeSubscriptionPolicy(CDOAdapterPolicy), CDOView.Options.setStrongReferencePolicy(CDOAdapterPolicy)


Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.