public void addAll(Functions copy) { if (copy == null) return; if (copy.getFunctionNames() != null) { for (FunctionName functionName : copy.getFunctionNames()) { this.functionNames.add(new FunctionNameImpl(functionName)); } } }
public Object visit(Function function, Object extraData) { ScalarCapabilities scalar = capabilities.getScalarCapabilities(); if (scalar == null) return false; ArithmeticOperators operators = scalar.getArithmeticOperators(); if (operators == null) return false; Functions functions = operators.getFunctions(); if (functions == null) return false; // Note that only function name is checked here FunctionName found = functions.getFunctionName(function.getName()); // And that's enough to assess if the function is supported return found != null; }
public Object visit(Function function, Object extraData) { ScalarCapabilities scalar = capabilities.getScalarCapabilities(); if (scalar == null) return false; ArithmeticOperators operators = scalar.getArithmeticOperators(); if (operators == null) return false; Functions functions = operators.getFunctions(); if (functions == null) return false; // Note that only function name is checked here FunctionName found = functions.getFunctionName(function.getName()); // And that's enough to assess if the function is supported return found != null; }
public Object getProperty(Object object, QName name) throws Exception { if ("Function_Names".equals(name.getLocalPart()) || "FunctionNames".equals(name.getLocalPart()) /* 1.1 */) { Functions functions = (Functions) object; return functions.getFunctionNames(); } return null; } }
public Object visit( Function function, Object extraData ) { ScalarCapabilities scalar = capabilities.getScalarCapabilities(); if( scalar == null ) return false; ArithmeticOperators operators = scalar.getArithmeticOperators(); if( operators == null ) return false; Functions functions = operators.getFunctions(); if( functions == null ) return false; // Note that only function name is checked here FunctionName found = functions.getFunctionName( function.getName() ); // And that's enough to assess if the function is supported return found != null; }
public FunctionsImpl(Functions copy) { this.functionNames = new HashSet<FunctionName>(); if (copy.getFunctionNames() != null) { for (FunctionName functionName : copy.getFunctionNames()) { this.functionNames.add(new FunctionNameImpl(functionName)); } } }
public Object visit( Function function, Object extraData ) { ScalarCapabilities scalar = capabilities.getScalarCapabilities(); if( scalar == null ) return false; ArithmeticOperators operators = scalar.getArithmeticOperators(); if( operators == null ) return false; Functions functions = operators.getFunctions(); if( functions == null ) return false; // Note that only function name is checked here FunctionName found = functions.getFunctionName( function.getName() ); // And that's enough to assess if the function is supported return found != null; }
public void testParse() throws Exception { Element element = FilterMockData.element(document, document, new QName(OGC.NAMESPACE, "Functions")); FilterMockData.functionNames(document, element); Functions functions = (Functions) parse(OGC.FunctionsType); assertEquals(2, functions.getFunctionNames().size()); }
public void testParse() throws Exception { Element element = FilterMockData.element(document, document, new QName(OGC.NAMESPACE, "Functions")); FilterMockData.functionNames(document, element); Functions functions = (Functions) parse(OGC.FunctionsType); assertEquals(2, functions.getFunctionNames().size()); }
public void addAll( Functions copy ) { if( copy == null ) return; if( copy.getFunctionNames() != null ){ for( FunctionName functionName : copy.getFunctionNames() ) { this.functionNames.add( new FunctionNameImpl( functionName )); } } } @Override
public FunctionsImpl( Functions copy ) { this.functionNames = new HashSet<FunctionName>(); if( copy.getFunctionNames() != null ){ for( FunctionName functionName : copy.getFunctionNames() ) { this.functionNames.add( new FunctionNameImpl( functionName )); } } }
public Object getProperty(Object object, QName name) throws Exception { if ("Function_Names".equals(name.getLocalPart()) || "FunctionNames".equals(name.getLocalPart()) /* 1.1 */) { Functions functions = (Functions) object; return functions.getFunctionNames(); } return null; } }