Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353401 - Add superclasses like AnyRecord and AnyStructPart
Summary: Add superclasses like AnyRecord and AnyStructPart
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Justin Spadea CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-29 08:25 EDT by Matt Heitz CLA
Modified: 2017-02-23 14:17 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.