|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.blackberry.api.pdap.contactlinking.AbstractLinkableContact
net.rim.blackberry.api.pdap.contactlinking.DefaultLinkableContact
public class DefaultLinkableContact
A simple implementation of LinkableContact.
| Field Summary |
|---|
| Fields inherited from interface net.rim.blackberry.api.pdap.contactlinking.LinkableContact |
|---|
EMAIL, HOME_PHONE, HOME_PHONE2, MOBILE_PHONE, NAME, OTHER_PHONE, WORK_PHONE, WORK_PHONE2 |
| Constructor Summary | ||
|---|---|---|
|
DefaultLinkableContact(String contactID)
Creates a new DefaultLinkableContact with the supplied
contact ID. |
|
|
DefaultLinkableContact(String contactID,
long applicationID)
Creates a new DefaultLinkableContact with the supplied
contact ID and application ID. |
|
| Method Summary | ||
|---|---|---|
|
long |
getApplicationID()
Gets the unique ID that identifies the application this contact is from. |
|
String |
getContactID()
Gets the ID of this contact. |
|
void |
setApplicationID(long applicationID)
Sets this contact's application ID. |
|
void |
setContactID(String contactID)
Sets this contact's ID. |
| Methods inherited from class net.rim.blackberry.api.pdap.contactlinking.AbstractLinkableContact |
|---|
getString, setString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.rim.blackberry.api.pdap.contactlinking.LinkableContact |
|---|
getString |
| Constructor Detail |
|---|
public DefaultLinkableContact(String contactID)
DefaultLinkableContact with the supplied
contact ID. Before this contact can be used, its
application ID must be set.
contactID - The unique ID of this contact.
NullPointerException - if contactID is null.
public DefaultLinkableContact(String contactID,
long applicationID)
DefaultLinkableContact with the supplied
contact ID and application ID.
contactID - The unique ID of this contact.applicationID - The unique ID of the application this contact is from.
NullPointerException - if contactID is null.| Method Detail |
|---|
public void setApplicationID(long applicationID)
LinkableContact must have an application ID.
applicationID - The ID of the application this contact is from.public long getApplicationID()
LinkableContact must have an application ID.
getApplicationID in interface LinkableContactpublic void setContactID(String contactID)
LinkableContact must
have a contact ID.
contactID - The unique ID that identifies this contact in your
application.
NullPointerException - if contactID is null.public String getContactID()
LinkableContact must have a contact ID.
getContactID in interface LinkableContact
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.