Class LightweightComparisonProcessHandle
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.ui.editor.LightweightComparisonProcessHandle
-
public class LightweightComparisonProcessHandle extends Object
The lightweight comparison process handle, stores the comparison data source descriptors and the comparison scope id.
-
-
Constructor Summary
Constructors Constructor Description LightweightComparisonProcessHandle(IComparisonDataSourceDescriptor mainDescriptor, IComparisonDataSourceDescriptor otherDescriptor, IComparisonDataSourceDescriptor ancestorDescriptor)
Creates a new instance.LightweightComparisonProcessHandle(IComparisonDataSourceDescriptor mainDescriptor, IComparisonDataSourceDescriptor otherDescriptor, IComparisonDataSourceDescriptor ancestorDescriptor, UUID comparisonScopeId)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
IComparisonDataSourceDescriptor
getCommonAncestorDescriptor()
Returns the common ancestor data source descriptor.UUID
getComparisonScopeId()
Returns the comparison scope id.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.int
hashCode()
boolean
isThreeWay()
Checks whether the comparison is three-way.
-
-
-
Constructor Detail
-
LightweightComparisonProcessHandle
public LightweightComparisonProcessHandle(IComparisonDataSourceDescriptor mainDescriptor, IComparisonDataSourceDescriptor otherDescriptor, IComparisonDataSourceDescriptor ancestorDescriptor)
Creates a new instance.- Parameters:
mainDescriptor
- the main data source descriptor, cannot benull
otherDescriptor
- the other data source descriptor, cannot benull
ancestorDescriptor
- the common ancestor data source descriptor, may benull
for two-way comparison
-
LightweightComparisonProcessHandle
public LightweightComparisonProcessHandle(IComparisonDataSourceDescriptor mainDescriptor, IComparisonDataSourceDescriptor otherDescriptor, IComparisonDataSourceDescriptor ancestorDescriptor, UUID comparisonScopeId)
Creates a new instance.- Parameters:
mainDescriptor
- the main data source descriptor, cannot benull
otherDescriptor
- the other data source descriptor, cannot benull
ancestorDescriptor
- the common ancestor data source descriptor, may benull
for two-way comparisoncomparisonScopeId
- the comparison scope id, cannot benull
-
-
Method Detail
-
isThreeWay
public boolean isThreeWay()
Checks whether the comparison is three-way.- Returns:
true
if the comparison is three-way,false
if the comparison is two-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, never
null
-
getOtherDescriptor
public IComparisonDataSourceDescriptor getOtherDescriptor()
Returns the other comparison data source descriptor.- Returns:
- the other comparison data source descriptor, never
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
-
getComparisonScopeId
public UUID getComparisonScopeId()
Returns the comparison scope id.- Returns:
- the comparison scope id, never
null
-
-