System and method for transforming hierarchical objects
First Claim
1. A method for transforming a source object into a destination object, comprising:
- receiving the source object and the destination object;
subject to the source object and the destination object being of attribute type, copying the value of the source object to the destination object;
subject to the source object and the destination object being of node type which comprises at least one member, for each member of the destination object;
locating in the source object a corresponding member having a corresponding name; and
invoking the method for the member and the corresponding member;
subject to the source object and the destination object being of list type, the source object adapted to contain elements of a source type and the destination object adapted to contain elements of a second type, for each element of the source object;
creating a corresponding default element of the second type and adding the default element to the destination object; and
invoking the method for the element and the corresponding default element; and
invoking a user-implemented transformation routine.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and system for transforming a first object into a second object, comprising: receiving the source and second objects; subject to the objects being of attribute type, copying, the value of the source object to the second object; subject to the objects being of node type which comprises, for each member of the second object: locating a corresponding member having a corresponding name in the source object; and invoking the method for the member and the corresponding member; subject to the objects being of list type, the source object adapted to contain elements of a first type and the second object adapted to contain elements of a second type, for each element of the source object: creating a corresponding default element of the second type; and invoking the method for the element and the corresponding default element; and invoking a user-implemented transformation routine.
-
Citations
16 Claims
-
1. A method for transforming a source object into a destination object, comprising:
-
receiving the source object and the destination object; subject to the source object and the destination object being of attribute type, copying the value of the source object to the destination object; subject to the source object and the destination object being of node type which comprises at least one member, for each member of the destination object; locating in the source object a corresponding member having a corresponding name; and invoking the method for the member and the corresponding member; subject to the source object and the destination object being of list type, the source object adapted to contain elements of a source type and the destination object adapted to contain elements of a second type, for each element of the source object; creating a corresponding default element of the second type and adding the default element to the destination object; and invoking the method for the element and the corresponding default element; and invoking a user-implemented transformation routine. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system for transforming a source object into a destination object, comprising:
-
a component implementing a class hierarchy, wherein the source object and the destination object are derived from the class hierarchy; a base transformation component implementing automatic transformation of at least one element of the source object into at least one element of the destination object; and a framework for user-implemented transformation routine, for allowing a user to define transformation of at least one second element of the source object into at least one second element of the destination object. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A method for transforming a source hierarchical object into a destination hierarchical object, comprising:
-
receiving a source hierarchical object and a destination hierarchical object, the source hierarchical object and the destination hierarchical object having members of types selected from the group consisting of;
an attribute;
a node comprising at least one attribute, node or list member; and
a list adapted to contain at least one element, the at least one element being of type attribute or node;subject to the source hierarchical object and the destination hierarchical object being of attribute type, copying the value of the source hierarchical object to the destination hierarchical object; subject to the source hierarchical object and the destination hierarchical object being of node type which comprises at least one member, for each member of the hierarchical destination object; locating a corresponding member having a corresponding name in the source hierarchical object; and invoking the method for the member and the corresponding member; subject to the source hierarchical object and the destination hierarchical object being of list type, the source hierarchical object adapted to contain elements of a first type and the destination hierarchical object adapted to contain elements of a second type, for each element of the source hierarchical object; creating a corresponding default element of the second type; and invoking the method for the element and the corresponding default element; and invoking a user-implemented transformation routine.
-
-
16. A computer readable storage medium containing a set of instructions for a general purpose computer, the set of instructions comprising:
-
receiving a source object and a destination object; subject to the source object and the destination object being of attribute type, copying the value of the source object to the destination object; subject to the source object and the destination object being of node type which comprises at least one member, for each member of the destination object; locating a corresponding member having a corresponding name in the source object; and invoking the method for the member and the corresponding member; subject to the source object and the destination object being of list type, the source object adapted to contain elements of a first type and the destination object adapted to contain elements of a second type, for each element of the source object; creating a corresponding default element of the second type; and invoking the method for the element and the corresponding default element; and invoking a user-Implemented transformation routine.
-
Specification