Package com._1c.g5.v8.dt.compare.core
Class ComparisonScope
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.core.ComparisonScope
-
public class ComparisonScope extends Object
Stores the comparison scope as list of objects (in the form of their symbolic links) for each comparison side.
-
-
Field Summary
Fields Modifier and Type Field Description static ComparisonScope
EMPTY_SCOPE
The empty scope for each comparison side.
-
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.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()
-
-
-
Field Detail
-
EMPTY_SCOPE
public static final ComparisonScope EMPTY_SCOPE
The empty scope for each comparison side.
-
-
Constructor Detail
-
ComparisonScope
public ComparisonScope(List<String> mainScope, List<String> otherScope)
Constructor.- Parameters:
mainScope
- a list of objects comprising the comparison scope for the main side, can not benull
otherScope
- a list of objects comprising the comparison scope for the other side, can not benull
-
ComparisonScope
public ComparisonScope(List<String> mainScope, List<String> otherScope, List<String> ancestorScope)
Constructor.- Parameters:
mainScope
- a list of objects comprising the comparison scope for the main side, can not benull
otherScope
- a list of objects comprising the comparison scope for the other side, can not benull
ancestorScope
- a list of objects comprising the comparison scope for the ancestor side, can not benull
-
-
Method Detail
-
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
-
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
-
-