source: osm/applications/editors/josm/plugins/opendata/includes/org/geotools/filter/FunctionExpression.java@ 28000

Last change on this file since 28000 was 28000, checked in by donvip, 12 years ago

Import new "opendata" JOSM plugin

File size: 2.2 KB
Line 
1/*
2 * GeoTools - The Open Source Java GIS Toolkit
3 * http://geotools.org
4 *
5 * (C) 2002-2008, Open Source Geospatial Foundation (OSGeo)
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation;
10 * version 2.1 of the License.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 */
17package org.geotools.filter;
18
19import java.util.List;
20
21import org.geotools.factory.Factory;
22import org.opengis.filter.expression.Function;
23
24
25/**
26 * Interface for a function expression implementation
27 *
28 * @author James Macgill, PSU
29 *
30 * @source $URL: http://svn.osgeo.org/geotools/branches/2.7.x/modules/library/api/src/main/java/org/geotools/filter/FunctionExpression.java $
31 *
32 * @deprecated use {@link org.opengis.filter.expression.Function}
33 */
34public interface FunctionExpression extends Expression, Factory, Function {
35 /**
36 * Returns the number of arguments this <Function> requires.
37 *
38 * For example <Function name="strCat"> [arg1][arg2]</Function>.
39 * This function must have EXACTLY 2 arguments, so this function
40 * would return 2.
41 *
42 * The parser might use this information to ensure validity,
43 * and its also for reporting <Function> capabilities.
44 *
45 * NOTE: this was previously javadoc-ed incorrectly, please note
46 * the new definition.
47 * NOTE: you cannot have a function with a variable number of
48 * arguments.
49 *
50 * @return the number of args required by this function.
51 */
52 int getArgCount();
53
54 /**
55 * Gets the type of this expression.
56 *
57 * @return the short representation of a function expression.
58 */
59 short getType();
60
61 /**
62 * Gets the name of this function.
63 *
64 * @return the name of the function.
65 */
66 String getName();
67
68 /**
69 * Sets the paramters for the function.
70 */
71 void setParameters(List parameters);
72}
Note: See TracBrowser for help on using the repository browser.