发明名称 System and method for transforming hierarchical objects
摘要 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.
申请公布号 US9069739(B2) 申请公布日期 2015.06.30
申请号 US200912494360 申请日期 2009.06.30
申请人 SAP Portals Israel Ltd. 发明人 Shribman Aidan Eli;Helfman Nadav;Igelka Or
分类号 G06F17/00;G06F17/22;G06F9/44 主分类号 G06F17/00
代理机构 代理人
主权项 1. A computerized method for transforming a source object into a destination object, comprising: receiving the source object and the destination object, wherein the source object and the destination object are derived from a class hierarchy comprising at least one element and further comprising method members configured to operate on the at least one element and at least the at least one element of the source object is predeterminately annotated; subject to the source object and the destination object having at least one element of attribute type, copying the value of the source object to the destination object by invoking at least one of the method members derived from the class hierarchy and contained within the source object; subject to the source object and the destination object having at least one element of node type which comprises at least one member, for each member of the destination object: invoking at least one of the method members derived from the class hierarchy and contained within the source object, thereby locating in the source object a corresponding member having a corresponding name, andtransforming by a first transformation the at least one element of node type and the at least one corresponding member; subject to the source object and the destination object having at least one element of list type, the source object adapted to contain list elements of a source type and the destination object adapted to contain list elements of a second type, for each list element of the source object: invoking at least one of the method members derived from the class hierarchy and contained within the source object, thereby creating a corresponding default element of the second type and adding the default element to the destination object, andtransforming by a second transformation the list element and the corresponding default element; and invoking a user-implemented transformation routine; and wherein the method is automatically operative in response to commands from a command line interface.
地址 Ra'anana IL