|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.fdsapi.arrays.ConditionalBase
Abstract base class for other Conditional objects. This interface is used in where clauses to return true if the row in the array should be kept in the resulting array.
| Field Summary | |
protected int |
col
Column number to be used in the comparsison |
| Constructor Summary | |
ConditionalBase(int col)
A Constructor that takes the column to be compared in the decorator |
|
ConditionalBase(int col,
Conditional nextConditional)
Contructor that takes the column to be compared as well as the next conditional in the decorator chain. |
|
| Method Summary | |
protected java.lang.String |
getConditionalString(java.lang.Object comparisonValue)
Display a String representation of this Conditional. |
protected Conditional |
getNextConditional()
This method gets the next Conditional object in the decorator chain |
boolean |
isTrue(java.lang.Object[] row)
This method implements the Template design pattern. |
protected abstract boolean |
isTrueThis(java.lang.Object[] row)
This method must be implemented in child classes to specify if the row matches the comparison value |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.fdsapi.arrays.Conditional |
getType |
| Field Detail |
protected int col
| Constructor Detail |
public ConditionalBase(int col,
Conditional nextConditional)
public ConditionalBase(int col)
| Method Detail |
public boolean isTrue(java.lang.Object[] row)
isTrue in interface Conditionalprotected abstract boolean isTrueThis(java.lang.Object[] row)
protected Conditional getNextConditional()
protected java.lang.String getConditionalString(java.lang.Object comparisonValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||