Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.javatools.compare
Class CompareModelFactory

java.lang.Object
  extended by oracle.javatools.compare.CompareModelFactory


public final class CompareModelFactory
extends java.lang.Object

Factory that knows how to create a CompareModel using a CompareAlgorithm.

Since:
10.0.3

Method Summary
static CompareAlgorithm createCompareAlgorithm(CompareType type)
           
static CompareModel createCompareModel(CompareContributor first, CompareContributor second)
          Compare the first contributor to the second contributor and return a model describing the differences.
static CompareModel createCompareModel(CompareContributor first, CompareContributor second, CompareType type)
          Compare the first contributor to the second contributor and return a model describing the differences.
static CompareModel createCompareModel(CompareContributor first, CompareContributor second, CompareType type, CompareAlgorithm compareAlgorithm)
           
static CompareModel createMergeModel(CompareContributor first, CompareContributor second, CompareContributor ancestor)
          Merge the first contributor and the second contributor based on a third and return a model of conflicting differences.
static CompareModel createMergeModel(CompareContributor first, CompareContributor second, CompareContributor ancestor, CompareType type)
          Merge the first contributor and the second contributor based on a third and return a model of conflicting differences.
static void registerCompareAlgorithm(CompareType type, java.lang.Class<? extends CompareAlgorithm> algorithmClass)
           
static void registerCompareAlgorithm(CompareType type, Thunk<java.lang.Class<? extends CompareAlgorithm>> algorithmClass)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

registerCompareAlgorithm

public static final void registerCompareAlgorithm(CompareType type,
                                                  java.lang.Class<? extends CompareAlgorithm> algorithmClass)

registerCompareAlgorithm

public static final void registerCompareAlgorithm(CompareType type,
                                                  Thunk<java.lang.Class<? extends CompareAlgorithm>> algorithmClass)

createCompareModel

public static CompareModel createCompareModel(CompareContributor first,
                                              CompareContributor second)
                                       throws CompareFailedException
Compare the first contributor to the second contributor and return a model describing the differences.
Parameters:
first - the first contributor.
second - the second contributor.
Returns:
a model describing the differences between the first and second contributors.
Throws:
CompareFailedException

createMergeModel

public static CompareModel createMergeModel(CompareContributor first,
                                            CompareContributor second,
                                            CompareContributor ancestor)
                                     throws CompareFailedException
Merge the first contributor and the second contributor based on a third and return a model of conflicting differences.
Parameters:
first - the first contributor.
second - the second contributor.
ancestor - the ancestor contributor.
Returns:
a model describing the conflicting differences between the first and second contributors, and containing the result.
Throws:
CompareFailedException

createCompareModel

public static CompareModel createCompareModel(CompareContributor first,
                                              CompareContributor second,
                                              CompareType type)
                                       throws CompareFailedException
Compare the first contributor to the second contributor and return a model describing the differences.
Parameters:
first - the first contributor.
second - the second contributor.
type - the compare type.
Returns:
a model describing the differences between the first and second contributors.
Throws:
CompareFailedException

createCompareModel

public static CompareModel createCompareModel(CompareContributor first,
                                              CompareContributor second,
                                              CompareType type,
                                              CompareAlgorithm compareAlgorithm)
                                       throws CompareFailedException
Throws:
CompareFailedException

createMergeModel

public static CompareModel createMergeModel(CompareContributor first,
                                            CompareContributor second,
                                            CompareContributor ancestor,
                                            CompareType type)
                                     throws CompareFailedException
Merge the first contributor and the second contributor based on a third and return a model of conflicting differences.
Parameters:
first - the first contributor.
second - the second contributor.
ancestor - the ancestor contributor.
type - the compare type.
Returns:
a model describing the conflicting differences between the first and second contributors, and containing the result.
Throws:
CompareFailedException

createCompareAlgorithm

public static final CompareAlgorithm createCompareAlgorithm(CompareType type)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


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