Hi all, Transitioning from the geotools FunctionExpression to geoapi Function has raised an issue. The FunctionExpression interface had the "getNumArgs()" method which returns the number of arguments the function can take. The api was also mutable which meant I could create the function, and then set its arguments.
However, with Function I don't have this ability. The Function interface is immutable, which means that I cant create an instance of a function without having the parameters that I intend to evaluate it with. The number of arguments would then be available via getParameters().size(). The underlying problem is that in a Filter capabilities document one needs to declare which functions are available and how many arguments they have. There is really no way to do this with this api. So... any ideas on how to proceed? Should we make Function "semi mutable", in that you can create one without specifying any parameters, and then call #getParamters().add( ... ). I guess we would also need a method for the number of parameters. -Justin -- Justin Deoliveira [EMAIL PROTECTED] The Open Planning Project http://topp.openplans.org ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel