deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.filter.comparison
Class ComparisonOperator

java.lang.Object
  extended by org.deegree.filter.comparison.ComparisonOperator
All Implemented Interfaces:
Operator
Direct Known Subclasses:
BinaryComparisonOperator, PropertyIsBetween, PropertyIsLike, PropertyIsNull

public abstract class ComparisonOperator
extends Object
implements Operator

TODO add documentation here

Version:
$Revision:$, $Date:$
Author:
Markus Schneider , last edited by: $Author:$

Nested Class Summary
static class ComparisonOperator.SubType
           
 
Nested classes/interfaces inherited from interface org.deegree.filter.Operator
Operator.Type
 
Field Summary
protected  boolean matchCase
           
 
Constructor Summary
protected ComparisonOperator(boolean matchCase)
           
 
Method Summary
protected  Comparable<Object> checkComparableOrNull(Object value)
          Performs a checked cast to Comparable.
 boolean getMatchCase()
           
abstract  Expression[] getParams()
           
abstract  ComparisonOperator.SubType getSubType()
           
 Operator.Type getType()
          Returns the type of operator.
protected  Pair<Object,Object> makeComparable(Object value1, Object value2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deegree.filter.Operator
evaluate, toString
 

Field Detail

matchCase

protected boolean matchCase
Constructor Detail

ComparisonOperator

protected ComparisonOperator(boolean matchCase)
Method Detail

getType

public Operator.Type getType()
Description copied from interface: Operator
Returns the type of operator. Use this to safely determine the subtype of Operator.

Specified by:
getType in interface Operator
Returns:
type of operator

getMatchCase

public boolean getMatchCase()

getSubType

public abstract ComparisonOperator.SubType getSubType()

checkComparableOrNull

protected Comparable<Object> checkComparableOrNull(Object value)
                                            throws FilterEvaluationException
Performs a checked cast to Comparable. If the given value is neither null nor a Comparable instance, a corresponding FilterEvaluationException is thrown.

Parameters:
value -
Returns:
the very same value (if it is a Comparable or null)
Throws:
FilterEvaluationException - if the value is neither null nor a Comparable

makeComparable

protected Pair<Object,Object> makeComparable(Object value1,
                                             Object value2)
                                      throws FilterEvaluationException
Throws:
FilterEvaluationException

getParams

public abstract Expression[] getParams()

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>