/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2011, Open Source Geospatial Foundation (OSGeo)
* (C) 2005 Open Geospatial Consortium Inc.
*
* All Rights Reserved. http://www.opengis.org/legal/
*/
package org.opengis.filter;
// OpenGIS direct dependencies
import org.opengis.annotation.XmlElement;
import org.opengis.filter.expression.Expression;
/**
* Abstract base class for filters that compare exactly two values against each
* other. The nature of the comparison is dependent on the subclass.
*
*
* @source $URL: http://svn.osgeo.org/geotools/branches/2.7.x/modules/library/opengis/src/main/java/org/opengis/filter/BinaryComparisonOperator.java $
* @version <A HREF="http://www.opengis.org/docs/02-059.pdf">Implementation specification 1.0</A>
* @author Chris Dillard (SYS Technologies)
* @since GeoAPI 2.0
*/
@XmlElement("BinaryComparisonOpType")
public interface BinaryComparisonOperator extends Filter {
/**
* Returns the first of the two expressions to be compared by this operator.
*/
@XmlElement("expression")
Expression getExpression1();
/**
* Returns the second of the two expressions to be compared by this operator.
*/
@XmlElement("expression")
Expression getExpression2();
/**
* Flag controlling wither comparisons are case sensitive.
*
* @return <code>true</code> if the comparison is case sensetive, otherwise <code>false</code>.
*/
@XmlElement("matchCase")
boolean isMatchingCase();
}