Package com._1c.g5.v8.dt.compare.core
Class ComparisonProcessHandle
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.core.ComparisonProcessHandle
-
public final class ComparisonProcessHandle extends Object
A handle of a comparison process with two or three descriptors of data sources being compared and a comparison scope.
-
-
Constructor Summary
Constructors Constructor Description ComparisonProcessHandle(IComparisonDataSourceDescriptor mainDescriptor, IComparisonDataSourceDescriptor otherDescriptor, ComparisonScope comparisonScope)
Constructs a two-way comparison handle.ComparisonProcessHandle(IComparisonDataSourceDescriptor mainDescriptor, IComparisonDataSourceDescriptor otherDescriptor, IComparisonDataSourceDescriptor ancestorDescriptor, ComparisonScope comparisonScope)
Constructs a comparison handle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
void
extendScope(String symlink, ComparisonSide side)
Extends the comparison scope by new symlink.IComparisonDataSourceDescriptor
getCommonAncestorDescriptor()
Returns the common ancestor data source descriptor.IComparisonDataSourceDescriptor
getDescriptor(ComparisonSide side)
Returns the comparison data source descriptor on the specified side.IComparisonDataSourceDescriptor
getMainDescriptor()
Returns the main comparison data source descriptor.IComparisonDataSourceDescriptor
getOtherDescriptor()
Returns the other comparison data source descriptor.List<String>
getScope(ComparisonSide side)
Returns the list of objects (in the form of their symbolic links) comprising the comparison scope for the specified side.int
hashCode()
boolean
isThreeWay()
Returnstrue
if the comparison is three-way.
-
-
-
Constructor Detail
-
ComparisonProcessHandle
public ComparisonProcessHandle(IComparisonDataSourceDescriptor mainDescriptor, IComparisonDataSourceDescriptor otherDescriptor, ComparisonScope comparisonScope)
Constructs a two-way comparison handle.- Parameters:
mainDescriptor
- the main data source descriptor, notnull
otherDescriptor
- the other data source descriptor, notnull
comparisonScope
- the comparison scope, notnull
-
ComparisonProcessHandle
public ComparisonProcessHandle(IComparisonDataSourceDescriptor mainDescriptor, IComparisonDataSourceDescriptor otherDescriptor, IComparisonDataSourceDescriptor ancestorDescriptor, ComparisonScope comparisonScope)
Constructs a comparison handle.- Parameters:
mainDescriptor
- the main data source descriptor, notnull
otherDescriptor
- the other data source descriptor, notnull
ancestorDescriptor
- the common ancestor data source descriptor, may benull
for two-way comparisoncomparisonScope
- the comparison scope, notnull
-
-
Method Detail
-
isThreeWay
public boolean isThreeWay()
Returnstrue
if the comparison is three-way.- Returns:
true
if the comparison is three-way- See Also:
getCommonAncestorDescriptor()
-
getDescriptor
public IComparisonDataSourceDescriptor getDescriptor(ComparisonSide side)
Returns the comparison data source descriptor on the specified side.- Parameters:
side
- the comparison side to get descriptor on, cannot benull
- Returns:
- the main comparison data source descriptor, may be
null
-
getMainDescriptor
public IComparisonDataSourceDescriptor getMainDescriptor()
Returns the main comparison data source descriptor.- Returns:
- the main comparison data source descriptor, not
null
-
getOtherDescriptor
public IComparisonDataSourceDescriptor getOtherDescriptor()
Returns the other comparison data source descriptor.- Returns:
- the other comparison data source descriptor, not
null
-
getCommonAncestorDescriptor
public IComparisonDataSourceDescriptor getCommonAncestorDescriptor()
Returns the common ancestor data source descriptor. Presents only in three-way comparison.- Returns:
- the common ancestor comparison data source descriptor or
null
for two-way comparison
-
getScope
public List<String> getScope(ComparisonSide side)
Returns the list of objects (in the form of their symbolic links) comprising the comparison scope for the specified side.- Parameters:
side
- the side of the scope objects, can not benull
- Returns:
- a list of FQNs of the scope objects, never
null
-
extendScope
public void extendScope(String symlink, ComparisonSide side)
Extends the comparison scope by new symlink.- Parameters:
symlink
- the symlink to add to the scope, cannot benull
side
- the side of the scope objects, cannot benull
-
-