public interface CDORevisionData
revision
.Modifier and Type | Field and Description |
---|---|
static Object |
NIL
The equivalent of
DynamicValueHolder.NIL (i.e. explicit null ). |
Modifier and Type | Method and Description |
---|---|
void |
accept(CDORevisionValueVisitor visitor) |
void |
accept(CDORevisionValueVisitor visitor,
Predicate<org.eclipse.emf.ecore.EStructuralFeature> filter) |
boolean |
contains(org.eclipse.emf.ecore.EStructuralFeature feature,
Object value) |
Object |
get(org.eclipse.emf.ecore.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.
|
CDOID |
getResourceID() |
int |
hashCode(org.eclipse.emf.ecore.EStructuralFeature feature) |
int |
indexOf(org.eclipse.emf.ecore.EStructuralFeature feature,
Object value) |
boolean |
isEmpty(org.eclipse.emf.ecore.EStructuralFeature feature) |
int |
lastIndexOf(org.eclipse.emf.ecore.EStructuralFeature feature,
Object value) |
CDORevision |
revision() |
int |
size(org.eclipse.emf.ecore.EStructuralFeature feature) |
Object[] |
toArray(org.eclipse.emf.ecore.EStructuralFeature feature) |
<T> T[] |
toArray(org.eclipse.emf.ecore.EStructuralFeature feature,
T[] array) |
static final Object NIL
DynamicValueHolder.NIL
(i.e. explicit null
).CDORevision revision()
CDOID getResourceID()
Object getContainerID()
int getContainingFeatureID()
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();
BasicEObjectImpl.eContainingFeature()
,
getContainerID()
Object get(org.eclipse.emf.ecore.EStructuralFeature feature, int index)
int size(org.eclipse.emf.ecore.EStructuralFeature feature)
boolean isEmpty(org.eclipse.emf.ecore.EStructuralFeature feature)
boolean contains(org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
int indexOf(org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
int lastIndexOf(org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
<T> T[] toArray(org.eclipse.emf.ecore.EStructuralFeature feature, T[] array)
Object[] toArray(org.eclipse.emf.ecore.EStructuralFeature feature)
int hashCode(org.eclipse.emf.ecore.EStructuralFeature feature)
void accept(CDORevisionValueVisitor visitor)
void accept(CDORevisionValueVisitor visitor, Predicate<org.eclipse.emf.ecore.EStructuralFeature> filter)
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.