摘要:
Embodiments of the invention provide a dictionary, which may be modified by a developer, that provides a mapping of the generation routine to be performed and a pointer or identifier of the generator employed for the specified generation routine. As will be appreciated, embodiments of the invention may employ a dictionary which comprises a plurality of generation routine-code generator identity data pairs. A generator routine may be, for example, associated with the generation of source code associated with a particular object class, fields, methods, method bodies, procedures, comments, subroutines and the like. By modifying a generation routine-code generator identity data pair in a generator dictionary, a developer or user is able to modify the source code (e.g., the structure and/or content of the source) which is ultimately generated by the generator.
摘要:
A fault-tolerant method of bottom-up editing whereby simultaneous display of the GUI view and source code view are available, and wherein real-time bottom-up editing is provided. In accordance with a preferred embodiment of the present invention, changes to the source code are isolated, first by isolating and analyzing source code according to groupings associated with the structure of the language used for the source code and then isolating and analyzing individual lines of source code within these groupings. If there are no errors in a particular grouping of source code, the changes in the grouping are automatically applied to the GUI. If errors are found in a grouping, the grouping is further analyzed to determine which lines contain the error. Semantic and syntactic errors are thereby isolated and, where found, are ignored. However, correct lines of the source code are also identified and thereby applied to the GUI for interpretation and display. Thus, correct edits to the source code are displayed in real-time while errors are ignored.
摘要:
The concept of “renderers” and “translators” is introduced in connection with bidirectional conversion between object models and XML. A renderer embodies the logic responsible for mediating the parser specific APIs for reading and writing XML. It utilizes a plurality of translator objects, which embody the mapping information needed to convert the XML into object model instances. The translator objects themselves do not contain “knowledge” of parser implementations; thus, the translators are common and can be shared and reused by any and all renderer implementations. Since each translator embodies the knowledge and rules regarding how to convert an XML model to an object model, and how to convert object models to XML, it is thus independent of the particular renderer that is being used, whether it be SAX, DOM, or some other renderer.
摘要:
Embodiments of the invention provide a dictionary, which may be modified by a developer, that provides a mapping of the generation routine to be performed and a pointer or identifier of the generator employed for the specified generation routine. As will be appreciated, embodiments of the invention may employ a dictionary which comprises a plurality of generation routine-code generator identity data pairs. A generator routine may be, for example, associated with the generation of source code associated with a particular object class, fields, methods, method bodies, procedures, comments, subroutines and the like. By modifying a generation routine-code generator identity data pair in a generator dictionary, a developer or user is able to modify the source code (e.g., the structure and/or content of the source) which is ultimately generated by the generator.
摘要:
A method and apparatus for synchronizing an XML document object model with the corresponding object model on the fly and in real time such that changes in either the document object model or the object model can be immediately reflected in the other without re-parsing the XML document. The invention utilizes a series of DOM/object model adapter software modules, each responsible for one (or more) object model properties and document object model nodes, respectively. Each adapter is registered to receive notification of a change in an object model property or DOM node for which it is responsible and updates the corresponding DOM node or object model property, respectively.
摘要:
A fault-tolerant method of bottom-up editing whereby simultaneous display of the GUI view and source code view are available, and wherein real-time bottom-up editing is provided. In accordance with a preferred embodiment of the present invention, changes to the source code are isolated, first by isolating and analyzing source code according to groupings associated with the structure of the language used for the source code and then isolating and analyzing individual lines of source code within these groupings. If there are no errors in a particular grouping of source code, the changes in the grouping are automatically applied to the GUI. If errors are found in a grouping, the grouping is further analyzed to determine which lines contain the error. Semantic and syntactic errors are thereby isolated and, where found, are ignored. However, correct lines of the source code are also identified and thereby applied to the GUI for interpretation and display. Thus, correct edits to the source code are displayed in real-time while errors are ignored.
摘要:
The invention provides an efficient method and apparatus for exchanging data between two entities, such as two application programs or a resource library and an application program. The invention provides a mechanism for populating a complex object model implementation in accordance with the particular data format preferred by the receiving entity from one or more external data formats on the fly responsive to a request for data. The method and apparatus allow the registration of resource factories which can produce resources through mechanisms other than the traditional parsing of a file. One implementation of this is using the URL scheme to identify the factory to handle a request, and allowing that factory to create a specialized Java package resource.The method and apparatus allow the registration of reflection adapter factories, and specialized model classes which work with those adapters, for the purpose of computing object attributes and populating the Java package resource with them. One implementation of this mechanism is a set of Java Reflection adapters which compute the properties of JavaClass model objects from the JDK reflection API'S.
摘要:
A fault-tolerant method of bottom-up editing whereby simultaneous display of the GUI view and source code view are available, and wherein real-time bottom-up editing is provided. In accordance with a preferred embodiment of the present invention, changes to the source code are isolated, first by isolating and analyzing source code according to groupings associated with the structure of the language used for the source code and then isolating and analyzing individual lines of source code within these groupings. If there are no errors in a particular grouping of source code, the changes in the grouping are automatically applied to the GUI. If errors are found in a grouping, the grouping is further analyzed to determine which lines contain the error. Semantic and syntactic errors are thereby isolated and, where found, are ignored. However, correct lines of the source code are also identified and thereby applied to the GUI for interpretation and display. Thus, correct edits to the source code are displayed in real-time while errors are ignored.
摘要:
Embodiments of the invention provide a dictionary, which may be modified by a developer, that provides a mapping of the generation routine to be performed and a pointer or identifier of the generator employed for the specified generation routine. As will be appreciated, embodiments of the invention may employ a dictionary which comprises a plurality of generation routine-code generator identity data pairs. A generator routine may be, for example, associated with the generation of source code associated with a particular object class, fields, methods, method bodies, procedures, comments, subroutines and the like. By modifying a generation routine-code generator identity data pair in a generator dictionary, a developer or user is able to modify the source code (e.g., the structure and/or content of the source) which is ultimately generated by the generator.