com.ibm.dse.base
Class CompareAssertion
java.lang.Object
|
+--com.ibm.dse.base.OperationStep
|
+--com.ibm.dse.base.CompareAssertion
- public class CompareAssertion
- extends OperationStep
This class compares the values of two data elements.
Method Summary |
protected int |
compareDouble(java.lang.Double d1,
java.lang.Double d2,
java.lang.String operator)
Compares the values of two doubles. |
protected int |
compareFloat(java.lang.Float f1,
java.lang.Float f2,
java.lang.String operator)
Compares the values of two floats. |
protected int |
compareInt(java.lang.Integer i1,
java.lang.Integer i2,
java.lang.String operator)
Compares the values of two integers. |
protected int |
compareLong(java.lang.Long l1,
java.lang.Long l2,
java.lang.String operator)
Compares the values of two longs. |
protected int |
compareString(java.lang.String s1,
java.lang.String s2,
java.lang.String operator)
Compares the values of two strings. |
int |
execute()
Compares the values of two data elements. |
Methods inherited from class com.ibm.dse.base.OperationStep |
addElement,
getApplicationId,
getContext,
getElementAt,
getFormat,
getFormats,
getKeyedCollection,
getName,
getOperation,
getParams,
getParent,
getService,
getValueAt,
removeAt,
setApplicationId,
setName,
setOperation,
setParams,
setValueAt |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
CompareAssertion
public CompareAssertion()
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.Doubled2
- java.lang.Doubleoperator
- java.lang.String- Returns:
- int
- Throws:
- 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.Floatf2
- java.lang.Floatoperator
- java.lang.String- Returns:
- int
- Throws:
- 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.Integeri2
- java.lang.Integeroperator
- java.lang.String- Returns:
- int
- Throws:
- 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.Longl2
- java.lang.Longoperator
- java.lang.String- Returns:
- int
- Throws:
- 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.Strings2
- java.lang.Stringoperator
- java.lang.String- Returns:
- int
- Throws:
- java.lang.Exception. -
execute
public int execute()
throws java.lang.Exception
- Compares the values of two data elements.
- Overrides:
- execute in class OperationStep
- Returns:
- int
- Throws:
- java.lang.Exception. -