KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > suberic > pooka > AddressBook


1 package net.suberic.pooka;
2
3 /**
4  * Defines the methods used to store Addresses.
5  */

6 public interface AddressBook {
7
8   public void configureAddressBook(String JavaDoc id);
9
10   /**
11    * Gets and appropriate AddressMatcher.
12    */

13   public AddressMatcher getAddressMatcher();
14
15   /**
16    * Adds an AddressBookEntry to the AddressBook.
17    */

18   public void addAddress(AddressBookEntry newEntry);
19
20   /**
21    * Removes an AddressBookEntry from the AddressBook.
22    */

23   public void removeAddress(AddressBookEntry removeEntry);
24
25   /**
26    * Gets the ID for this address book.
27    */

28   public String JavaDoc getAddressBookID();
29
30   /**
31    * Loads the AddressBook.
32    */

33   public void loadAddressBook() throws java.io.IOException JavaDoc, java.text.ParseException JavaDoc;
34
35   /**
36    * Saves the AddressBook.
37    */

38   public void saveAddressBook() throws java.io.IOException JavaDoc;
39
40   /**
41    * Creates a new, empty AddressBookEntry.
42    */

43   public AddressBookEntry newAddressBookEntry();
44
45 }
46
Popular Tags