Package org.geotools.filter.capability

Examples of org.geotools.filter.capability.FunctionNameImpl


        return new org.geotools.data.Parameter<T>(name, type, title, description, required,
            minOccurs, maxOccurs, defaultValue, null);
    };

    public FunctionName functionName(String name, int nargs) {
        return new FunctionNameImpl( name, nargs );
    }
View Full Code Here


        return new FunctionNameImpl( name, nargs );
    }

    @Override
    public FunctionName functionName(Name name, int nargs) {
        return new FunctionNameImpl( name, nargs );
    }
View Full Code Here

    public FunctionName functionName(Name name, int nargs) {
        return new FunctionNameImpl( name, nargs );
    }

    public FunctionName functionName(String name, int nargs, List<String> argNames ){
        return new FunctionNameImpl( name, nargs, argNames );
    }
View Full Code Here

        return new FunctionNameImpl( name, nargs, argNames );
    }

    @Override
    public FunctionName functionName(Name name, int nargs, List<String> argNames) {
        return new FunctionNameImpl( name, nargs, argNames );
    }
View Full Code Here

    public FunctionName functionName(Name name, int nargs, List<String> argNames) {
        return new FunctionNameImpl( name, nargs, argNames );
    }
   
    public FunctionName functionName(String name, List<Parameter<?>> args, Parameter<?> ret) {
        return new FunctionNameImpl( name, ret, args );
    }
View Full Code Here

        return new FunctionNameImpl( name, ret, args );
    }

    @Override
    public FunctionName functionName(Name name, List<Parameter<?>> args, Parameter<?> ret) {
        return new FunctionNameImpl( name, ret, args );
    }
View Full Code Here

                     List<FunctionFactory> l = new ArrayList<FunctionFactory>();
                     l.add(new FunctionFactory( ) {
                       
                        @SuppressWarnings("unchecked")
                        public List<FunctionName> getFunctionNames() {
                            return (List) Arrays.asList(new FunctionNameImpl("foo",
                                new String[]{"bar", "baz"}));
                        }
                       
                        public Function function(String name, List<Expression> args, Literal fallback) {
                            return function(new NameImpl(name), args, fallback);
View Full Code Here

public class FunctionExpressionImplTest {

    @Test
    public void testVariableArgCount() {
        FunctionName name = new FunctionNameImpl(
                "test",
                parameter("result", Double.class),
                parameter("double",Double.class,2,Integer.MAX_VALUE));

        FunctionExpressionImpl f = new FunctionExpressionImpl(name) {
View Full Code Here

        assertEquals(-2, f.getFunctionName().getArgumentCount());
    }
   
    @Test
    public void testHigherCardinality() {
        FunctionName name = new FunctionNameImpl(
                "test",
                parameter("result", Double.class),
                parameter("double",Double.class,2,2));

        FunctionExpressionImpl f = new FunctionExpressionImpl(name) {
View Full Code Here

        assertEquals(2, f.getFunctionName().getArgumentCount());
    }
   
    @Test
    public void testSimpleArguments() {
        FunctionName name = new FunctionNameImpl(
                "test",
                parameter("result", Double.class),
                parameter("one",Double.class),
                parameter("two",Double.class));
View Full Code Here

TOP

Related Classes of org.geotools.filter.capability.FunctionNameImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.