01: package org.geotools.filter.function;
02:
03: /*
04: * GeoTools - OpenSource mapping toolkit
05: * http://geotools.org
06: * (C) 2005-2006, GeoTools Project Managment Committee (PMC)
07: *
08: * This library is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU Lesser General Public
10: * License as published by the Free Software Foundation;
11: * version 2.1 of the License.
12: *
13: * This library is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16: * Lesser General Public License for more details.
17: */
18:
19: //this code is autogenerated - you shouldnt be modifying it!
20: import org.geotools.filter.FunctionExpression;
21: import org.geotools.filter.FunctionExpressionImpl;
22:
23: public class FilterFunction_in3 extends FunctionExpressionImpl
24: implements FunctionExpression {
25:
26: public FilterFunction_in3() {
27: super ("in3");
28: }
29:
30: public int getArgCount() {
31: return 4;
32: }
33:
34: public Object evaluate(Object feature) {
35: Object arg0;
36: Object arg1;
37: Object arg2;
38: Object arg3;
39:
40: try { // attempt to get value and perform conversion
41: arg0 = (Object) getExpression(0).evaluate(feature);
42: } catch (Exception e) // probably a type error
43: {
44: throw new IllegalArgumentException(
45: "Filter Function problem for function in3 argument #0 - expected type Object");
46: }
47:
48: try { // attempt to get value and perform conversion
49: arg1 = (Object) getExpression(1).evaluate(feature);
50: } catch (Exception e) // probably a type error
51: {
52: throw new IllegalArgumentException(
53: "Filter Function problem for function in3 argument #1 - expected type Object");
54: }
55:
56: try { // attempt to get value and perform conversion
57: arg2 = (Object) getExpression(2).evaluate(feature);
58: } catch (Exception e) // probably a type error
59: {
60: throw new IllegalArgumentException(
61: "Filter Function problem for function in3 argument #2 - expected type Object");
62: }
63:
64: try { // attempt to get value and perform conversion
65: arg3 = (Object) getExpression(3).evaluate(feature);
66: } catch (Exception e) // probably a type error
67: {
68: throw new IllegalArgumentException(
69: "Filter Function problem for function in3 argument #3 - expected type Object");
70: }
71:
72: return new Boolean(StaticGeometry.in3(arg0, arg1, arg2, arg3));
73: }
74: }
|