Extension of parsable structures
First Claim
1. In a computer system capable of parsing a parsable structure, a method for coupling an external object to the parsable structure, the method comprising steps of:
- identifying a reference to the external object in the parsable structure;
locating the external object based on the reference;
determining that the external object comprises an object-side object interface indicating that the external object is suitable for inclusion in the parsable structure, wherein the object-side object interface comprises an object initialization routine; and
executing the object initialization routine to provide to the external object an identification of a structure-side object interface.
2 Assignments
0 Petitions
Accused Products
Abstract
A bilateral interface may comprise an object interface and, optionally, a language interface. The object interface comprises at least an object-side object interface to be included in an external object, and a structure-side object interface to be included in a parsable structure. When executed, an object initialization routine included in the object-side object interface provides an identification of the structure-side object interface to the external object. Conversely, a structure initialization routine included in the structure-side object interface provides an identification of at least one object interaction routine to the external object. The external object can then invoke the at least one object interaction routine to interact with the parsable structure. The language interface is similarly constructed. The bilateral interface of the present invention provides much greater extensibility for parsable structures than was previously possible and provides, for example, for the addition of customized keywords.
209 Citations
11 Claims
-
1. In a computer system capable of parsing a parsable structure, a method for coupling an external object to the parsable structure, the method comprising steps of:
-
identifying a reference to the external object in the parsable structure;
locating the external object based on the reference;
determining that the external object comprises an object-side object interface indicating that the external object is suitable for inclusion in the parsable structure, wherein the object-side object interface comprises an object initialization routine; and
executing the object initialization routine to provide to the external object an identification of a structure-side object interface. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
executing a structure initialization routine forming a part of the structure-side object interface, wherein the structure initialization routine provides to the external object an identification of at least one object interaction routine that allows the external object to interact with the parsable structure.
-
-
3. The method of claim 1, further comprising steps of:
executing a notification routine forming a part of the object-side object interface to provide notifications to the external object.
-
4. The method of claim 1, wherein the parsable structure comprises an XML tree.
-
5. The method of claim 1, wherein the parsable structure comprises a schema.
-
6. The method of claim 1, wherein the parsable structure comprises an XSL stylesheet.
-
7. The method of claim 1, wherein the external object comprises an object-side language interface, the object-side language interface comprising a language initialization routine, the method further comprising a step of:
executing the language initialization routine to provide the external object an identification of a structure-side language interface that comprises at least one language interaction routine.
-
8. The method of claim 7, wherein the object-side language interface comprises an execution routine that accesses the at least one language interaction routine to implement customized keyword functionality included in the external object.
-
9. The method of claim 7, wherein the external object, via a bilateral interface comprising the object-side language interface and the structure-side language interface, provides compiled code to a compiler operating on the parsable structure.
-
10. The method of claim 7, wherein the external object, via a bilateral interface comprising the object-side language interface and the structure-side language interface, provides information regarding state manipulation to a parser operating on the parsable structure.
-
11. The method of claim 7, wherein the external object, via a bilateral interface comprising the object-side language interface and the structure-side language interface, provides information regarding at least one of execution implementation and runtime stack manipulation to an interpreter operating on the parsable structure.
Specification