General PIM API Design

The basic idea of the API is to store entries such as contacts, events, and to-do elements in an appropriate database. In order to achieve this, the PIM API contains an interface PIMList providing methods to add, delete, and enumerate all the entries contained in the list. The concrete implementations of PIMList contained in the PIM API are ContactLists to store contacts, EventLists to store events, and ToDoLists to store to-do items. The PIM class provides static methods such as openContactList() to access the different list types.

PIMLists contain objects implementing the PIMElement interface. PIMElement encapsulates the common properties of the different PIM elements such as Contacts, Events, and ToDos. The interface ...

Get Java™ 2 Micro Edition Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.