GENERATION APPARATUS, PROGRAM, AND GENERATION METHOD
First Claim
1. A generation apparatus that generates a mapping between individual properties included in an object in a program and individual elements of a structured document, the generation apparatus comprising:
- an object tree generation unit configured to generate a tree structure representing hierarchical structure of the object by assigning the individual properties included in the object to nodes of the tree structure; and
a selection unit configured to select a mapping minimizing conversion cost of converting the tree structure of the object to a tree structure that includes the individual elements of the structured document as its nodes;
wherein the mapping is selected from mappings that associate the individual properties included in the object with the individual elements of the structured document.
1 Assignment
0 Petitions
Accused Products
Abstract
A generation apparatus that generates a mapping between individual properties included in an object in a program and individual elements of a structured document. The generation apparatus includes: an object tree generation unit that generates a tree structure representing hierarchical structure of the object by assigning the individual properties included in the object to nodes of the tree structure; and a selection unit that selects a mapping minimizing conversion cost of converting the tree structure of the object to a tree structure that includes the individual elements of the structured document as its nodes. The selection is from mappings that associate the individual properties included in the object with the individual elements of the structured document.
13 Citations
15 Claims
-
1. A generation apparatus that generates a mapping between individual properties included in an object in a program and individual elements of a structured document, the generation apparatus comprising:
-
an object tree generation unit configured to generate a tree structure representing hierarchical structure of the object by assigning the individual properties included in the object to nodes of the tree structure; and a selection unit configured to select a mapping minimizing conversion cost of converting the tree structure of the object to a tree structure that includes the individual elements of the structured document as its nodes; wherein the mapping is selected from mappings that associate the individual properties included in the object with the individual elements of the structured document. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13)
-
-
12. A generation apparatus that generates a mapping between individual properties included in an object in a program and individual elements of a structured document, the generation apparatus comprising:
-
a receiving unit configured to receive a function call with the object as an argument indicating that the object is to be converted to the structured document and the structured document transmitted; an object tree generation unit configured to generate a tree structure with respect to an array included in the object, said tree structure including, an array node having individual elements of the array as its child nodes that represents hierarchical structure of the object by assigning the individual properties included in the object to nodes of the tree structure; a document tree generation unit configured to generate a tree structure of the structured document that includes, as repetitive nodes, repetitive elements whose repetition is specified in the structured document from a schema describing hierarchical structure of the structured document; a mapping generation unit configured to generate a mapping that associates the array node in the tree structure of the object with the repetitive nodes in the tree structure of the structured document; a selection unit configured to select a mapping minimizing conversion cost of converting the tree structure of the object to the tree structure of the structured document generated by the document tree generation unit, said selection being based on mappings that associate the individual properties included in the object with the individual elements of the structured document; a conversion unit configured to convert the object to the structured document, which includes values of the individual properties of the object as values of the corresponding elements, said conversion being based on\ the mapping selected by the selection unit; and a transmission unit configured to transmit the structured document output by the conversion unit; wherein the mapping generation unit is configured to generate correspondences between nodes of a tree structure obtained by removing the child nodes of the array node from the tree structure of the object and nodes of a tree structure obtained by removing child nodes of the repetitive nodes from the tree structure of the structured document; and wherein the mapping generation unit is configured to generate correspondences between the child nodes of the array node and the child nodes of the repetitive nodes when the array node in the tree structure of the object has been associated with the repetitive nodes in the tree structure of the structured document.
-
-
14. A generation method for generating a mapping between individual properties included in an object in a program and individual elements of a structured document, the generation method comprising:
-
generating a first tree structure representing hierarchical structure of the object by assigning the individual properties included in the object to nodes of the first tree structure; and selecting a mapping which minimizes cost of conversion of the first tree structure to a second tree structure which includes the individual elements of the structured document as its nodes; wherein the selecting is from mappings that associate the individual properties included in the object with the individual elements of the structured document. - View Dependent Claims (15)
-
Specification