发明名称 Method and system for implementing collection program interface for accessing a collection of data associated with a legacy enumeration application interface
摘要 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.
申请公布号 US6842905(B2) 申请公布日期 2005.01.11
申请号 US20010821109 申请日期 2001.03.29
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 KNUTSON JAMES I.;TRUTY GREGORY L.;VAN OOSTEN JAMES L.
分类号 G06F9/46;(IPC1-7):G06F9/00 主分类号 G06F9/46
代理机构 代理人
主权项
地址