Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353401

Summary: Add superclasses like AnyRecord and AnyStructPart
Product: z_Archived Reporter: Matt Heitz <mheitz>
Component: EDTAssignee: Justin Spadea <jspadea>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: jspadea, pharmon, svihovec, tww
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Matt Heitz CLA 2011-07-29 08:25:48 EDT
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.
Comment 1 Paul Harmon CLA 2011-09-12 09:46:48 EDT
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.
Comment 2 Brian Svihovec CLA 2011-12-16 15:18:10 EST
Tim, should this be considered for the .8 release?
Comment 3 Justin Spadea CLA 2012-11-14 15:57:27 EST
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
Comment 4 Matt Heitz CLA 2012-11-14 16:02:34 EST
Yay.