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 ContactField

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

All Implemented Interfaces:
PostJSONDeserializable, PostJSONSerializable

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

Object used as part of a Contact


Constructor Summary
ContactField()
          Default ContactField constructor
ContactField(int id, java.lang.String type, java.lang.String value, boolean pref)
          ContactField constructor

 

Method Summary
 int getId()
          Get a unique identifier
 boolean getPref()
          Get the flag to determine if this is the user's preferred value
 java.lang.String getType()
          Get a field type
 java.lang.String getValue()
          Get the field value
 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 setPref(boolean pref)
          Set the value for pref
 void setType(java.lang.String type)
          Set the value for type
 void setValue(java.lang.String value)
          Set the value for value
 java.lang.String toString()
          Method to convert ContactField object to string representation.

 

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

 

Constructor Detail

ContactField

public ContactField()
Default ContactField constructor

ContactField

public ContactField(int id,
                    java.lang.String type,
                    java.lang.String value,
                    boolean pref)
ContactField constructor
Parameters:
id - of the contact field
type - of the contact field
value - of the contact field
pref - of the contact field

Method Detail

getId

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

getType

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

getValue

public java.lang.String getValue()
Get the field value
Returns:
The value of the field (such as a phone number or email address)

getPref

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

setType

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

setValue

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

setPref

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

toString

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