Class FileSystemComparisonDataSourceDescriptor

    • Constructor Detail

      • FileSystemComparisonDataSourceDescriptor

        public FileSystemComparisonDataSourceDescriptor​(Path sourceRoot)
        Creates a new instance.
        Parameters:
        sourceRoot - the root folder that contains project sources, cannot be null
      • FileSystemComparisonDataSourceDescriptor

        public FileSystemComparisonDataSourceDescriptor​(Path sourceRoot,
                                                        boolean deltaSource)
        Creates a new instance.
        Parameters:
        sourceRoot - the root folder that contains project sources, cannot be null
        deltaSource - designator of a delta source. It's used to create overlayed sources only, the content of the data source is treated as a delta from the main source
      • FileSystemComparisonDataSourceDescriptor

        public FileSystemComparisonDataSourceDescriptor​(Path sourceRoot,
                                                        boolean deltaSource,
                                                        IDtProject deltaBase)
        Creates a new instance.
        Parameters:
        sourceRoot - the root folder that contains project sources, cannot be null
        deltaSource - designator of a delta source. It's used to create overlayed sources only, the content of the data source is treated as a delta from the main source
        deltaBase - Delta source base project. It's used to create overlayed sources only, the content of the data source is treated as a delta from the provided delta base May not be null
    • Method Detail

      • getPath

        public Path getPath()
        Returns the file system folder path.
        Returns:
        the file system folder path, never null
      • storesValidDtProject

        public boolean storesValidDtProject()
        Checks whether this comparison data stores the valid DT project.
        Returns:
        true if this comparison data stores the valid DT project and false otherwise
      • isDeltaSource

        public boolean isDeltaSource()
        Checks if this source is a delta source
        Returns:
        True if this descriptor describes the delta source. False otherwise
      • getDeltaBase

        public IDtProject getDeltaBase()
        Gets the delta base project, if defined
        Returns:
        The delta base project. May be null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object