net.rim.blackberry.api.pdap.contactlinking
Class AbstractLinkableContact

java.lang.Object
  extended by net.rim.blackberry.api.pdap.contactlinking.AbstractLinkableContact
All Implemented Interfaces:
LinkableContact
Direct Known Subclasses:
DefaultLinkableContact

public abstract class AbstractLinkableContact
extends Object
implements LinkableContact

Provides default implementations for some of the methods in the LinkableContact interface.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 5.0.0

Field Summary
 
Fields inherited from interface net.rim.blackberry.api.pdap.contactlinking.LinkableContact
EMAIL, FAX_PHONE, FAX_PHONE2, HOME_PHONE, HOME_PHONE2, MOBILE_PHONE, MOBILE_PHONE2, NAME, OTHER_PHONE, PIN, WORK_PHONE, WORK_PHONE2
 
Constructor Summary
Category: Signed AbstractLinkableContact()
          Creates a new AbstractLinkableContact object.
 
Method Summary
Category: Signed  String getString(int key)
          Gets the value of the LinkableContact attribute matching the supplied key.
Category: Signed  void setString(int key, String value)
          Sets the attribute specified by key to the supplied String.
 
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
getApplicationID, getContactID
 



Constructor Detail

AbstractLinkableContact

public AbstractLinkableContact()
Creates a new AbstractLinkableContact object.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 6.0.0


Method Detail

getString

public String getString(int key)
Gets the value of the LinkableContact attribute matching the supplied key.

Specified by:
getString in interface LinkableContact
Parameters:
key - The key for the attribute to retrieve.
Returns:
The value corresponding to the supplied key or null if no value has been set.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 5.0.0

setString

public void setString(int key,
                      String value)
Sets the attribute specified by key to the supplied String.

Parameters:
key - Identifies the attribute to set.
value - The value to set the attribute to.
Throws:
NullPointerException - if value is null
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 5.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal