Interface CDORevisionData
- All Known Subinterfaces:
InternalCDORevision
- All Known Implementing Classes:
AbstractCDORevision,BaseCDORevision,DelegatingCDORevision,DetachedCDORevision,PointerCDORevision,StubCDORevision,SyntheticCDORevision
public interface CDORevisionData
Encapsulates the modeled information and the EMF system values of a
revision.- Author:
- 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.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(CDORevisionValueVisitor visitor) voidaccept(CDORevisionValueVisitor visitor, Predicate<EStructuralFeature> filter) voidaccept(CDORevisionValueVisitor visitor, org.eclipse.net4j.util.Predicate<EStructuralFeature> filter) Deprecated.booleancontains(EStructuralFeature feature, Object value) get(EStructuralFeature feature, int index) intProvides the input to the calculation of the feature in the container revision that actually holds this revision.inthashCode(EStructuralFeature feature) intindexOf(EStructuralFeature feature, Object value) booleanisEmpty(EStructuralFeature feature) intlastIndexOf(EStructuralFeature feature, Object value) revision()intsize(EStructuralFeature feature) Object[]toArray(EStructuralFeature feature) <T> T[]toArray(EStructuralFeature feature, T[] array)
-
Field Details
-
NIL
An object used to represent being set tonullas opposed to having no value and hence being in the default state.The equivalent of
DynamicValueHolder.NIL(i.e. explicitnull).- Since:
- 3.0
-
-
Method Details
-
revision
CDORevision revision()- Since:
- 2.0
-
getResourceID
CDOID getResourceID() -
getContainerID
Object getContainerID()- Since:
- 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(); -
get
- Since:
- 2.0
-
size
- Since:
- 2.0
-
isEmpty
- Since:
- 2.0
-
contains
- Since:
- 2.0
-
indexOf
- Since:
- 2.0
-
lastIndexOf
- Since:
- 2.0
-
toArray
- Since:
- 2.0
-
toArray
- Since:
- 2.0
-
hashCode
- Since:
- 2.0
-
accept
- Since:
- 4.2
-
accept
@Deprecated void accept(CDORevisionValueVisitor visitor, org.eclipse.net4j.util.Predicate<EStructuralFeature> filter) Deprecated.- Since:
- 4.2
-
accept
- Since:
- 4.9
-
accept(CDORevisionValueVisitor, java.util.function.Predicate).