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_in5 extends FunctionExpressionImpl
24: implements FunctionExpression {
25:
26: public FilterFunction_in5() {
27: super ("in5");
28: }
29:
30: public int getArgCount() {
31: return 6;
32: }
33:
34: public Object evaluate(Object feature) {
35: Object arg0;
36: Object arg1;
37: Object arg2;
38: Object arg3;
39: Object arg4;
40: Object arg5;
41:
42: try { // attempt to get value and perform conversion
43: arg0 = (Object) getExpression(0).evaluate(feature);
44: } catch (Exception e) // probably a type error
45: {
46: throw new IllegalArgumentException(
47: "Filter Function problem for function in5 argument #0 - expected type Object");
48: }
49:
50: try { // attempt to get value and perform conversion
51: arg1 = (Object) getExpression(1).evaluate(feature);
52: } catch (Exception e) // probably a type error
53: {
54: throw new IllegalArgumentException(
55: "Filter Function problem for function in5 argument #1 - expected type Object");
56: }
57:
58: try { // attempt to get value and perform conversion
59: arg2 = (Object) getExpression(2).evaluate(feature);
60: } catch (Exception e) // probably a type error
61: {
62: throw new IllegalArgumentException(
63: "Filter Function problem for function in5 argument #2 - expected type Object");
64: }
65:
66: try { // attempt to get value and perform conversion
67: arg3 = (Object) getExpression(3).evaluate(feature);
68: } catch (Exception e) // probably a type error
69: {
70: throw new IllegalArgumentException(
71: "Filter Function problem for function in5 argument #3 - expected type Object");
72: }
73:
74: try { // attempt to get value and perform conversion
75: arg4 = (Object) getExpression(4).evaluate(feature);
76: } catch (Exception e) // probably a type error
77: {
78: throw new IllegalArgumentException(
79: "Filter Function problem for function in5 argument #4 - expected type Object");
80: }
81:
82: try { // attempt to get value and perform conversion
83: arg5 = (Object) getExpression(5).evaluate(feature);
84: } catch (Exception e) // probably a type error
85: {
86: throw new IllegalArgumentException(
87: "Filter Function problem for function in5 argument #5 - expected type Object");
88: }
89:
90: return new Boolean(StaticGeometry.in5(arg0, arg1, arg2, arg3,
91: arg4, arg5));
92: }
93: }
|