Extension SDK 10.1.3.36.73

oracle.javatools.compare
Interface CompareModel


public interface CompareModel

The model for a comparison between two CompareElements. The only method on this interface is used to get each of the contributors used in the compare.

Since:
10.0.3

Method Summary
 int getConflictCount()
          Get a count of the number of conflicting differences in this model.
 CompareContributor getContributor(ContributorKind contributor)
          Get the specified contributor to this compare.
 int getDifferenceCount()
          Get a count of the number of differences in this model.
 CompareDifference[] getDifferences()
          Gets the differences represented by this compare model.
 int[] getDifferenceTypeCounts()
          Get a count of the number of additions, changes and removeals in this model.
 int getResolvedCount()
          Get a count of the number of resolved conflicts in this model.
 

Method Detail

getContributor

public CompareContributor getContributor(ContributorKind contributor)
Get the specified contributor to this compare.

Parameters:
contributor - the contributor to get
Returns:
the contributor.

getDifferences

public CompareDifference[] getDifferences()
Gets the differences represented by this compare model.

Returns:
the array of differences in the model.

getDifferenceTypeCounts

public int[] getDifferenceTypeCounts()
Get a count of the number of additions, changes and removeals in this model.

Returns:
the number of additions, changes and removals as index 0, 1 and 2 in the array.

getDifferenceCount

public int getDifferenceCount()
Get a count of the number of differences in this model. What constitutes a difference varies depending on the model.

Returns:
the total number of differences

getConflictCount

public int getConflictCount()
Get a count of the number of conflicting differences in this model. What constitutes a difference varies depending on the model.

Returns:
the total number of conflicts.

getResolvedCount

public int getResolvedCount()
Get a count of the number of resolved conflicts in this model. What constitutes a difference varies depending on the model.

Returns:
the total number of resolved conflicts.

Extension SDK 10.1.3.36.73

 

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