001: package org.geotools.filter.function;
002:
003: /*
004: * GeoTools - OpenSource mapping toolkit
005: * http://geotools.org
006: * (C) 2005-2006, GeoTools Project Managment Committee (PMC)
007: *
008: * This library is free software; you can redistribute it and/or
009: * modify it under the terms of the GNU Lesser General Public
010: * License as published by the Free Software Foundation;
011: * version 2.1 of the License.
012: *
013: * This library is distributed in the hope that it will be useful,
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
016: * Lesser General Public License for more details.
017: */
018:
019: //this code is autogenerated - you shouldnt be modifying it!
020: import org.geotools.filter.FunctionExpression;
021: import org.geotools.filter.FunctionExpressionImpl;
022:
023: public class FilterFunction_in10 extends FunctionExpressionImpl
024: implements FunctionExpression {
025:
026: public FilterFunction_in10() {
027: super ("in10");
028: }
029:
030: public int getArgCount() {
031: return 11;
032: }
033:
034: public Object evaluate(Object feature) {
035: Object arg0;
036: Object arg1;
037: Object arg2;
038: Object arg3;
039: Object arg4;
040: Object arg5;
041: Object arg6;
042: Object arg7;
043: Object arg8;
044: Object arg9;
045: Object arg10;
046:
047: try { // attempt to get value and perform conversion
048: arg0 = (Object) getExpression(0).evaluate(feature);
049: } catch (Exception e) // probably a type error
050: {
051: throw new IllegalArgumentException(
052: "Filter Function problem for function in10 argument #0 - expected type Object");
053: }
054:
055: try { // attempt to get value and perform conversion
056: arg1 = (Object) getExpression(1).evaluate(feature);
057: } catch (Exception e) // probably a type error
058: {
059: throw new IllegalArgumentException(
060: "Filter Function problem for function in10 argument #1 - expected type Object");
061: }
062:
063: try { // attempt to get value and perform conversion
064: arg2 = (Object) getExpression(2).evaluate(feature);
065: } catch (Exception e) // probably a type error
066: {
067: throw new IllegalArgumentException(
068: "Filter Function problem for function in10 argument #2 - expected type Object");
069: }
070:
071: try { // attempt to get value and perform conversion
072: arg3 = (Object) getExpression(3).evaluate(feature);
073: } catch (Exception e) // probably a type error
074: {
075: throw new IllegalArgumentException(
076: "Filter Function problem for function in10 argument #3 - expected type Object");
077: }
078:
079: try { // attempt to get value and perform conversion
080: arg4 = (Object) getExpression(4).evaluate(feature);
081: } catch (Exception e) // probably a type error
082: {
083: throw new IllegalArgumentException(
084: "Filter Function problem for function in10 argument #4 - expected type Object");
085: }
086:
087: try { // attempt to get value and perform conversion
088: arg5 = (Object) getExpression(5).evaluate(feature);
089: } catch (Exception e) // probably a type error
090: {
091: throw new IllegalArgumentException(
092: "Filter Function problem for function in10 argument #5 - expected type Object");
093: }
094:
095: try { // attempt to get value and perform conversion
096: arg6 = (Object) getExpression(6).evaluate(feature);
097: } catch (Exception e) // probably a type error
098: {
099: throw new IllegalArgumentException(
100: "Filter Function problem for function in10 argument #6 - expected type Object");
101: }
102:
103: try { // attempt to get value and perform conversion
104: arg7 = (Object) getExpression(7).evaluate(feature);
105: } catch (Exception e) // probably a type error
106: {
107: throw new IllegalArgumentException(
108: "Filter Function problem for function in10 argument #7 - expected type Object");
109: }
110:
111: try { // attempt to get value and perform conversion
112: arg8 = (Object) getExpression(8).evaluate(feature);
113: } catch (Exception e) // probably a type error
114: {
115: throw new IllegalArgumentException(
116: "Filter Function problem for function in10 argument #8 - expected type Object");
117: }
118:
119: try { // attempt to get value and perform conversion
120: arg9 = (Object) getExpression(9).evaluate(feature);
121: } catch (Exception e) // probably a type error
122: {
123: throw new IllegalArgumentException(
124: "Filter Function problem for function in10 argument #9 - expected type Object");
125: }
126:
127: try { // attempt to get value and perform conversion
128: arg10 = (Object) getExpression(10).evaluate(feature);
129: } catch (Exception e) // probably a type error
130: {
131: throw new IllegalArgumentException(
132: "Filter Function problem for function in10 argument #10 - expected type Object");
133: }
134:
135: return new Boolean(StaticGeometry.in10(arg0, arg1, arg2, arg3,
136: arg4, arg5, arg6, arg7, arg8, arg9, arg10));
137: }
138: }
|