Method and apparatus for converting objects between weakly and strongly typed programming frameworks
First Claim
Patent Images
1. A method for converting strongly typed objects for use in weakly typed frameworks, the method comprising:
- receiving an object input parameter that is a strongly typed object for conversion;
receiving a keyword input parameter for identifying properties and fields of the strongly typed object to be used in conversion;
invoking a mapping method for determining a Property Definition Dictionary and a Field Definition Dictionary based upon the object input parameter and the keyword input parameter;
creating the weakly typed object;
modifying property values associated with the weakly typed object based upon name and property definitions in the Property Definition Dictionary; and
modifying field values associated with the weakly typed object based upon name and field definitions in the Field Definition Dictionary.
0 Assignments
0 Petitions
Accused Products
Abstract
A mapping method for converting objects in order to optimize utilization of a programming environment on an associated platform includes the steps of identifying a strongly typed object and a type of conversion. A name of a weakly typed object is based upon an attribute associated with a target object and reflection is used on the strongly typed object to obtain properties of the object input parameter. Default names are assigned and stored based upon the obtained properties in a dictionary cache. The dictionary cache is used to complete attributes associated with new object for use in the programming environment.
-
Citations
34 Claims
-
1. A method for converting strongly typed objects for use in weakly typed frameworks, the method comprising:
-
receiving an object input parameter that is a strongly typed object for conversion;
receiving a keyword input parameter for identifying properties and fields of the strongly typed object to be used in conversion;
invoking a mapping method for determining a Property Definition Dictionary and a Field Definition Dictionary based upon the object input parameter and the keyword input parameter;
creating the weakly typed object;
modifying property values associated with the weakly typed object based upon name and property definitions in the Property Definition Dictionary; and
modifying field values associated with the weakly typed object based upon name and field definitions in the Field Definition Dictionary. - View Dependent Claims (2, 3, 4)
-
-
5. A method for converting objects representing structured data input comprising the steps of:
-
examining, during runtime by reflection, attributes associated with an object for runtime information about code symbols, wherein the attributes have tags that add descriptions to the code symbols; and
converting the object associated with the code symbols based upon a result of the reflection, wherein the attributes include at least one attribute having a plurality of attribute parameters that specify how a conversion on the object is to be done. - View Dependent Claims (6, 7, 8, 9, 10, 11, 12, 13, 14)
-
-
15. A mapping method for ascertaining attributes related to objects in order to optimize utilization of a programming environment on an associated platform, the mapping method comprising the steps of:
-
receiving an object input parameter that identifies a strongly typed object involved in a conversion process;
receiving an iswritemode input parameter that identifies a type of conversion;
setting an astype output parameter based upon an attribute associated with a target object, wherein the astype output parameter indicates a name of a weakly typed object;
using reflection on the strongly typed object to obtain a first list representing properties of the object input parameter;
filtering the first list to include only readable and writable properties to create a first subset of the first list;
assigning and storing default names based upon the first subset in a dictionary cache along with a class name and the iswritemode input parameter, using reflection on the strongly typed object to obtain a second list of fieldinfo objects associated with the object input parameter;
filtering the second list to create a second subset of the second list based upon criteria;
if the iswritemode input parameter is true, then filtering the second subset to create a third list that includes only fieldinfo objects that represent fields that have an associated ActionScript attribute with an Access property set to Write or Both;
if the iswritemode input parameter is false, then filtering the second subset to create a third list that includes only those fieldinfo objects that represent fields that have an associated ActionScript attribute with the Access property set to Read or Both;
assigning names for each FieldInfo object in the third list;
storing the names for each FieldInfo object along with its associated FieldInfo object in a dictionary cache; and
using the dictionary cache to complete attributes associated with the target object. - View Dependent Claims (16, 17, 18, 19, 20, 21)
-
-
22. A method of responding to communications received in a remoting environment by a system operating in a web services environment, the method comprising:
-
(a) receiving, from a communications appliance, a communication including a first program object compatible with the remoting environment, said first program object comprising at least one attribute; and
(b) converting said first program object into a second program object compatible with the web services environment, by a process determined in response to said at least one attribute.
-
-
23. A method of providing multimedia content at a communications appliance, the method comprising:
-
(a) executing at said communications appliance an S-module operable to send to said remote system a program object comprising at least one attribute for controlling a conversion of said program object at said remote system to permit said remote system to handle said program object; and
(b) causing said communications appliance to receive a multimedia object determined by said program object, from said remote system; and
(c) causing said communications appliance to present multimedia content defined by said multimedia object at said communications appliance.
-
-
24. A server for facilitating providing information in response to a user having a client associated therewith, wherein the server and the client communicate via a distributed computing network, and wherein the server comprises:
-
(a) a memory storing an instruction set and a plurality of s-modules; and
(b) a processor for running the instruction set, the processor being in communication with the memory and the distributed computing network, wherein the processor is operative to;
(i) receive a content parameter from the client;
(ii) create and open a window on the client;
(iii) designate an s-module based upon a content parameter;
(iv) send the designated s-module to the client;
(v) receive a reply based upon receipt of the designated s-module; and
(vi) cause content associated with the designated s-module to be displayed in the window.
-
-
25. A method for converting values associated with a weakly typed object into properties associated with a strongly typed object in accordance with a strongly typed framework, the method comprising:
-
creating the strongly typed object;
determining the properties according to the attribute parameters associated with the strongly typed object by reflection; and
populating the properties based upon the values associated with the weakly typed object. - View Dependent Claims (26, 27, 28, 29, 30)
-
-
31. A server for converting a strongly typed object for use in a weakly typed environment, wherein the server is operatively connected to a distributed computing network, and wherein the server comprises:
-
(a) a memory storing an instruction set; and
(b) a processor for running the instruction set, the processor being in communication with the memory and the distributed computing network, wherein the processor is operative to;
i) receiving an object input parameter that is a strongly typed object for conversion;
ii) receiving a keyword input parameter for identifying properties and fields of the strongly typed object to be used in conversion;
iii) invoking a mapping method for determining a Property Definition Dictionary and a Field Definition Dictionary based upon the object input parameter and the keyword input parameter;
iv) creating the weakly typed object;
v) modifying property values associated with the weakly typed object based upon name and property definitions in the Property Definition Dictionary; and
vi) modifying field values associated with the weakly typed object based upon name and field definitions in the Field Definition Dictionary.
-
-
32. A system for ascertaining attributes related to objects in order to optimize utilization of a programming environment on an associated platform, the system comprising:
-
first means for receiving an object input parameter that identifies a strongly typed object involved in a conversion process;
second means for receiving an iswritemode input parameter that identifies a type of conversion;
third means for setting an astype output parameter based upon an attribute associated with a target object, wherein the astype output parameter indicates a name of a weakly typed object;
fourth means for using reflection on the strongly typed object to obtain a first list representing properties of the object input parameter;
fifth means for filtering the first list to include only readable and writable properties to create a first subset of the first list;
sixth means for assigning and storing default names based upon the first subset in a dictionary cache along with a class name and the iswritemode input parameter, seventh means for using reflection on the strongly typed object to obtain a second list of fieldinfo objects associated with the object input parameter;
eigth means for filtering the second list to create a second subset of the second list based upon criteria, wherein if the iswritemode input parameter is true, then filtering the second subset to create a third list that includes only fieldinfo objects that represent fields that have an associated ActionScript attribute with an Access property set to Write or Both;
if the iswritemode input parameter is false, then filtering the second subset to create a third list that includes only those fieldinfo objects that represent fields that have an associated ActionScript attribute with the Access property set to Read or Both;
ninth means for assigning names for each FieldInfo object in the third list;
tenth means for storing the names for each FieldInfo object along with its associated FieldInfo object in a dictionary cache; and
eleventh means for using the dictionary cache to complete attributes associated with the target object. - View Dependent Claims (33)
-
-
34. A program product for use in a computer system that executes program steps recorded in a computer-readable medium to convert values associated with a weakly typed object into properties associated with a strongly typed object in accordance with a strongly typed framework, the program product comprising:
-
a recordable media for storing a program; and
the program of computer-readable instructions executable by the computer system to perform steps including;
creating the strongly typed object;
determining the properties according to the attribute parameters associated with the strongly typed object by reflection; and
populating the properties based upon the values associated with the weakly typed object.
-
Specification