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