Interface MergeStrategy
-
- All Known Implementing Classes:
AbstractChoiceMergeStrategy
,ChooseByNameMergeStrategy
,NodeMergeStrategy
public interface MergeStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
inBoth(Descriptor target, DescriptorElement left, DescriptorElement right)
Process when the element appears in both descriptors.int
inLeft(Descriptor target, DescriptorElement left)
Process when the element appears just in the left descriptor.int
inRight(Descriptor target, DescriptorElement right)
Process when the element appears just in the right descriptor.
-
-
-
Method Detail
-
inBoth
int inBoth(Descriptor target, DescriptorElement left, DescriptorElement right)
Process when the element appears in both descriptors.- Parameters:
target
- output descriptorleft
- left elementright
- right element- Returns:
- count of merged elements
-
inLeft
int inLeft(Descriptor target, DescriptorElement left)
Process when the element appears just in the left descriptor.- Parameters:
target
- output descriptorleft
- left element- Returns:
- count of merged elements
-
inRight
int inRight(Descriptor target, DescriptorElement right)
Process when the element appears just in the right descriptor.- Parameters:
target
- output descriptorright
- right element- Returns:
- count of merged elements
-
-