se.js.jesdob.query.condition
Class IsNumericCondition

java.lang.Object
  extended by se.js.jesdob.query.condition.NumericCondition
      extended by se.js.jesdob.query.condition.IsNumericCondition
All Implemented Interfaces:
ICondition

public class IsNumericCondition
extends NumericCondition
implements ICondition

Condition for checking if a column contains a numeric value, or not.


Constructor Summary
IsNumericCondition(java.lang.String attribute)
          Constructor.
 
Method Summary
 boolean isTrue(IDob dob)
          This condition will check if a specific attribute is numeric or not.
 
Methods inherited from class se.js.jesdob.query.condition.NumericCondition
getNumeric, isNumeric
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsNumericCondition

public IsNumericCondition(java.lang.String attribute)
Constructor.

Parameters:
attribute - The attribute we want to check.
Method Detail

isTrue

public boolean isTrue(IDob dob)
This condition will check if a specific attribute is numeric or not. If the dob has not the attribute, the condition will return false. If the dob has the attribute, but the attribute is not numeric, the condition will return false. If the dob has the attribute and the attribute is numeric, the condition will return true.

Specified by:
isTrue in interface ICondition
Parameters:
dob - The IDob to test.
Returns:
True or false, depending on if the condition is true for the IDob-object or not.