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

E36392-01

oracle.adf.model.datacontrols.device
Class ContactName

Object
  extended by oracle.adf.model.datacontrols.device.ContactName
All Implemented Interfaces:
PostJSONSerializable

public class ContactName
extends Object
implements PostJSONSerializable

Object used as part of a Contact


Constructor Summary
ContactName()
          Default ContactName constructor
ContactName(String formatted, String familyName, String givenName, String middleName, String honorificPrefix, String honorificSuffix)
          ContactName constructor
 
Method Summary
 String getFamilyName()
          Get the contact's family name
 String getFormatted()
          Get the complete name of the contact
 String getGivenName()
          Get the contact's given name
 String getHonorificPrefix()
          Get the contact's prefix
 String getHonorificSuffix()
          Get the contact's suffix
 String getMiddleName()
          Get the contact's middle name
 oracle.adfmf.json.JSONObject modifyJSON(oracle.adfmf.json.JSONObject jsonObj)
          Method to normalize the JSON object.
 void setFamilyName(String familyName)
          Set the value for family name
 void setFormatted(String formatted)
          Set the value for formatted name
 void setGivenName(String givenName)
          Set the value for given name
 void setHonorificPrefix(String honorificPrefix)
          Set the value for honorific prefix of name
 void setHonorificSuffix(String honorificSuffix)
          Set the value for honorific suffix of name
 void setMiddleName(String middleName)
          Set the value for middle name
 String toString()
          Method to convert ContactName object to string representation.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContactName

public ContactName()
Default ContactName constructor


ContactName

public ContactName(String formatted,
                   String familyName,
                   String givenName,
                   String middleName,
                   String honorificPrefix,
                   String honorificSuffix)
ContactName constructor

Parameters:
formatted - of the contact
familyName - of the contact
givenName - of the contact
middleName - of the contact
honorificPrefix - of the contact
honorificSuffix - of the contact
Method Detail

getFormatted

public String getFormatted()
Get the complete name of the contact

Returns:
The complete name of the contact

getFamilyName

public String getFamilyName()
Get the contact's family name

Returns:
The contact's family name or last name

getGivenName

public String getGivenName()
Get the contact's given name

Returns:
The contact's given name or first name

getMiddleName

public String getMiddleName()
Get the contact's middle name

Returns:
The contact's middle name

getHonorificPrefix

public String getHonorificPrefix()
Get the contact's prefix

Returns:
The contact's prefix (example Mr. or Dr.)

getHonorificSuffix

public String getHonorificSuffix()
Get the contact's suffix

Returns:
The contact's suffix (example Esq.)

setFormatted

public void setFormatted(String formatted)
Set the value for formatted name


setFamilyName

public void setFamilyName(String familyName)
Set the value for family name


setGivenName

public void setGivenName(String givenName)
Set the value for given name


setMiddleName

public void setMiddleName(String middleName)
Set the value for middle name


setHonorificPrefix

public void setHonorificPrefix(String honorificPrefix)
Set the value for honorific prefix of name


setHonorificSuffix

public void setHonorificSuffix(String honorificSuffix)
Set the value for honorific suffix of name


toString

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

Overrides:
toString in class Object
Returns:
String representation of ContactName object

modifyJSON

public oracle.adfmf.json.JSONObject modifyJSON(oracle.adfmf.json.JSONObject jsonObj)
Method to normalize the JSON object. This is done so as to remain in sync with what PhoneGap sends to iOS API calls.

Specified by:
modifyJSON in interface PostJSONSerializable
Parameters:
jsonObj - JSONObject to be modified.
Returns:
modified Object

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

E36392-01

Copyright © 2014 Oracle. All Rights Reserved.