Package org.geotools.filter.capability

Examples of org.geotools.filter.capability.FunctionNameImpl


        public String getName() {
            return "function";
        }
        public FunctionName getFunctionName() {
            return new FunctionNameImpl(getName(), 0);
        }
View Full Code Here


        public Literal getFallbackValue() {
            return null;
        }

        public FunctionName getFunctionName() {
            return new FunctionNameImpl("geometryfunction");
        }
View Full Code Here

                inputParams.add(param);
            }
        }
        Map<String, Parameter<?>> resultParams = Processors.getResultInfo(processName, null);
        org.opengis.parameter.Parameter result = resultParams.values().iterator().next();
        functionName = new FunctionNameImpl(name, result, inputParams);
    }
View Full Code Here

                        List<org.opengis.parameter.Parameter<?>> args = new ArrayList<org.opengis.parameter.Parameter<?>>( argumentNames.size() );
                        for(String argumentName : argumentNames ){
                            args.add( parameterInfo.get(argumentName));
                        }

                        FunctionName functionName = new FunctionNameImpl(processName, result, args);
                        functionNames.add(functionName);
                        processToFunction.put(processName, functionName);
                    }
                }
            }
View Full Code Here

            contents.getIdCapabilities().setFID(true);
        }
        else {
            FunctionsImpl functions = contents.getScalarCapabilities().getArithmeticOperators().getFunctions();
            if( functions.getFunctionName( name ) == null ){
                FunctionNameImpl function = new FunctionNameImpl( name, 0 );
                functions.getFunctionNames().add( function );
            }
        }
    }
View Full Code Here

     * @param argumentCount
     */
    public void addName( String name, int argumentCount ){
        FunctionsImpl functions = contents.getScalarCapabilities().getArithmeticOperators().getFunctions();
        if( functions.getFunctionName( name ) == null ){
            FunctionNameImpl function = new FunctionNameImpl( name, argumentCount );
            functions.getFunctionNames().add( function );
        }
    }
View Full Code Here

     * @param argumentCount
     */
    public void addName( String name, String... argumentNames ){
        FunctionsImpl functions = contents.getScalarCapabilities().getArithmeticOperators().getFunctions();
        if( functions.getFunctionName( name ) == null ){
            FunctionNameImpl function = new FunctionNameImpl( name, argumentNames );           
            functions.getFunctionNames().add( function );
        }
    }
View Full Code Here

        return name;
    }
   
    public synchronized FunctionName getFunctionName() {
        if( functionName == null ){
            functionName = new FunctionNameImpl(name,getParameters().size());
        }
        return functionName;
    }
View Full Code Here

            }
            else {
                // wrap both sides in "lower"
                FunctionImpl f = new FunctionImpl() {
                    {
                        functionName = new FunctionNameImpl("lower",
                                parameter("lowercase", String.class),
                                parameter("string", String.class));
                    }
                };
                f.setName("lower");
View Full Code Here

    }
    /**
     * Creates a new instance of FunctionExpression
     */
    protected FunctionExpressionImpl(Name name, Literal fallback) {
        this.functionName = new FunctionNameImpl(name, (Class<?>) null);
        this.name = name.getLocalPart();
        this.fallback = fallback;
        params = new ArrayList<org.opengis.filter.expression.Expression>();
    }
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.