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
Constructors Constructor Description FileSystemComparisonDataSourceDescriptor(Path sourceRoot)
Creates a new instance.FileSystemComparisonDataSourceDescriptor(Path sourceRoot, boolean deltaSource)
Creates a new instance.FileSystemComparisonDataSourceDescriptor(Path sourceRoot, boolean deltaSource, IDtProject deltaBase)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
IDtProject
getDeltaBase()
Gets the delta base project, if definedPath
getPath()
Returns the file system folder path.String
getProjectName()
Returns the project name for this data source descriptor.int
hashCode()
boolean
isDeltaSource()
Checks if this source is a delta sourceboolean
storesValidDtProject()
Checks whether this comparison data stores the valid DT project.
-
-
-
Constructor Detail
-
FileSystemComparisonDataSourceDescriptor
public FileSystemComparisonDataSourceDescriptor(Path sourceRoot)
Creates a new instance.- Parameters:
sourceRoot
- the root folder that contains project sources, cannot benull
-
FileSystemComparisonDataSourceDescriptor
public FileSystemComparisonDataSourceDescriptor(Path sourceRoot, boolean deltaSource)
Creates a new instance.- Parameters:
sourceRoot
- the root folder that contains project sources, cannot benull
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 benull
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 sourcedeltaBase
- 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 benull
-
-
Method Detail
-
getProjectName
public String getProjectName()
Description copied from interface:IComparisonDataSourceDescriptor
Returns the project name for this data source descriptor.- Specified by:
getProjectName
in interfaceIComparisonDataSourceDescriptor
- Returns:
- the project name, never
null
-
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 andfalse
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
-
-