se.js.jesdob.query.condition
Class HasNotAttributeCondition

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

public class HasNotAttributeCondition
extends java.lang.Object
implements ICondition

Condition for checking if an IDob lacks a specific attribute or not.


Constructor Summary
HasNotAttributeCondition(java.lang.String attribute)
          Constructor.
 
Method Summary
 boolean isTrue(IDob dob)
          This Condition will check if a Dob lacks a specific attribute or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HasNotAttributeCondition

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

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

isTrue

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