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