Skip navigation links

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

E27204-01


oracle.adf.model.datacontrols.device
Class ContactOrganization

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

All Implemented Interfaces:
PostJSONDeserializable, PostJSONSerializable

public class ContactOrganization
extends java.lang.Object
implements PostJSONSerializable, PostJSONDeserializable

Object used as part of a Contact


Constructor Summary
ContactOrganization()
          Default ContactOrganization constructor
ContactOrganization(int id, java.lang.String name, java.lang.String department, java.lang.String title)
          ContactOrganization constructor

 

Method Summary
 java.lang.String getDepartment()
          Get the department
 int getId()
          Get a unique identifier
 java.lang.String getName()
          Get the name
 boolean getPref()
          Get the flag to determine if this is the preferred value
 java.lang.String getTitle()
          Get the contact's title
 java.lang.String getType()
          Get the field type
 oracle.adfmf.json.JSONObject modifyJSON(oracle.adfmf.json.JSONObject jsonObj)
          Method to normalize the JSON object.
 java.lang.Object modifyObject(oracle.adfmf.json.JSONObject jsonObj)
          Method to update the class instance object by de-serializing the jsonObject into private setters
 void setDepartment(java.lang.String department)
          Set the value for department
 void setName(java.lang.String name)
          Set the value for organization name
 void setPref(boolean pref)
          Set the value for pref
 void setTitle(java.lang.String title)
          Set the value for title
 void setType(java.lang.String type)
          Set the value for type
 java.lang.String toString()
          Method to convert ContactOrganization object to string representation.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

ContactOrganization

public ContactOrganization()
Default ContactOrganization constructor

ContactOrganization

public ContactOrganization(int id,
                           java.lang.String name,
                           java.lang.String department,
                           java.lang.String title)
ContactOrganization constructor
Parameters:
id - of the contact's organization
name - of the contact's organization
department - of the contact's organization
title - of the contact's organization

Method Detail

getId

public int getId()
Get a unique identifier
Returns:
A unique identifier for this ContactOrganization

getName

public java.lang.String getName()
Get the name
Returns:
The name of the organization.

getDepartment

public java.lang.String getDepartment()
Get the department
Returns:
The department the contact works for

getTitle

public java.lang.String getTitle()
Get the contact's title
Returns:
The contact's title at the organization.

getType

public java.lang.String getType()
Get the field type
Returns:
A string that tells you what type of field this is

getPref

public boolean getPref()
Get the flag to determine if this is the preferred value
Returns:
true if this ContactOrganization contains the user's preferred value.

setName

public void setName(java.lang.String name)
Set the value for organization name

setDepartment

public void setDepartment(java.lang.String department)
Set the value for department

setTitle

public void setTitle(java.lang.String title)
Set the value for title

setType

public void setType(java.lang.String type)
Set the value for type

setPref

public void setPref(boolean pref)
Set the value for pref

toString

public java.lang.String toString()
Method to convert ContactOrganization object to string representation.
Overrides:
toString in class java.lang.Object
Returns:
String representation of ContactOrganization 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 JSONObject

modifyObject

public java.lang.Object modifyObject(oracle.adfmf.json.JSONObject jsonObj)
                              throws java.lang.Exception
Method to update the class instance object by de-serializing the jsonObject into private setters
Specified by:
modifyObject in interface PostJSONDeserializable
Parameters:
jsonObj - JSONObject to be modified.
Returns:
modified Object
Throws:
java.lang.Exception

Skip navigation links

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

E27204-01


Copyright © 2012 Oracle. All Rights Reserved.