OpenAPI 1.0

com.aquafold.openapi.compare
Interface AQLineChange


public interface AQLineChange

This interface represents a line in a text being compared.


Method Summary
 String getLeft()
          Returns a text string on the left side of comparison which corresponds to the first argument in compare() function.
 String getRight()
          Returns a text string on the right side of comparison which corresponds to the second argument in compare() function.
 boolean isAdded()
          Returns true if this change corresponds to an added line.
 boolean isDeleted()
          Returns true if this change corresponds to a deleted line.
 boolean isModified()
          Returns true if this change corresponds to a modified line.
 boolean isUnchanged()
          Returns true if the line has not been modified, or if the comparison options made two lines appear identical.
 

Method Detail

isAdded

boolean isAdded()
Returns true if this change corresponds to an added line.


isDeleted

boolean isDeleted()
Returns true if this change corresponds to a deleted line.


isModified

boolean isModified()
Returns true if this change corresponds to a modified line.


isUnchanged

boolean isUnchanged()
Returns true if the line has not been modified, or if the comparison options made two lines appear identical.


getLeft

String getLeft()
Returns a text string on the left side of comparison which corresponds to the first argument in compare() function.

This method returns null for ADDED lines.


getRight

String getRight()
Returns a text string on the right side of comparison which corresponds to the second argument in compare() function.

This method returns null for DELETED lines.


OpenAPI 1.0


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