org.apache.slide.search.basic.expression
Class NotContainsExpression

java.lang.Object
  extended byorg.apache.slide.search.basic.expression.BasicExpression
      extended byorg.apache.slide.search.basic.expression.GenericBasicExpression
          extended byorg.apache.slide.search.basic.expression.CompareExpression
              extended byorg.apache.slide.search.basic.expression.ContainsExpression
                  extended byorg.apache.slide.search.basic.expression.NotContainsExpression
All Implemented Interfaces:
IBasicExpression

public class NotContainsExpression
extends ContainsExpression

Represents a not-contains expression.

Version:
$Revision: 1.4 $

Field Summary
 
Fields inherited from class org.apache.slide.search.basic.expression.ContainsExpression
searchedText
 
Fields inherited from class org.apache.slide.search.basic.expression.CompareExpression
propertyProvider, requestedResourcesPool
 
Fields inherited from class org.apache.slide.search.basic.expression.BasicExpression
expressionElement, expressionFactory, resultSet
 
Constructor Summary
NotContainsExpression(org.jdom.Element e, ComparableResourcesPool requestedResourcesPool)
          Creates a not-contains expression according to Element e
 
Method Summary
protected  boolean compare(ComparableResource item)
          Checks if the content of item contains searchedText
 java.lang.String toString()
          For debugging purpose.
 
Methods inherited from class org.apache.slide.search.basic.expression.CompareExpression
execute, getRequestedResourcePool, setRequestedResourcePool
 
Methods inherited from class org.apache.slide.search.basic.expression.BasicExpression
getFactory, setFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotContainsExpression

public NotContainsExpression(org.jdom.Element e,
                             ComparableResourcesPool requestedResourcesPool)
                      throws InvalidQueryException
Creates a not-contains expression according to Element e

Parameters:
e - jdom element, that describes the expression
requestedResourcesPool - the pool of resources to apply the expression to.
Method Detail

compare

protected boolean compare(ComparableResource item)
Checks if the content of item contains searchedText

Overrides:
compare in class ContainsExpression
Parameters:
item - the reuquestedResource to be searched
Returns:
a boolean

toString

public java.lang.String toString()
For debugging purpose.

Overrides:
toString in class ContainsExpression
Returns:
This expression as string