se.js.jesdob.query.condition
Class NotEqualsCondition

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

public class NotEqualsCondition
extends java.lang.Object
implements ICondition

A Condition for checking if an IDob lacks a specific attribute, or if the value is not the same as a specific value.


Constructor Summary
NotEqualsCondition(java.lang.String attribute, java.lang.String value)
          Constructor.
 
Method Summary
 boolean isTrue(IDob dob)
          This condition will check if the dob if dobb has not a specific value for a specific attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotEqualsCondition

public NotEqualsCondition(java.lang.String attribute,
                          java.lang.String value)
Constructor.

Parameters:
attribute - The attribute we want to check.
value - The numeric value we want to check if the attribute not equals.
Method Detail

isTrue

public boolean isTrue(IDob dob)
This condition will check if the dob if dobb has not a specific value for a specific attribute. If the dob has not the attribute, the condition will return true. If the dob has the attribute, but the value of the attribute is not the supplied value, the condition will return true. If the dob has the attribute, and the value equals the supplied value, 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.