org.deegree.filter.comparison
Class PropertyIsNil

java.lang.Object
  extended by org.deegree.filter.comparison.ComparisonOperator
      extended by org.deegree.filter.comparison.PropertyIsNil
All Implemented Interfaces:
Operator

public class PropertyIsNil
extends ComparisonOperator

TODO add documentation here

Version:
$Revision: 31904 $, $Date: 2011-09-15 23:15:04 +0200 (Thu, 15 Sep 2011) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.deegree.filter.comparison.ComparisonOperator
ComparisonOperator.SubType
 
Nested classes/interfaces inherited from interface org.deegree.filter.Operator
Operator.Type
 
Field Summary
 
Fields inherited from class org.deegree.filter.comparison.ComparisonOperator
matchAction, matchCase
 
Constructor Summary
PropertyIsNil(Expression propName, String nilReason, MatchAction matchAction)
           
 
Method Summary
<T> boolean
evaluate(T obj, XPathEvaluator<T> xpathEvaluator)
          Determines the value of the boolean operator.
 Expression[] getParams()
           
 Expression getPropertyName()
           
 ComparisonOperator.SubType getSubType()
           
 String toString(String indent)
           
 
Methods inherited from class org.deegree.filter.comparison.ComparisonOperator
checkComparableOrNull, getMatchAction, getPrimitiveValues, getType, isMatchCase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyIsNil

public PropertyIsNil(Expression propName,
                     String nilReason,
                     MatchAction matchAction)
Method Detail

getPropertyName

public Expression getPropertyName()

getSubType

public ComparisonOperator.SubType getSubType()
Specified by:
getSubType in class ComparisonOperator

evaluate

public <T> boolean evaluate(T obj,
                            XPathEvaluator<T> xpathEvaluator)
                 throws FilterEvaluationException
Description copied from interface: Operator
Determines the value of the boolean operator.

Type Parameters:
T - type of the context object
Parameters:
obj - object that the operator is evaluated upon, must not be null
xpathEvaluator - used for evaluation of XPath expressions, must not be null
Returns:
true, if the operator evaluates to true, false otherwise
Throws:
FilterEvaluationException - if the evaluation fails

toString

public String toString(String indent)

getParams

public Expression[] getParams()
Specified by:
getParams in class ComparisonOperator


Copyright © 2011. All Rights Reserved.