Method and system for interfacing to pre-existing software code
First Claim
1. A method of interfacing to pre-existing software code, comprising:
- providing a software wrapper capable of inheriting from at least a first application program interface (API) and a second API;
delegating to a preexisting enumeration of objects for a call to the first API;
creating a vector identifying elements of the enumeration;
maintaining a positional cursor based on a call to the second API;
comparing the positional cursor to the vector; and
selectively extracting one or more additional elements from the enumeration based on the comparison of the positional cursor and the vector.
1 Assignment
0 Petitions
Accused Products
Abstract
A software wrapper for interfacing to pre-existing software code is provided. The software wrapper is capable of inheriting from a first application program interface (API) and a second API. For calls to the first API, the software wrapper delegates to a pre-existing enumeration of objects. The wrapper creates a vector identifying elements of the enumeration. Iterators provided by the wrapper maintain positional cursors for calls to the second API. A comparison is made between each of the positional cursors and the vector. If a positional cursor exceeds the size of the vector, additional elements are extracted from the enumeration, placed in the vector, and returned on the second API. Otherwise, if the positional cursor is smaller than the vector size, the wrapper delegates directly to the vector. The first API can be a java-based enumeration API and the second API can be a java-based collection API.
18 Citations
21 Claims
-
1. A method of interfacing to pre-existing software code, comprising:
-
providing a software wrapper capable of inheriting from at least a first application program interface (API) and a second API;
delegating to a preexisting enumeration of objects for a call to the first API;
creating a vector identifying elements of the enumeration;
maintaining a positional cursor based on a call to the second API;
comparing the positional cursor to the vector; and
selectively extracting one or more additional elements from the enumeration based on the comparison of the positional cursor and the vector. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system, comprising:
-
a processor for executing a software program;
a memory, operatively coupled to the processor, storing the software program, wherein the software program comprises;
means for providing a first application program interface (API);
means for delegating to a pre-existing enumeration of objects for a call to the first API;
means for creating a vector identifying elements of the enumeration;
means for maintaining a positional cursor in response to a call to the second API;
means for comparing the positional cursor to the vector; and
means for selectively extracting one or more additional elements from the enumeration based on the comparison of the positional cursor and the vector. - View Dependent Claims (9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 21)
-
-
15. A computer program product in a computer-usable medium, comprising:
-
means for providing a first application program interface (API);
means for delegating to a pre-existing enumeration of objects for a call to the first API;
means for creating a vector identifying elements of the enumeration;
means for maintaining a positional cursor in response to a call to the second API;
means for comparing the positional cursor to the vector; and
means for selectively extracting one or more additional elements from the enumeration based on the comparison of the positional cursor and the vector.
-
Specification