Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework
2.0.0.0.0

E36392-01

oracle.adf.model.datacontrols.device
Class Contact

Object
  extended by oracle.adf.model.datacontrols.device.Contact
All Implemented Interfaces:
JSONSerializable

public class Contact
extends Object
implements JSONSerializable

Contact class


Constructor Summary
Contact()
          Default Contact constructor
Contact(int id, int rawId, String displayName, ContactName name, String nickname, ContactField[] phoneNumbers, ContactField[] emails, ContactAddresses[] addresses, ContactField[] ims, ContactOrganization[] organizations, java.util.Date birthday, String note, ContactField[] photos, ContactField[] categories, ContactField[] urls)
          Contact constructor
Contact(oracle.adfmf.framework.contract.adf.JSONContact jsonContact)
          Contact constructor
 
Method Summary
 ContactAddresses[] getAddresses()
          Get contact addresses
 java.util.Date getBirthday()
          Get contact birthday
 ContactField[] getCategories()
          Get contact categories
 String getDisplayName()
          Get contact display name
 ContactField[] getEmails()
          Get contact emails
 int getId()
          Get contact id
 ContactField[] getIms()
          Get contact IM addresses
 ContactName getName()
          Get contact name
 String getNickname()
          Get contact nickname
 String getNote()
          Get contact note
 ContactOrganization[] getOrganizations()
          Get contact organizations
 ContactField[] getPhoneNumbers()
          Get contact phone numbers
 ContactField[] getPhotos()
          Get contact photos
 ContactField[] getUrls()
          Get contact URL's
 void setAddresses(ContactAddresses[] addresses)
          Set the value for contact addresses
 void setBirthday(java.util.Date birthday)
          Set the value for contact birthday
 void setCategories(ContactField[] categories)
          Set the value for contact categories
 void setDisplayName(String displayName)
          Set the value for contact display name
 void setEmails(ContactField[] emails)
          Set the value for contact emails
 void setIms(ContactField[] ims)
          Set the value for contact ims
 void setName(ContactName name)
          Set the value for contact name
 void setNickname(String nickname)
          Set the value for contact nick name
 void setNote(String note)
          Set the value for contact note
 void setOrganizations(ContactOrganization[] organizations)
          Set the value for contact organizations
 void setPhoneNumbers(ContactField[] phoneNumbers)
          Set the value for contact phone numbers
 void setPhotos(ContactField[] photos)
          Set the value for contact photos
 void setUrls(ContactField[] urls)
          Set the value for contact urls
 Object toJSON()
          Method to convert Contact object to JSON representation.
 String toString()
          Method to convert Contact object to string representation.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Contact

public Contact(oracle.adfmf.framework.contract.adf.JSONContact jsonContact)
Contact constructor

Parameters:
jsonContact - JSONContact object to be used to create Contact object

Contact

public Contact()
Default Contact constructor


Contact

public Contact(int id,
               int rawId,
               String displayName,
               ContactName name,
               String nickname,
               ContactField[] phoneNumbers,
               ContactField[] emails,
               ContactAddresses[] addresses,
               ContactField[] ims,
               ContactOrganization[] organizations,
               java.util.Date birthday,
               String note,
               ContactField[] photos,
               ContactField[] categories,
               ContactField[] urls)
Contact constructor

Parameters:
id - for the contact
rawId - for the contact
displayName - for the contact
name - for the contact
nickname - for the contact
phoneNumbers - for the contact
emails - for the contact
addresses - for the contact
ims - for the contact
organizations - for the contact
birthday - for the contact
note - for the contact
photos - for the contact
categories - for the contact
urls - for the contact
Method Detail

getId

public int getId()
Get contact id

Returns:
A globally unique identifier.

getDisplayName

public String getDisplayName()
Get contact display name

Returns:
The name of this Contact, suitable for display to end-users.

getName

public ContactName getName()
Get contact name

Returns:
An object containing all components of a person's name

getNickname

public String getNickname()
Get contact nickname

Returns:
A casual name to address the contact by

getPhoneNumbers

public ContactField[] getPhoneNumbers()
Get contact phone numbers

Returns:
An array of all the contact's phone numbers.

getEmails

public ContactField[] getEmails()
Get contact emails

Returns:
An array of all the contact's email addresses.

getAddresses

public ContactAddresses[] getAddresses()
Get contact addresses

Returns:
An array of all the contact's addresses

getIms

public ContactField[] getIms()
Get contact IM addresses

Returns:
An array of all the contact's IM addresses.

getOrganizations

public ContactOrganization[] getOrganizations()
Get contact organizations

Returns:
An array of all the contact's organizations

getBirthday

public java.util.Date getBirthday()
Get contact birthday

Returns:
The birthday of the contact.

getNote

public String getNote()
Get contact note

Returns:
A note about the contact.

getPhotos

public ContactField[] getPhotos()
Get contact photos

Returns:
An array of the contact's photos

getCategories

public ContactField[] getCategories()
Get contact categories

Returns:
An array of all the contacts user defined categories

getUrls

public ContactField[] getUrls()
Get contact URL's

Returns:
An array of web pages associated to the contact

setDisplayName

public void setDisplayName(String displayName)
Set the value for contact display name


setName

public void setName(ContactName name)
Set the value for contact name


setNickname

public void setNickname(String nickname)
Set the value for contact nick name


setPhoneNumbers

public void setPhoneNumbers(ContactField[] phoneNumbers)
Set the value for contact phone numbers


setEmails

public void setEmails(ContactField[] emails)
Set the value for contact emails


setAddresses

public void setAddresses(ContactAddresses[] addresses)
Set the value for contact addresses


setIms

public void setIms(ContactField[] ims)
Set the value for contact ims


setOrganizations

public void setOrganizations(ContactOrganization[] organizations)
Set the value for contact organizations


setBirthday

public void setBirthday(java.util.Date birthday)
Set the value for contact birthday


setNote

public void setNote(String note)
Set the value for contact note


setPhotos

public void setPhotos(ContactField[] photos)
Set the value for contact photos


setCategories

public void setCategories(ContactField[] categories)
Set the value for contact categories


setUrls

public void setUrls(ContactField[] urls)
Set the value for contact urls


toString

public String toString()
Method to convert Contact object to string representation.

Overrides:
toString in class Object
Returns:
string representation of Contact object

toJSON

public Object toJSON()
              throws Exception
Method to convert Contact object to JSON representation.

Specified by:
toJSON in interface JSONSerializable
Returns:
json representation of the Contact object
Throws:
Exception

Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework
2.0.0.0.0

E36392-01

Copyright © 2014 Oracle. All Rights Reserved.