Interface CDORevisionData
- 
- All Known Subinterfaces:
- InternalCDORevision
 - All Known Implementing Classes:
- AbstractCDORevision,- BaseCDORevision,- DelegatingCDORevision,- DetachedCDORevision,- PointerCDORevision,- StubCDORevision,- SyntheticCDORevision
 
 public interface CDORevisionDataEncapsulates the modeled information and the EMF system values of arevision.- 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 SummaryFields Modifier and Type Field Description static java.lang.ObjectNILAn object used to represent being set tonullas opposed to having no value and hence being in the default state.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaccept(CDORevisionValueVisitor visitor)voidaccept(CDORevisionValueVisitor visitor, java.util.function.Predicate<org.eclipse.emf.ecore.EStructuralFeature> filter)voidaccept(CDORevisionValueVisitor visitor, org.eclipse.net4j.util.Predicate<org.eclipse.emf.ecore.EStructuralFeature> filter)Deprecated.booleancontains(org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value)java.lang.Objectget(org.eclipse.emf.ecore.EStructuralFeature feature, int index)java.lang.ObjectgetContainerID()intgetContainingFeatureID()Provides the input to the calculation of the feature in the container revision that actually holds this revision.CDOIDgetResourceID()inthashCode(org.eclipse.emf.ecore.EStructuralFeature feature)intindexOf(org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value)booleanisEmpty(org.eclipse.emf.ecore.EStructuralFeature feature)intlastIndexOf(org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value)CDORevisionrevision()intsize(org.eclipse.emf.ecore.EStructuralFeature feature)java.lang.Object[]toArray(org.eclipse.emf.ecore.EStructuralFeature feature)<T> T[]toArray(org.eclipse.emf.ecore.EStructuralFeature feature, T[] array)
 
- 
- 
- 
Method Detail- 
revisionCDORevision revision() - Since:
- 2.0
 
 - 
getResourceIDCDOID getResourceID() 
 - 
getContainerIDjava.lang.Object getContainerID() - Since:
- 2.0
 
 - 
getContainingFeatureIDint 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();- See Also:
- BasicEObjectImpl.eContainingFeature(),- getContainerID()
 
 - 
getjava.lang.Object get(org.eclipse.emf.ecore.EStructuralFeature feature, int index)- Since:
- 2.0
 
 - 
sizeint size(org.eclipse.emf.ecore.EStructuralFeature feature) - Since:
- 2.0
 
 - 
isEmptyboolean isEmpty(org.eclipse.emf.ecore.EStructuralFeature feature) - Since:
- 2.0
 
 - 
containsboolean contains(org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value)- Since:
- 2.0
 
 - 
indexOfint indexOf(org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value)- Since:
- 2.0
 
 - 
lastIndexOfint lastIndexOf(org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value)- Since:
- 2.0
 
 - 
toArray<T> T[] toArray(org.eclipse.emf.ecore.EStructuralFeature feature, T[] array)- Since:
- 2.0
 
 - 
toArrayjava.lang.Object[] toArray(org.eclipse.emf.ecore.EStructuralFeature feature) - Since:
- 2.0
 
 - 
hashCodeint hashCode(org.eclipse.emf.ecore.EStructuralFeature feature) - Since:
- 2.0
 
 - 
acceptvoid accept(CDORevisionValueVisitor visitor) - Since:
- 4.2
 
 - 
accept@Deprecated void accept(CDORevisionValueVisitor visitor, org.eclipse.net4j.util.Predicate<org.eclipse.emf.ecore.EStructuralFeature> filter) Deprecated.- Since:
- 4.2
 
 - 
acceptvoid accept(CDORevisionValueVisitor visitor, java.util.function.Predicate<org.eclipse.emf.ecore.EStructuralFeature> filter) - Since:
- 4.9
 
 
- 
 
-