se.js.jesdob.query.condition
Class AttrContainsNotCondition

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

public class AttrContainsNotCondition
extends java.lang.Object
implements ICondition

A Condition for checking if a IDob doesn't contains a specific attribute, or if this attribute does not contains a specific value or not.


Constructor Summary
AttrContainsNotCondition(java.lang.String attribute, java.lang.String value)
          Constructor.
 
Method Summary
 boolean isTrue(IDob dob)
          This will check if the dob has a specific attribute, and if this attribute doesn't contains a specific char sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttrContainsNotCondition

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

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

isTrue

public boolean isTrue(IDob dob)
This will check if the dob has a specific attribute, and if this attribute doesn't contains a specific char sequence. 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. If the dob has the attribute, and the value contains the supplied value, the condition will return false. Example: value = "def" "abcdefghijklm" - false, contains "def". "def" - false, contains "def". "abcde" - true, does not contain "def".

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.