Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile
11g Release 2 (11.1.2.4.0)

E27204-03


oracle.adf.model.datacontrols.device
Class Contact

java.lang.Object
  extended by oracle.adf.model.datacontrols.device.Contact

All Implemented Interfaces:
JSONSerializable

public class Contact
extends java.lang.Object
implements JSONSerializable

Contact class


Constructor Summary
Contact()
          Default Contact constructor
Contact(int id, int rawId, java.lang.String displayName, ContactName name, java.lang.String nickname, ContactField[] phoneNumbers, ContactField[] emails, ContactAddresses[] addresses, ContactField[] ims, ContactOrganization[] organizations, java.util.Date birthday, java.lang.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
 java.lang.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
 java.lang.String getNickname()
          Get contact nickname
 java.lang.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(java.lang.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(java.lang.String nickname)
          Set the value for contact nick name
 void setNote(java.lang.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
 java.lang.Object toJSON()
          Method to convert Contact object to JSON representation.
 java.lang.String toString()
          Method to convert Contact object to string representation.

 

Methods inherited from class java.lang.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,
               java.lang.String displayName,
               ContactName name,
               java.lang.String nickname,
               ContactField[] phoneNumbers,
               ContactField[] emails,
               ContactAddresses[] addresses,
               ContactField[] ims,
               ContactOrganization[] organizations,
               java.util.Date birthday,
               java.lang.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 java.lang.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 java.lang.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 java.lang.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(java.lang.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(java.lang.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(java.lang.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 java.lang.String toString()
Method to convert Contact object to string representation.
Overrides:
toString in class java.lang.Object
Returns:
string representation of Contact object

toJSON

public java.lang.Object toJSON()
                        throws java.lang.Exception
Method to convert Contact object to JSON representation.
Specified by:
toJSON in interface JSONSerializable
Returns:
json representation of the Contact object
Throws:
java.lang.Exception

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile
11g Release 2 (11.1.2.4.0)

E27204-03


Copyright © 2012, 2013 Oracle. All Rights Reserved.