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_in9 extends FunctionExpressionImpl
024: implements FunctionExpression {
025:
026: public FilterFunction_in9() {
027: super ("in9");
028: }
029:
030: public int getArgCount() {
031: return 10;
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:
046: try { // attempt to get value and perform conversion
047: arg0 = (Object) getExpression(0).evaluate(feature);
048: } catch (Exception e) // probably a type error
049: {
050: throw new IllegalArgumentException(
051: "Filter Function problem for function in9 argument #0 - expected type Object");
052: }
053:
054: try { // attempt to get value and perform conversion
055: arg1 = (Object) getExpression(1).evaluate(feature);
056: } catch (Exception e) // probably a type error
057: {
058: throw new IllegalArgumentException(
059: "Filter Function problem for function in9 argument #1 - expected type Object");
060: }
061:
062: try { // attempt to get value and perform conversion
063: arg2 = (Object) getExpression(2).evaluate(feature);
064: } catch (Exception e) // probably a type error
065: {
066: throw new IllegalArgumentException(
067: "Filter Function problem for function in9 argument #2 - expected type Object");
068: }
069:
070: try { // attempt to get value and perform conversion
071: arg3 = (Object) getExpression(3).evaluate(feature);
072: } catch (Exception e) // probably a type error
073: {
074: throw new IllegalArgumentException(
075: "Filter Function problem for function in9 argument #3 - expected type Object");
076: }
077:
078: try { // attempt to get value and perform conversion
079: arg4 = (Object) getExpression(4).evaluate(feature);
080: } catch (Exception e) // probably a type error
081: {
082: throw new IllegalArgumentException(
083: "Filter Function problem for function in9 argument #4 - expected type Object");
084: }
085:
086: try { // attempt to get value and perform conversion
087: arg5 = (Object) getExpression(5).evaluate(feature);
088: } catch (Exception e) // probably a type error
089: {
090: throw new IllegalArgumentException(
091: "Filter Function problem for function in9 argument #5 - expected type Object");
092: }
093:
094: try { // attempt to get value and perform conversion
095: arg6 = (Object) getExpression(6).evaluate(feature);
096: } catch (Exception e) // probably a type error
097: {
098: throw new IllegalArgumentException(
099: "Filter Function problem for function in9 argument #6 - expected type Object");
100: }
101:
102: try { // attempt to get value and perform conversion
103: arg7 = (Object) getExpression(7).evaluate(feature);
104: } catch (Exception e) // probably a type error
105: {
106: throw new IllegalArgumentException(
107: "Filter Function problem for function in9 argument #7 - expected type Object");
108: }
109:
110: try { // attempt to get value and perform conversion
111: arg8 = (Object) getExpression(8).evaluate(feature);
112: } catch (Exception e) // probably a type error
113: {
114: throw new IllegalArgumentException(
115: "Filter Function problem for function in9 argument #8 - expected type Object");
116: }
117:
118: try { // attempt to get value and perform conversion
119: arg9 = (Object) getExpression(9).evaluate(feature);
120: } catch (Exception e) // probably a type error
121: {
122: throw new IllegalArgumentException(
123: "Filter Function problem for function in9 argument #9 - expected type Object");
124: }
125:
126: return new Boolean(StaticGeometry.in9(arg0, arg1, arg2, arg3,
127: arg4, arg5, arg6, arg7, arg8, arg9));
128: }
129: }
|