/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2011, Open Source Geospatial Foundation (OSGeo)
* (C) 2005, Open Geospatial Consortium Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotools.filter.temporal;
import org.opengis.filter.FilterVisitor;
import org.opengis.filter.expression.Expression;
import org.opengis.filter.temporal.MetBy;
import org.opengis.temporal.RelativePosition;
/**
*
*
* @source $URL$
*/
public class MetByImpl extends BinaryTemporalOperatorImpl implements MetBy {
public MetByImpl(Expression e1, Expression e2) {
super(e1, e2);
}
public MetByImpl(Expression e1, Expression e2, MatchAction matchAction) {
super(e1, e2, matchAction);
}
@Override
protected boolean doEvaluate(RelativePosition pos) {
return pos == RelativePosition.MET_BY;
}
public Object accept(FilterVisitor visitor, Object extraData) {
return visitor.visit(this, extraData);
}
}