Package com._1c.g5.v8.dt.compare.ui
Enum ComparisonFilterKind
- java.lang.Object
-
- java.lang.Enum<ComparisonFilterKind>
-
- com._1c.g5.v8.dt.compare.ui.ComparisonFilterKind
-
- All Implemented Interfaces:
Serializable
,Comparable<ComparisonFilterKind>
public enum ComparisonFilterKind extends Enum<ComparisonFilterKind>
A kind of two-/three-way comparison filter.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHANGED
Changed objects present on both sides.DIFFS
Differences, this includes changed objects and objects present only on one side.DOUBLE_CHANGES
Conflicting changes.MAIN_AND_OTHER_TO_ANCESTOR
Differences between the main and ancestor, the other and the ancestor sides.MAIN_TO_ANCESTOR
Differences between the main and the ancestor side.MAIN_TO_OTHER
Differences between the main and the other side.NONE
A singleton "none" filter kind instance, representing "no filtering".ONLY_MAIN
Objects present only on the main side.ONLY_OTHER
Objects present only on the other side.OTHER_TO_ANCESTOR
Differences between the other and the ancestor side.POTENTIAL_PROBLEMS
Potential problems.UNCHANGED
Unchanged objects present on both sides.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isApplicableForThreeWay()
Checks whether the comparison filter is applicable for three-way comparison.boolean
isApplicableForTwoWay()
Checks whether the comparison filter is applicable for two-way comparison.static ComparisonFilterKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static ComparisonFilterKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ComparisonFilterKind NONE
A singleton "none" filter kind instance, representing "no filtering". Is common for two-way and three-way comparison.
-
DIFFS
public static final ComparisonFilterKind DIFFS
Differences, this includes changed objects and objects present only on one side.
-
CHANGED
public static final ComparisonFilterKind CHANGED
Changed objects present on both sides.
-
ONLY_MAIN
public static final ComparisonFilterKind ONLY_MAIN
Objects present only on the main side.
-
ONLY_OTHER
public static final ComparisonFilterKind ONLY_OTHER
Objects present only on the other side.
-
UNCHANGED
public static final ComparisonFilterKind UNCHANGED
Unchanged objects present on both sides.
-
MAIN_AND_OTHER_TO_ANCESTOR
public static final ComparisonFilterKind MAIN_AND_OTHER_TO_ANCESTOR
Differences between the main and ancestor, the other and the ancestor sides.
-
MAIN_TO_OTHER
public static final ComparisonFilterKind MAIN_TO_OTHER
Differences between the main and the other side.
-
MAIN_TO_ANCESTOR
public static final ComparisonFilterKind MAIN_TO_ANCESTOR
Differences between the main and the ancestor side.
-
OTHER_TO_ANCESTOR
public static final ComparisonFilterKind OTHER_TO_ANCESTOR
Differences between the other and the ancestor side.
-
DOUBLE_CHANGES
public static final ComparisonFilterKind DOUBLE_CHANGES
Conflicting changes.
-
POTENTIAL_PROBLEMS
public static final ComparisonFilterKind POTENTIAL_PROBLEMS
Potential problems.
-
-
Method Detail
-
values
public static ComparisonFilterKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ComparisonFilterKind c : ComparisonFilterKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ComparisonFilterKind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isApplicableForThreeWay
public boolean isApplicableForThreeWay()
Checks whether the comparison filter is applicable for three-way comparison.- Returns:
true
if the comparison filter is applicable for three-way comparison,false
otherwise
-
isApplicableForTwoWay
public boolean isApplicableForTwoWay()
Checks whether the comparison filter is applicable for two-way comparison.- Returns:
true
if the comparison filter is applicable for two-way comparison,false
otherwise
-
-