Package org.eclipse.emf.cdo.common.revision

# Schnittstelle CDORevisionData

Alle bekannten Unterschnittstellen:
  `InternalCDORevision`

Alle bekannten Implementierungsklassen:
  `AbstractCDORevision`, `BaseCDORevision`, `DelegatingCDORevision`, `DetachedCDORevision`, `PointerCDORevision`, `StubCDORevision`, `SyntheticCDORevision`

public interface CDORevisionData
Encapsulates the modeled information and the EMF system values of a `revision`.

Autor:
  Eike Stepper
No Implement
  This interface is not intended to be implemented by clients.
No Extend
  This interface is not intended to be extended by clients.

## Feldübersicht

Felder
Modifizierer und Typ
Feld
Beschreibung
`static final Object`
`NIL`
An object used to represent being set to `null` as opposed to having no value and hence being in the default state.

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`void`
`accept(CDORevisionValueVisitor visitor)`
`void`
`accept(CDORevisionValueVisitor visitor, Predicate<EStructuralFeature> filter)`
`void`
`accept(CDORevisionValueVisitor visitor, org.eclipse.net4j.util.Predicate<EStructuralFeature> filter)`
Veraltet.
As of 4.9 use `accept(CDORevisionValueVisitor, java.util.function.Predicate)`.
`static EReference`
`calculateContainingReference(int containingFeatureID, EClass childClass, EClass containerClass)`
Provides the input to the calculation of the feature in the container revision that actually holds this revision.
`default int`
`calculateContainingReferenceID(EReference containingReference)`
`static int`
`calculateContainingReferenceID(EReference containingReference, EClass childClass)`
`boolean`
`contains(EStructuralFeature feature, Object value)`
`Object`
`get(EStructuralFeature feature, int index)`
`Object`
`getContainerID()`
`int`
`getContainingFeatureID()`
Provides the input to the calculation of the feature in the container revision that actually holds this revision.
`default EReference`
`getContainingReference(EClass containerClass)`
`CDOID`
`getResourceID()`
`int`
`hashCode(EStructuralFeature feature)`
`int`
`indexOf(EStructuralFeature feature, Object value)`
`boolean`
`isEmpty(EStructuralFeature feature)`
`int`
`lastIndexOf(EStructuralFeature feature, Object value)`
`CDORevision`
`revision()`
`int`
`size(EStructuralFeature feature)`
`Object[]`
`toArray(EStructuralFeature feature)`
`<T> T[]`
`toArray(EStructuralFeature feature, T[] array)`

## Felddetails

### NIL

static final Object NIL
An object used to represent being set to `null` as opposed to having no value and hence being in the default state.

The equivalent of `DynamicValueHolder.NIL` (i.e. explicit `null`).

Seit:
  3.0

## Methodendetails

### revision

CDORevision revision()

Seit:
  2.0

### getResourceID

CDOID getResourceID()

### getContainerID

Object getContainerID()

Seit:
  2.0

### getContainingFeatureID

int getContainingFeatureID()
Provides the input to the calculation of the feature in the container revision that actually holds this revision.

Usage Example:

     CDORevision revision = ...;
     CDORevision container = Util.getRevision(revision.data().getContainerID());

     int containingFeatureID = revision.data().getContainingFeatureID();

     EStructuralFeature feature = containingFeatureID <= InternalEObject.EOPPOSITE_FEATURE_BASE ?
         container.getEClass().getEStructuralFeature(InternalEObject.EOPPOSITE_FEATURE_BASE - containingFeatureID) :
         ((EReference)revision.getEClass().getEStructuralFeature(containingFeatureID)).getEOpposite();

Siehe auch:
  - `calculateContainingReference(int, EClass, EClass)`
  - `DelegatingEcoreEList.inverseAdd(Object, NotificationChain)`
  - `BasicEObjectImpl.eContainingFeature()`
  - `getContainerID()`

### getContainingReference

default EReference getContainingReference(EClass containerClass)

Seit:
  4.26
Siehe auch:
  - `getContainingFeatureID()`
  - `DelegatingEcoreEList.inverseAdd(Object, NotificationChain)`

### get

Object get(EStructuralFeature feature, int index)

Seit:
  2.0

### size

int size(EStructuralFeature feature)

Seit:
  2.0

### isEmpty

boolean isEmpty(EStructuralFeature feature)

Seit:
  2.0

### contains

boolean contains(EStructuralFeature feature, Object value)

Seit:
  2.0

### indexOf

int indexOf(EStructuralFeature feature, Object value)

Seit:
  2.0

### lastIndexOf

int lastIndexOf(EStructuralFeature feature, Object value)

Seit:
  2.0

### toArray

<T> T[] toArray(EStructuralFeature feature, T[] array)

Seit:
  2.0

### toArray

Object[] toArray(EStructuralFeature feature)

Seit:
  2.0

### hashCode

int hashCode(EStructuralFeature feature)

Seit:
  2.0

### accept

void accept(CDORevisionValueVisitor visitor)

Seit:
  4.2

### accept

@Deprecated void accept(CDORevisionValueVisitor visitor, org.eclipse.net4j.util.Predicate<EStructuralFeature> filter)
Veraltet.
As of 4.9 use `accept(CDORevisionValueVisitor, java.util.function.Predicate)`.

Seit:
  4.2

### accept

void accept(CDORevisionValueVisitor visitor, Predicate<EStructuralFeature> filter)

Seit:
  4.9

### calculateContainingReferenceID

default int calculateContainingReferenceID(EReference containingReference)

Seit:
  4.26
Siehe auch:
  - `DelegatingEcoreEList.inverseAdd(Object, NotificationChain)`

### calculateContainingReferenceID

static int calculateContainingReferenceID(EReference containingReference, EClass childClass)

Seit:
  4.26
Siehe auch:
  - `getContainingFeatureID()`
  - `DelegatingEcoreEList.inverseAdd(Object, NotificationChain)`

### calculateContainingReference

static EReference calculateContainingReference(int containingFeatureID, EClass childClass, EClass containerClass)
Provides the input to the calculation of the feature in the container revision that actually holds this revision.

Usage Example:

     CDORevision revision = ...;
     CDORevision container = Util.getRevision(revision.data().getContainerID());

     int containingFeatureID = revision.data().getContainingFeatureID();

     EStructuralFeature feature = containingFeatureID <= InternalEObject.EOPPOSITE_FEATURE_BASE ?
         container.getEClass().getEStructuralFeature(InternalEObject.EOPPOSITE_FEATURE_BASE - containingFeatureID) :
         ((EReference)revision.getEClass().getEStructuralFeature(containingFeatureID)).getEOpposite();

Seit:
  4.26
Siehe auch:
  - `getContainingFeatureID()`
  - `DelegatingEcoreEList.inverseAdd(Object, NotificationChain)`