Method, system, and program for interfacing with elements in a document
AssigneeInternational Business Machines Corporation
InventorI-Shin Andy Wang
Life of this patent
Estimating the term…
Abstract
Disclosed is a system, method, and program for generating an interface to elements in a document. The document defines a relationship of the elements and at least one attribute for each element. A class is generated for at least one element to implement methods from information provided on elements in the document and a mapping indicating at least one element in the document to map to a class. The at least one indicated element in the document for which the class is generated can be accessed and affected by the methods implemented in the class.
Claims30
A method for generating an interface to elements in a document, wherein the document defines a relationship of the elements and at least one attribute for each element, comprising:
- providing a mapping indicating at least one element in the document to map to a class and interface to generate for the class, wherein the interface defines methods to access the element for which the class is generated, and wherein each element comprises a logical part of the document having a marked start and end;
- and
- generating the class and the interface implementing methods for the at least one element from information provided on elements in the document and the mapping, wherein the at least one indicated element in the document for which the class is generated can be accessed and affected by the methods implemented in the class.
A system for generating an interface to elements in a document, comprising:
- a memory including:
- (i) the document, wherein the document defines a relationship of the elements and at least one attribute for each element, and wherein each element comprises a logical part of the document having a marked start and end;
- and
- (ii) a mapping indicating at least one element in the document to map to a class and an interface to generate for the class;
- means for generating the class and the interface implementing methods for the at least one element from information provided on elements in the document and the mapping, wherein the at least one indicated element in the document for which the class is generated can be accessed and affected by the methods implemented in the class.
An article of manufacture for use in generating an interface to elements in a document, wherein the document defines a relationship of the elements and at least one attribute for each element, the article of manufacture comprising computer readable storage media including at least one computer program embedded therein that is capable of causing a processor to perform:
- providing a mapping indicating at least one element in the document to map to a class and an interface to generate for the class, wherein the interface defines methods to access the element for which the class is generated, and wherein each element comprises a logical part of the document having a marked start and end;
- and
- generating the class and the method implementing methods for the at least one element from information provided on elements in the document, wherein the at least one indicated element in the document for which the class is generated can be accessed and affected by the methods implemented in the class.
Dependencies are inferred from the claim text.