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

E13403-04

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.
 CompareType getType()
          Get the compare type (text, directory, xml) for the model.
 void setType(CompareType type)
          Set the compare type (text, directory, xml) for the model.
 

Method Detail

setType

void setType(CompareType type)
Set the compare type (text, directory, xml) for the model.

Parameters:
type - the compare type.

getType

CompareType getType()
Get the compare type (text, directory, xml) for the model.

Returns:
the compare type.

getContributor

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

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

getDifferences

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

Returns:
the array of differences in the model.

getDifferenceTypeCounts

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

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

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

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.

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

E13403-04

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