se.js.jesdob.query.condition
Class IsNotCondition

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

public class IsNotCondition
extends java.lang.Object
implements ICondition

A Condition for checking if an IDob lacks a specific boolean attribute that is true.


Constructor Summary
IsNotCondition(java.lang.String attribute)
          Constructor.
 
Method Summary
 boolean isTrue(IDob dob)
          This condition will check if a Dob contains a specific boolean attribute, and if this attribute is false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsNotCondition

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

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

isTrue

public boolean isTrue(IDob dob)
This condition will check if a Dob contains a specific boolean attribute, and if this attribute is false. If the dob does not contain the attribute, the condition will return true. If the dob contains the attribute, but the attribute is not true, the condition will return true. If the dob contains the attribute, and the attribute is true, 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.