Class AbstractTraceForURIProvider<SomeFile,​Trace extends AbstractTrace>

    • Constructor Detail

      • AbstractTraceForURIProvider

        public AbstractTraceForURIProvider()
    • Method Detail

      • newAbstractTrace

        protected abstract Trace newAbstractTrace​(SomeFile file)
        Instantiate a new instance of the trace and associate the locate information with the given file.
      • getAbsoluteLocation

        protected abstract AbsoluteURI getAbsoluteLocation​(SomeFile file)
        Returns the absolute location from the given file representation.
      • getProjectConfig

        protected abstract IProjectConfig getProjectConfig​(SomeFile sourceFile)
        Find the project configuration for the given generated file.
      • getTraceToSource

        public Trace getTraceToSource​(AbsoluteURI absoluteDerivedResource,
                                      IProjectConfig project)
        Description copied from interface: ITraceForURIProvider
        Returns the trace information to the sources that were used as input for the given derived resource. May return null if no such data is available for the given storage.
        Specified by:
        getTraceToSource in interface ITraceForURIProvider
        Parameters:
        absoluteDerivedResource - the resource whose source trace is requested. May not be null.
        project - the project that contains the derived resource. May not be null.
        Returns:
        the trace to the source or null.
      • getTraceToSource

        public Trace getTraceToSource​(SourceRelativeURI srcRelativeDerivedResource,
                                      IProjectConfig project)
        Description copied from interface: ITraceForURIProvider
        Returns the trace information to the sources that were used as input for the given derived resource. May return null if no such data is available for the given storage.
        Specified by:
        getTraceToSource in interface ITraceForURIProvider
        Parameters:
        srcRelativeDerivedResource - the resource whose source trace is requested. May not be null.
        project - the project that contains the derived resource. May not be null.
        Returns:
        the trace to the source or null.
      • getTraceToSource

        public Trace getTraceToSource​(SomeFile generatedFile)
      • getTraceToTarget

        public Trace getTraceToTarget​(AbsoluteURI absoluteSourceResource,
                                      IProjectConfig project)
        Description copied from interface: ITraceForURIProvider
        Returns the trace information to the targets that were generated from the given source. May return null if no such data is available for the given storage.
        Specified by:
        getTraceToTarget in interface ITraceForURIProvider
        Parameters:
        absoluteSourceResource - the resource whose target trace is requested. May not be null.
        project - the project that contains the derived resource. May not be null.
        Returns:
        the trace to the generation targets or null.
      • getTraceToTarget

        public Trace getTraceToTarget​(SourceRelativeURI srcRelativeSourceResource,
                                      IProjectConfig project)
        Description copied from interface: ITraceForURIProvider
        Returns the trace information to the targets that were generated from the given source. May return null if no such data is available for the given storage.
        Specified by:
        getTraceToTarget in interface ITraceForURIProvider
        Parameters:
        srcRelativeSourceResource - the resource whose target trace is requested. May not be null.
        project - the project that contains the resource. May not be null.
        Returns:
        the trace to the generation targets or null.