Community
Participate
Working Groups
There are some functions with Any parameters, but really they only want a certain type of argument, such as records. It would be cleaner and more user-friendly if we could make the type of the parameters be something like AnyRecord or AnyStructPart. There should be an extensible way to do this, maybe by using the ProxyTypes. eglx.xml.XMLLib and json lib can convert records, handlers, dictionaries, and libraries so it really needs to be AnyStructPart or Dictionary. egls.services.ServiceLib.bindService the 2nd parameter wants to be an Interface or a Service not an Any. eglx.jws.SoapEnvelope both any's want to be a AnyStructPart.
When the binders and validators are rewritten, much of this will be done automatically (users will be able to use anyStruct, when they want a parm tha encompasses all structure types). I am deferring this to future.
Tim, should this be considered for the .8 release?
AnyRecord was already supported, and I added code to support using AnyStruct in EGL code. It is compatible with any StructPart in the MOF model. http://git.eclipse.org/c/edt/org.eclipse.edt.git/commit/?id=de68f95f91bd79d52492450e8c4eaa87ff732aa2
Yay.