se.js.jesdob.query.condition
Class IsNotNumericCondition

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

public class IsNotNumericCondition
extends NumericCondition
implements ICondition

Condition for checking if a specific attribute contains a non-numeric value.


Constructor Summary
IsNotNumericCondition(java.lang.String attribute)
          Constructor.
 
Method Summary
 boolean isTrue(IDob dob)
          This will check if a specific attribute is not numeric or if it is.
 
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

IsNotNumericCondition

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

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

isTrue

public boolean isTrue(IDob dob)
This will check if a specific attribute is not numeric or if it is. 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 true. If the dob has the attribute and the attribute is numeric, the condition will return false.

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.