摘要 |
<p>An apparatus and a method for dynamically generating an application program interface. The apparatus comprises: an external interface, connected with an interface description interpreter, receiving an interface description file and outputting it to the interface description interpreter; the interface description interpreter, connected with the external interface, receiving the interface description file from the external interface, and parsing the interface description file to obtain the correlative information of the interface element based on the preset description definition for an interface element; an interface generator, connected with the interface description interpreter, calling pre-encapsulated interface element codes to create and set the interface elements based on the correlative information of the interface elements, making layout for the interface elements, generating the application program interface. The apparatus and the method can generate the application program interface dynamically, reduce the coupling degree of the logic code and the interface code considerably, and make the design of the application program interface more flexible.</p> |