//$HeadURL$
/*----------------------------------------------------------------------------
 This file is part of deegree, http://deegree.org/
 Copyright (C) 2001-2011 by:
 - Department of Geography, University of Bonn -
 and
 - lat/lon GmbH -

 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; either version 2.1 of the License, or (at your option)
 any later version.
 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.
 You should have received a copy of the GNU Lesser General Public License
 along with this library; if not, write to the Free Software Foundation, Inc.,
 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

 Contact information:

 lat/lon GmbH
 Aennchenstr. 19, 53177 Bonn
 Germany
 http://lat-lon.de/

 Department of Geography, University of Bonn
 Prof. Dr. Klaus Greve
 Postfach 1147, 53001 Bonn
 Germany
 http://www.geographie.uni-bonn.de/deegree/

 e-mail: info@deegree.org
 ----------------------------------------------------------------------------*/
package org.deegree.filter.temporal;

import org.deegree.filter.Expression;
import org.deegree.filter.FilterEvaluationException;
import org.deegree.filter.XPathEvaluator;

/**
 * {@link TemporalOperator} that...
 * 
 * @author <a href="mailto:schneider@lat-lon.de">Markus Schneider</a>
 * @author last edited by: $Author$
 * 
 * @version $Revision$, $Date$
 */
public class Before extends TemporalOperator {

    /**
     * Creates a new instance of {@link Before}.
     * 
     * @param param1
     *            first temporal expression (time instant or period), must not be <code>null</code>
     * @param param2
     *            second temporal expression (time instant or period), must not be <code>null</code>
     */
    public Before( Expression param1, Expression param2 ) {
        super( param1, param2 );
    }

    @Override
    public <T> boolean evaluate( T obj, XPathEvaluator<T> xpathEvaluator )
                            throws FilterEvaluationException {
        throw new UnsupportedOperationException( "Evaluation of operator " + getSubType() + " is not implemented yet." );
    }
}

@@ -1393,82 +1393,94 @@
 ree.
-filter.FilterEvaluationException;%0Aimport org.deegree.filter.XPathEvaluator
+time.operator.BeforeOperator;%0Aimport org.deegree.time.primitive.TimeGeometricPrimitive
 ;%0A%0A/
@@ -1514,18 +1514,33 @@
 or%7D that
-..
+ evaluates Before
 .%0A * %0A *
@@ -2169,17 +2169,16 @@
    p
-ublic %3CT%3E
+rotected
  boo
@@ -2197,230 +2197,116 @@
 e( T
- obj, XPathEvaluator%3CT%3E xpathEvaluator )%0A                            throws FilterEvaluationException %7B%0A        throw new UnsupportedOperationException( %22Evaluation of operator %22 + getSubType() + %22 is not implemented yet.%22
+imeGeometricPrimitive t1, TimeGeometricPrimitive t2 ) %7B%0A        return new BeforeOperator().evaluate( t1, t2
  );%0A
@@ -2311,10 +2311,10 @@
 ;%0A    %7D%0A
-%7D
 %0A
+%7D

use of BeforeOperator in TemporalOperator Before