KickJava   Java API By Example, From Geeks To Geeks.

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


1 package net.suberic.pooka;
2
3 /**
4  * An Address Book Entry.
5  */

6 public interface AddressBookEntry {
7
8   /**
9    * Gets a property on the AddressBookEntry.
10    */

11   public String JavaDoc getProperty(String JavaDoc propertyName);
12
13
14   /**
15    * Sets a property on the AddressBookEntry.
16    */

17   public void setProperty(String JavaDoc propertyName, String JavaDoc value);
18
19   /**
20    * Gets the InternetAddresses associated with this AddressBookEntry.
21    */

22   public javax.mail.internet.InternetAddress JavaDoc[] getAddresses();
23
24   /**
25    * Gets the String that's a proper representation of the address(es)
26    * in this AddressBookEntry.
27    */

28   public String JavaDoc getAddressString();
29
30   /**
31    * Gets the PersonalName property associated with this AddressBookEntry.
32    */

33   public String JavaDoc getPersonalName();
34
35   /**
36    * Gets the FirstName property associated with this AddressBookEntry.
37    */

38   public String JavaDoc getFirstName();
39
40   /**
41    * Gets the LastName property associated with this AddressBookEntry.
42    */

43   public String JavaDoc getLastName();
44
45   /**
46    * sets the InternetAddress associated with this AddressBookEntry.
47    */

48   public void setAddress(javax.mail.internet.InternetAddress JavaDoc newAddress);
49
50   /**
51    * sets the InternetAddresses associated with this AddressBookEntry.
52    */

53   public void setAddresses(javax.mail.internet.InternetAddress JavaDoc[] newAddress);
54
55   /**
56    * Gets the PersonalName property associated with this AddressBookEntry.
57    */

58   public void setPersonalName(String JavaDoc newName);
59
60   /**
61    * Gets the FirstName property associated with this AddressBookEntry.
62    */

63   public void setFirstName(String JavaDoc newName);
64
65   /**
66    * Gets the LastName property associated with this AddressBookEntry.
67    */

68   public void setLastName(String JavaDoc newName);
69
70   /**
71    * Gets a Properties representation of the values in the AddressBookEntry.
72    */

73   public java.util.Properties JavaDoc getProperties();
74
75   /**
76    * <p>Gets the ID of this AddressBookEntry. This is the ID that will
77    * be searched by default, that can be entered into the To: field, etc.</p>
78    */

79   public String JavaDoc getID();
80
81   /**
82    * <p>Sets the ID of this AddressBookEntry. This is the ID that will
83    * be searched by default, that can be entered into the To: field, etc.</p>
84    */

85   public void setID(String JavaDoc newID);
86   
87 }
88
Popular Tags