/*$************************************************************************************************
**
** $Id: Expression.java 831 2006-05-01 00:27:23Z Desruisseaux $
**
** $URL: http://svn.code.sf.net/p/geoapi/code/branches/2.0.x/geoapi/src/main/java/org/opengis/filter/expression/Expression.java $
**
** Copyright (C) 2005 Open GIS Consortium, Inc.
** All Rights Reserved. http://www.opengis.org/legal/
**
*************************************************************************************************/
package org.opengis.filter.expression;
// OpenGIS direct dependencies
import org.opengis.feature.Feature;
// Annotations
import org.opengis.annotation.Extension;
import org.opengis.annotation.XmlElement;
/**
* Abstract super-interface for all the OGC Filter elements that compute values,
* potentially using {@linkplain Feature feature} attributes in the computation.
*
* @version Implementation specification 1.0
* @author Chris Dillard (SYS Technologies)
* @since GeoAPI 2.0
*/
@XmlElement("expression")
public interface Expression {
/**
* Evaluates the given expression based on the content of the given feature.
*/
@Extension
Object evaluate(Feature feature);
/**
* Evaluates the given expression based on the content of the given object.
*/
@Extension
Object evaluate(Object object);
/**
* Accepts a visitor. Subclasses must implement with a method whose content* is the following:
* return visitor.{@linkplain ExpressionVisitor#visit visit}(this, extraData);
*/
@Extension
Object accept(ExpressionVisitor visitor, Object extraData);
}
Ads help maintain this website.