Interface CDORevisionData

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.Object NIL
      An object used to represent being set to null as opposed to having no value and hence being in the default state.
    • Field Detail

      • NIL

        static final java.lang.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).

        Since:
        3.0
    • Method Detail

      • getResourceID

        CDOID getResourceID()
      • getContainerID

        java.lang.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();
        See Also:
        BasicEObjectImpl.eContainingFeature(), getContainerID()
      • get

        java.lang.Object get​(org.eclipse.emf.ecore.EStructuralFeature feature,
                             int index)
        Since:
        2.0
      • size

        int size​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Since:
        2.0
      • isEmpty

        boolean isEmpty​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Since:
        2.0
      • contains

        boolean contains​(org.eclipse.emf.ecore.EStructuralFeature feature,
                         java.lang.Object value)
        Since:
        2.0
      • indexOf

        int indexOf​(org.eclipse.emf.ecore.EStructuralFeature feature,
                    java.lang.Object value)
        Since:
        2.0
      • lastIndexOf

        int 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
      • toArray

        java.lang.Object[] toArray​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Since:
        2.0
      • hashCode

        int hashCode​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Since:
        2.0
      • accept

        void accept​(CDORevisionValueVisitor visitor,
                    java.util.function.Predicate<org.eclipse.emf.ecore.EStructuralFeature> filter)
        Since:
        4.9