OpenAPI 1.0

com.aquafold.openapi.compare
Interface AQCompareFactory


public interface AQCompareFactory

An object implementing this interface is available in aquascripts via aqua.compare alias.


Method Summary
 AQDifferences compare(String a, String b)
          This method compares text strings on line-per-line basis.
 AQComparator newComparator()
          Creates a new text comparator object.
 AQFileComparator newFileComparator()
          Creates a new file comparator object.
 AQResultComparator newResultComparator()
          Creates a new result comparator object.
 AQResultComparator newResultComparator(AQDataSet left, AQDataSet right)
          Creates a new result comparator object.
 AQResultComparator newResultComparator(AQResultSet left, AQResultSet right)
          Creates a new result comparator object.
 AQSchemaComparator newSchemaComparator()
          Creates a new schema comparator object.
 

Method Detail

newComparator

AQComparator newComparator()
Creates a new text comparator object.


compare

AQDifferences compare(String a,
                      String b)
                      throws Exception
This method compares text strings on line-per-line basis. For more intelligent comparison please use aqua.compare.newComparator() which returns an instance of AQComparator.

Parameters:
a - First string to compare.
b - Second string to compare.
Throws:
Exception

newSchemaComparator

AQSchemaComparator newSchemaComparator()
Creates a new schema comparator object.


newFileComparator

AQFileComparator newFileComparator()
Creates a new file comparator object.


newResultComparator

AQResultComparator newResultComparator()
Creates a new result comparator object.


newResultComparator

AQResultComparator newResultComparator(AQDataSet left,
                                       AQDataSet right)
                                       throws Exception
Creates a new result comparator object.

Parameters:
left - The data set on the left side.
right - The data set on the right side.
Throws:
Exception

newResultComparator

AQResultComparator newResultComparator(AQResultSet left,
                                       AQResultSet right)
                                       throws Exception
Creates a new result comparator object.

Parameters:
left - The result set on the left side.
right - The result set on the right side.
Throws:
Exception

OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.