Interface LoadTracker


  • public interface LoadTracker
    Adapter interface to track features which were loaded. May be used when some features can be either loaded or computed. Defined in Common instead of EMF because it needs to be available in Ncore.
    Author:
    Pavel
    • Method Detail

      • isLoaded

        boolean isLoaded​(EStructuralFeature feature)
        Feature is already loaded. This method can be used to decide whether to inject a feature value derived from other loaded features it a feature is not yet loaded.
        Parameters:
        feature -
        Returns:
      • isLoading

        boolean isLoading​(EStructuralFeature feature)
        Feature is being loaded. This method returns true only when the loader calls the feature setter. It can be used to decide whether to trigger computations of features derived from this feature.
        Parameters:
        feature -
        Returns:
      • get

        Object get​(EStructuralFeature feature)
        Returns loaded value which was provided to feature setter for changeable features. This value can be used to derive (compute) feature value for non-changeable derived features which have computed annotation set to true.
        Parameters:
        feature -
        Returns: