org.alfresco.util.schemacomp
Interface ComparisonUtils

All Known Implementing Classes:
DefaultComparisonUtils

public interface ComparisonUtils

Utilities for comparing data structures in the context of comparing two database schemas.


Method Summary
 void compareCollections(java.util.Collection leftCollection, java.util.Collection rightCollection, DiffContext ctx)
          Compare collections, reporting differences using the default Difference.Strength
 void compareCollections(java.util.Collection leftCollection, java.util.Collection rightCollection, DiffContext ctx, Result.Strength strength)
          Compare collections of DbObjects using their DbObject#diff(DbObject, Differences) method.
 void compareSimple(DbProperty left, DbProperty right, DiffContext ctx)
          Compare two simple objects.
 void compareSimple(DbProperty left, DbProperty right, DiffContext ctx, Result.Strength strength)
          Compare two 'simple' (i.e.
 void compareSimpleCollections(DbProperty leftProperty, DbProperty rightProperty, DiffContext ctx, Result.Strength strength)
           
 java.util.List findEquivalentObjects(DbObject rootObject, DbObject objToMatch)
           
 

Method Detail

findEquivalentObjects

java.util.List findEquivalentObjects(DbObject rootObject,
                                     DbObject objToMatch)

compareSimpleCollections

void compareSimpleCollections(DbProperty leftProperty,
                              DbProperty rightProperty,
                              DiffContext ctx,
                              Result.Strength strength)

compareCollections

void compareCollections(java.util.Collection leftCollection,
                        java.util.Collection rightCollection,
                        DiffContext ctx)
Compare collections, reporting differences using the default Difference.Strength

See Also:
#compareCollections(Collection, Collection, Differences, Strength)

compareCollections

void compareCollections(java.util.Collection leftCollection,
                        java.util.Collection rightCollection,
                        DiffContext ctx,
                        Result.Strength strength)
Compare collections of DbObjects using their DbObject#diff(DbObject, Differences) method. Differences are reported using the specified Difference.Strength.

Parameters:
leftCollection -
rightCollection -
differences -
strength -

compareSimple

void compareSimple(DbProperty left,
                   DbProperty right,
                   DiffContext ctx)
Compare two simple objects. Differences are reported using the default Result.Strength.

See Also:
#compareSimple(Object, Object, Differences, Strength)

compareSimple

void compareSimple(DbProperty left,
                   DbProperty right,
                   DiffContext ctx,
                   Result.Strength strength)
Compare two 'simple' (i.e. non-DbObject objects) using their Object.equals(Object) method to decide if there is a difference. Differences are reported using the Result.Strength specified.

Parameters:
left -
right -
differences -
strength -


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.