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 ContactAddresses

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

All Implemented Interfaces:
PostJSONDeserializable, PostJSONSerializable

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

Object used as part of a Contact


Constructor Summary
ContactAddresses()
          Default constructor
ContactAddresses(int id, java.lang.String type, java.lang.String formatted, java.lang.String streetAddress, java.lang.String locality, java.lang.String region, java.lang.String postalCode, java.lang.String country)
          ContactAddresses constructor

 

Method Summary
 java.lang.String getCountry()
          Get the country name
 java.lang.String getFormatted()
          Get the formatted address
 int getId()
          Get a unique identifier for this address
 java.lang.String getLocality()
          Get the city or locality
 java.lang.String getPostalCode()
          Get the zip or postal code
 java.lang.String getRegion()
          Get the state or region
 java.lang.String getStreetAddress()
          Get the street address
 java.lang.String getType()
          Get the type of the address
 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 setCountry(java.lang.String country)
          Set the value for country
 void setFormatted(java.lang.String formatted)
          Set the value for formatted address
 void setLocality(java.lang.String locality)
          Set the value for locality
 void setPostalCode(java.lang.String postalCode)
          Set the value for postal code
 void setRegion(java.lang.String region)
          Set the value for region
 void setStreetAddress(java.lang.String streetAddress)
          Set the value for street address
 void setType(java.lang.String type)
          Set the value for address type
 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

ContactAddresses

public ContactAddresses()
Default constructor

ContactAddresses

public ContactAddresses(int id,
                        java.lang.String type,
                        java.lang.String formatted,
                        java.lang.String streetAddress,
                        java.lang.String locality,
                        java.lang.String region,
                        java.lang.String postalCode,
                        java.lang.String country)
ContactAddresses constructor
Parameters:
id - for the contact
type - for the contact
formatted - for the contact
streetAddress - for the contact
locality - for the contact
region - for the contact
postalCode - for the contact
country - for the contact

Method Detail

getId

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

getType

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

getFormatted

public java.lang.String getFormatted()
Get the formatted address
Returns:
The full address formatted for display

getStreetAddress

public java.lang.String getStreetAddress()
Get the street address
Returns:
The full street address.

getLocality

public java.lang.String getLocality()
Get the city or locality
Returns:
The city or locality.

getRegion

public java.lang.String getRegion()
Get the state or region
Returns:
The state or region.

getPostalCode

public java.lang.String getPostalCode()
Get the zip or postal code
Returns:
The zip code or postal code

getCountry

public java.lang.String getCountry()
Get the country name
Returns:
The country name

setType

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

setFormatted

public void setFormatted(java.lang.String formatted)
Set the value for formatted address

setStreetAddress

public void setStreetAddress(java.lang.String streetAddress)
Set the value for street address

setLocality

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

setRegion

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

setPostalCode

public void setPostalCode(java.lang.String postalCode)
Set the value for postal code

setCountry

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

toString

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