Type convertor registry
First Claim
Patent Images
1. A computer implemented method of managing type conversion comprising the steps of:
- registering in a registry of type conversions a type converter for two given types using a tuple including a source type, a destination type and the type converter;
searching for a registered type converter in the registry of type converters using as a key a source type and a destination type for a desired type conversion;
returning a type converter for the key if a pre-registered type converter is found in the registry;
otherwise, searching for a composition of registered type converters from the registry which, when applied, will achieve the type conversion for the key defined by the source type and the destination type and returning a composition of type converters that applies each required type converter in sequence until a final type conversion is achieved.
1 Assignment
0 Petitions
Accused Products
Abstract
A generalized mechanism manages ad-hoc type conversions in computer software. A management framework improves type conversion tasks by enabling the modularization of this task by partitioning the work of defining an individual type convertor from the task of identifying and locating type convertors on demand. The details of how type convertors are applied on demand are also a function of the management framework.
23 Citations
6 Claims
-
1. A computer implemented method of managing type conversion comprising the steps of:
-
registering in a registry of type conversions a type converter for two given types using a tuple including a source type, a destination type and the type converter;
searching for a registered type converter in the registry of type converters using as a key a source type and a destination type for a desired type conversion;
returning a type converter for the key if a pre-registered type converter is found in the registry;
otherwise,searching for a composition of registered type converters from the registry which, when applied, will achieve the type conversion for the key defined by the source type and the destination type and returning a composition of type converters that applies each required type converter in sequence until a final type conversion is achieved. - View Dependent Claims (2)
-
-
3. A computer implemented method of managing type conversion comprising the steps of:
-
registering in a registry of type conversions a type converter for two given types using a tuple including source type, destination type and the type converter;
searching for a registered type converter in the registry of type converters using as a key a source type and a destination type for a desired type conversion;
returning a type converter for a key if a pre-registered type converter is found in the registry;
otherwise,searching a type lattice implied by registered type converters using the key defined by the source type and the destination type; and
returning a composition of type converters that applies each required type converter in sequence until a final type converter conversion is achieved. - View Dependent Claims (4)
-
-
5. A computer system for managing type conversion comprising:
-
a registry of type conversions storing type converters for two given types using a tuple including source type, destination type and type converter; and
a search engine for searching the registry of type conversions for a registered type converter using as a key a source type and a destination type for a desired type conversion, said search engine returning a type converter for a key if a pre-registered type converter is found in the registry;
otherwise,said search engine searching a type lattice implied by registered type converters using the key defined by the source type and the destination type and returning a composition of type converters that applies each required type converter in sequence until a final type conversion is achieved. - View Dependent Claims (6)
-
Specification