org.alfresco.util.schemacomp
Class Difference

java.lang.Object
  extended by org.alfresco.util.schemacomp.Result
      extended by org.alfresco.util.schemacomp.Difference

public final class Difference
extends Result

Result of a comparison between two database objects.


Nested Class Summary
static class Difference.Where
          Specifies the type of differences
 
Nested classes/interfaces inherited from class org.alfresco.util.schemacomp.Result
Result.Strength
 
Field Summary
 
Fields inherited from class org.alfresco.util.schemacomp.Result
strength
 
Constructor Summary
Difference(Difference.Where where, DbProperty left, DbProperty right)
           
Difference(Difference.Where where, DbProperty left, DbProperty right, Result.Strength strength)
           
 
Method Summary
 java.lang.String describe()
          A loggable message to describe the comparison result.
 DbProperty getLeft()
           
 DbProperty getRight()
           
 Difference.Where getWhere()
           
 java.lang.String toString()
           
 
Methods inherited from class org.alfresco.util.schemacomp.Result
getStrength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Difference

public Difference(Difference.Where where,
                  DbProperty left,
                  DbProperty right)

Difference

public Difference(Difference.Where where,
                  DbProperty left,
                  DbProperty right,
                  Result.Strength strength)
Method Detail

getWhere

public Difference.Where getWhere()
Returns:
the where

getLeft

public DbProperty getLeft()
Returns:
the left

getRight

public DbProperty getRight()
Returns:
the right

describe

public java.lang.String describe()
Description copied from class: Result
A loggable message to describe the comparison result. Default implementation delegates to toString() but this should generally be overridden as toString() is used in a multitude of contexts.

Overrides:
describe in class Result
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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