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