IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.base
Class CompareAssertion

java.lang.Object
  extended by com.ibm.btt.base.OperationStep
      extended by com.ibm.btt.base.CompareAssertion
All Implemented Interfaces:
OperationStepInterface

This class compares the values of two data elements.


Field Summary
 
Fields inherited from class com.ibm.btt.base.OperationStep
RC_ERROR, RC_OK
 
Constructor Summary
CompareAssertion()
          
Method Summary
protected  int compareDouble(java.lang.Double d1, java.lang.Double d2, java.lang.String operator)
          
Methods inherited from class com.ibm.btt.base.OperationStep
addElement, getApplicationId, getContext, getElementAt, getFormat, getFormats, getKeyedCollection, getName, getOperation, getParams, getParent, getService, getValueAt, postExecute, preExecute, removeAt, setApplicationId, setContext, setKeyedCollection, setName, setOperation, setParams, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompareAssertion

public CompareAssertion()
Method Detail

compareDouble

protected int compareDouble(java.lang.Double d1,
                            java.lang.Double d2,
                            java.lang.String operator)
                     throws java.lang.Exception
Compares the values of two doubles.

Parameters:
d1 - java.lang.Double - the compared object
d2 - java.lang.Double - the compared object
operator - java.lang.String - the compare operator
Returns:
int - the compare result
Throws:
java.lang.Exception.
java.lang.Exception

compareFloat

protected int compareFloat(java.lang.Float f1,
                           java.lang.Float f2,
                           java.lang.String operator)
                    throws java.lang.Exception
Compares the values of two floats.

Parameters:
f1 - java.lang.Float - the compared object
f2 - java.lang.Float - the compared object
operator - java.lang.String - the compare operator
Returns:
int - the compare result
Throws:
java.lang.Exception.
java.lang.Exception

compareInt

protected int compareInt(java.lang.Integer i1,
                         java.lang.Integer i2,
                         java.lang.String operator)
                  throws java.lang.Exception
Compares the values of two integers.

Parameters:
i1 - java.lang.Integer - the compared object
i2 - java.lang.Integer - the compared object
operator - java.lang.String - the compare operator
Returns:
int - the compare result
Throws:
java.lang.Exception.
java.lang.Exception

compareLong

protected int compareLong(java.lang.Long l1,
                          java.lang.Long l2,
                          java.lang.String operator)
                   throws java.lang.Exception
Compares the values of two longs.

Parameters:
l1 - java.lang.Long - the compared object
l2 - java.lang.Long - the compared object
operator - java.lang.String - the compare operator
Returns:
int - the compare result
Throws:
java.lang.Exception.
java.lang.Exception

compareString

protected int compareString(java.lang.String s1,
                            java.lang.String s2,
                            java.lang.String operator)
                     throws java.lang.Exception
Compares the values of two strings.

Parameters:
s1 - java.lang.String - the compared object
s2 - java.lang.String - the compared object
operator - java.lang.String - the compare operator
Returns:
int - the compare result
Throws:
java.lang.Exception.
java.lang.Exception

execute

public int execute()
            throws java.lang.Exception
Compares the values of two data elements.

Specified by:
execute in interface OperationStepInterface
Specified by:
execute in class OperationStep
Returns:
int - the compare result
Throws:
java.lang.Exception.
java.lang.Exception

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2009