Class BasicModelFixContext

  • All Implemented Interfaces:
    IFixContext

    public class BasicModelFixContext
    extends BasicFixContext
    Basic implementation of the model fix context. Contains the identifier of the target object and the target feature
    • Constructor Detail

      • BasicModelFixContext

        public BasicModelFixContext​(long targetObjectId,
                                    int targetFeatureId,
                                    IDtProject dtProject)
        Creates the instance of the basic model quick fix context
        Parameters:
        targetObjectId - the target object ID
        targetFeatureId - target feature, can be -1 if feature is not provided
        dtProject - DT project, cannot be null
    • Method Detail

      • getTargetFeatureId

        public int getTargetFeatureId()
        Provides the target feature ID
        Returns:
        the targetFeatureId, may return -1
      • getTargetObjectId

        public long getTargetObjectId()
        Provides the target object ID
        Returns:
        the targetObjectId