Package org.geotools.filter

Examples of org.geotools.filter.FunctionFactory


           
            public <T> Iterator<T> iterator(Class<T> category) {
               
                if (FunctionFactory.class == category) {
                     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"}));
View Full Code Here


    }
   
    @Test
    public void testLookup() {
        Set<FunctionFactory> factories = CommonFactoryFinder.getFunctionFactories(null);
        FunctionFactory factory = null;
       
        for (FunctionFactory ff : factories) {
            for (FunctionName fn : ff.getFunctionNames()) {
                if ("foo".equals(fn.getName())) {
                    factory = ff;
                    break;
                }
            }
        }
       
        assertNotNull(factory);
        Function f = factory.function("foo", null, null);
        assertNotNull(f);
    }
View Full Code Here

TOP

Related Classes of org.geotools.filter.FunctionFactory

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.