Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.javatools.compare.view
Class CompareViewUtil

java.lang.Object
  extended by oracle.javatools.compare.view.CompareViewUtil

public class CompareViewUtil
extends java.lang.Object

Since:
11.0

Method Summary
static boolean equal(CompareModel model, oracle.javatools.compare.algorithm.sequence.SequenceCompareDifference block, ContributorKind contributor1, ContributorKind contributor2)
           
static boolean isAddition(oracle.javatools.compare.algorithm.BaseCompareDifference difference, ContributorKind firstContributor, ContributorKind secondContributor, CompareViewBias bias)
          Utility that determines whether this difference block represents a logical addition between the specified two contributors.
static boolean isRemoval(oracle.javatools.compare.algorithm.BaseCompareDifference difference, ContributorKind firstContributor, ContributorKind secondContributor, CompareViewBias bias)
          Utility that determines whether this difference block represents a logical removal between the specified two contributors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equal

public static boolean equal(CompareModel model,
                            oracle.javatools.compare.algorithm.sequence.SequenceCompareDifference block,
                            ContributorKind contributor1,
                            ContributorKind contributor2)

isAddition

public static final boolean isAddition(oracle.javatools.compare.algorithm.BaseCompareDifference difference,
                                       ContributorKind firstContributor,
                                       ContributorKind secondContributor,
                                       CompareViewBias bias)
Utility that determines whether this difference block represents a logical addition between the specified two contributors. It's an addition if the length for the first contributor is 0 and the length for the second contributor is > 0.

Parameters:
firstContributor - the first contributor, a member of the ContributorKind enumeration.
secondContributor - the second contributor, a member of the ContributorKind enumeration.
bias - the modified contributor bias.
Returns:
true if this difference block represents a logical addition between the two specified contributors.

isRemoval

public static final boolean isRemoval(oracle.javatools.compare.algorithm.BaseCompareDifference difference,
                                      ContributorKind firstContributor,
                                      ContributorKind secondContributor,
                                      CompareViewBias bias)
Utility that determines whether this difference block represents a logical removal between the specified two contributors. It's a removal if the length for the first contributor is > 0 and the length for the second contributor is 0.

Parameters:
firstContributor - the first contributor, a member of the ContributorKind enumeration.
secondContributor - the second contributor, a member of the ContributorKind enumeration.
bias - the modified contributor bias.
Returns:
true if this difference block represents a logical removal between the two specified contributors.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.