Class FileSystemComparisonDataSourceDescriptor
java.lang.Object
com._1c.g5.v8.dt.compare.datasource.FileSystemComparisonDataSourceDescriptor
- All Implemented Interfaces:
IComparisonDataSourceDescriptor
public class FileSystemComparisonDataSourceDescriptor
extends Object
implements IComparisonDataSourceDescriptor
The descriptor represented by a file system folder.
-
Constructor Summary
ConstructorsConstructorDescriptionFileSystemComparisonDataSourceDescriptor(Path sourceRoot) Creates a new instance.FileSystemComparisonDataSourceDescriptor(Path sourceRoot, String deltaBaseProjectName) Creates a new instance.FileSystemComparisonDataSourceDescriptor(Path sourceRoot, String deltaBaseProjectName, Collection<Path> exclusions) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the delta base project name, if the delta base project defined.getPath()Returns the file system folder path.Returns the project name for this data source descriptor.Gets a set of resources which should be removed based on this delta sources providerinthashCode()booleanChecks if this source is a delta sourcebooleanChecks whether this comparison data stores the valid DT project.
-
Constructor Details
-
FileSystemComparisonDataSourceDescriptor
Creates a new instance.- Parameters:
sourceRoot- the root folder that contains project sources, cannot benull
-
FileSystemComparisonDataSourceDescriptor
Creates a new instance.- Parameters:
sourceRoot- the root folder that contains project sources, cannot benulldeltaBaseProjectName- the delta base project name. The delta base project is used to create overlayed sources only, the content of the data source is treated as a delta from the main source, cannot benull
-
FileSystemComparisonDataSourceDescriptor
public FileSystemComparisonDataSourceDescriptor(Path sourceRoot, String deltaBaseProjectName, Collection<Path> exclusions) Creates a new instance.- Parameters:
sourceRoot- the root folder that contains project sources, cannot benulldeltaBaseProjectName- the delta base project name. The delta base project is used to create overlayed sources only, the content of the data source is treated as a delta from the main source, cannot benullexclusions- Excluded resource paths, cannot benull
-
-
Method Details
-
getProjectName
Description copied from interface:IComparisonDataSourceDescriptorReturns the project name for this data source descriptor.- Specified by:
getProjectNamein interfaceIComparisonDataSourceDescriptor- Returns:
- the project name, never
null
-
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:
trueif this comparison data stores the valid DT project andfalseotherwise
-
isDeltaSource
public boolean isDeltaSource()Checks if this source is a delta source- Returns:
- True if this descriptor describes the delta source. False otherwise
-
getDeltaBaseProjectName
Returns the delta base project name, if the delta base project defined.- Returns:
- The delta base project name. May be
null
-
getRemovedResources
Gets a set of resources which should be removed based on this delta sources provider- Returns:
- The set of removed resource paths. Cannot be
null
-
hashCode
public int hashCode() -
equals
-