01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.filter;
17:
18: import org.opengis.filter.expression.Literal;
19: import org.geotools.feature.Feature;
20:
21: /**
22: * Defines an expression that holds a literal for return.
23: *
24: * @author Rob Hranac, Vision for New York
25: * @author Chris Holmes, TOPP
26: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/api/src/main/java/org/geotools/filter/LiteralExpression.java $
27: * @version $Id: LiteralExpression.java 22294 2006-10-20 00:55:40Z desruisseaux $
28: *
29: * @deprecated use {@link org.opengis.filter.expression.Literal}
30: */
31: public interface LiteralExpression extends Expression, Literal {
32: /**
33: * Sets the literal.
34: *
35: * @param literal The literal to store inside this expression.
36: *
37: * @throws IllegalFilterException This literal type is not in scope.
38: *
39: * @deprecated use {@link Literal#setValue(Object)}
40: */
41: void setLiteral(Object literal) throws IllegalFilterException;
42:
43: /**
44: * Gets the value of this literal.
45: *
46: * @param feature Required by the interface but not used.
47: *
48: * @return the literal held by this expression. Ignores the passed in
49: * feature.
50: *
51: * @deprecated use {@link Expression#evaluate(Feature)}.
52: */
53: Object getValue(Feature feature);
54:
55: /**
56: * Returns the literal type.
57: *
58: * @return the short representation of the literal expression type.
59: */
60: short getType();
61:
62: /**
63: * Retrieves the literal of this expression.
64: *
65: * @return the literal held by this expression.
66: *
67: * @deprecated use {@link Literal#getValue()}.
68: */
69: Object getLiteral();
70: }
|