@Test public void testAllFunctionDescriptions() throws Exception { List<FunctionName> all = finder.getAllFunctionDescriptions(); assertTrue(all.size() > 0); boolean found = false; for (FunctionName name : all) { if (name.getName().equals("Interpolate")) { found = true; break; } } assertTrue("Found Interpolate", found ); }
public List<FunctionName> getAllFunctionDescriptions(){ Set<FunctionFactory> functionFactories = CommonFactoryFinder.getFunctionFactories(null); List<FunctionName> allFunctionDescriptions = new ArrayList<FunctionName>(); for (FunctionFactory factory : functionFactories) { List<FunctionName> functionNames = factory.getFunctionNames(); allFunctionDescriptions.addAll( functionNames ); } Collections.sort( allFunctionDescriptions, new Comparator<FunctionName>() { public int compare(FunctionName o1, FunctionName o2) { if( o1 == null && o2 == null ) return 0; if( o1 == null && o2 != null ) return 1; if( o1 != null && o2 == null ) return -1; return o1.getName().compareTo( o2.getName() ); } } ); return Collections.unmodifiableList(allFunctionDescriptions); }
FunctionFinder { public List<FunctionName> getAllFunctionDescriptions(){ Set<FunctionFactory> functionFactories = CommonFactoryFinder.getFunctionFactories(null); List<FunctionName> allFunctionDescriptions = new ArrayList<FunctionName>(); for (FunctionFactory factory : functionFactories) { List<FunctionName> functionNames = factory.getFunctionNames(); allFunctionDescriptions.addAll( functionNames ); } Collections.sort( allFunctionDescriptions, new Comparator<FunctionName>() { public int compare(FunctionName o1, FunctionName o2) { if( o1 == null && o2 == null ) return 0; if( o1 == null && o2 != null ) return 1; if( o1 != null && o2 == null ) return -1; return o1.getName().compareTo( o2.getName() ); } } ); return Collections.unmodifiableList(allFunctionDescriptions); } }
FunctionFinder { public List<FunctionName> getAllFunctionDescriptions(){ Set<FunctionFactory> functionFactories = CommonFactoryFinder.getFunctionFactories(null); List<FunctionName> allFunctionDescriptions = new ArrayList<FunctionName>(); for (FunctionFactory factory : functionFactories) { List<FunctionName> functionNames = factory.getFunctionNames(); allFunctionDescriptions.addAll( functionNames ); } Collections.sort( allFunctionDescriptions, new Comparator<FunctionName>() { public int compare(FunctionName o1, FunctionName o2) { if( o1 == null && o2 == null ) return 0; if( o1 == null && o2 != null ) return 1; if( o1 != null && o2 == null ) return -1; return o1.getName().compareTo( o2.getName() ); } } ); return Collections.unmodifiableList(allFunctionDescriptions); } FunctionFinder(Hints hints); }
FunctionFinder { public List<FunctionName> getAllFunctionDescriptions(){ Set<FunctionFactory> functionFactories = CommonFactoryFinder.getFunctionFactories(null); List<FunctionName> allFunctionDescriptions = new ArrayList<FunctionName>(); for (FunctionFactory factory : functionFactories) { List<FunctionName> functionNames = factory.getFunctionNames(); allFunctionDescriptions.addAll( functionNames ); } Collections.sort( allFunctionDescriptions, new Comparator<FunctionName>() { public int compare(FunctionName o1, FunctionName o2) { if( o1 == null && o2 == null ) return 0; if( o1 == null && o2 != null ) return 1; if( o1 != null && o2 == null ) return -1; return o1.getName().compareTo( o2.getName() ); } } ); return Collections.unmodifiableList(allFunctionDescriptions); } FunctionFinder(Hints hints); List<FunctionName> getAllFunctionDescriptions(); FunctionName findFunctionDescription(String name ); Function findFunction(String name); Function findFunction(String name, List<org.opengis.filter.expression.Expression> parameters); Function findFunction(String name, List<org.opengis.filter.expression.Expression>  parameters, Literal fallback); }
FunctionFinder { public List<FunctionName> getAllFunctionDescriptions(){ Set<FunctionFactory> functionFactories = CommonFactoryFinder.getFunctionFactories(null); List<FunctionName> allFunctionDescriptions = new ArrayList<FunctionName>(); for (FunctionFactory factory : functionFactories) { List<FunctionName> functionNames = factory.getFunctionNames(); allFunctionDescriptions.addAll( functionNames ); } Collections.sort( allFunctionDescriptions, new Comparator<FunctionName>() { public int compare(FunctionName o1, FunctionName o2) { if( o1 == null && o2 == null ) return 0; if( o1 == null && o2 != null ) return 1; if( o1 != null && o2 == null ) return -1; return o1.getName().compareTo( o2.getName() ); } } ); return Collections.unmodifiableList(allFunctionDescriptions); } FunctionFinder(Hints hints); List<FunctionName> getAllFunctionDescriptions(); FunctionName findFunctionDescription(String name ); Function findFunction(String name); Function findFunction(String name, List<org.opengis.filter.expression.Expression> parameters); Function findFunction(String name, List<org.opengis.filter.expression.Expression>  parameters, Literal fallback);  }