public class ContactOrganization extends Object implements PostJSONSerializable, PostJSONDeserializable
Constructor and Description |
---|
ContactOrganization()
Default ContactOrganization constructor
|
ContactOrganization(int id,
String name,
String department,
String title)
ContactOrganization constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getDepartment()
Get the department
|
int |
getId()
Get a unique identifier
|
String |
getName()
Get the name
|
boolean |
getPref()
Get the flag to determine if this is the preferred value
|
String |
getTitle()
Get the contact's title
|
String |
getType()
Get the field type
|
oracle.adfmf.json.JSONObject |
modifyJSON(oracle.adfmf.json.JSONObject jsonObj)
Method to normalize the JSON object.
|
Object |
modifyObject(oracle.adfmf.json.JSONObject jsonObj)
Method to update the class instance object by de-serializing the jsonObject
into private setters
|
void |
setDepartment(String department)
Set the value for department
|
void |
setName(String name)
Set the value for organization name
|
void |
setPref(boolean pref)
Set the value for pref
|
void |
setTitle(String title)
Set the value for title
|
void |
setType(String type)
Set the value for type
|
String |
toString()
Method to convert ContactOrganization object to string representation.
|
public ContactOrganization()
public ContactOrganization(int id, String name, String department, String title)
id
- of the contact's organizationname
- of the contact's organizationdepartment
- of the contact's organizationtitle
- of the contact's organizationpublic int getId()
public String getName()
public String getDepartment()
public String getTitle()
public String getType()
public boolean getPref()
public void setName(String name)
public void setDepartment(String department)
public void setTitle(String title)
public void setType(String type)
public void setPref(boolean pref)
public String toString()
toString
in class Object
public oracle.adfmf.json.JSONObject modifyJSON(oracle.adfmf.json.JSONObject jsonObj)
modifyJSON
in interface PostJSONSerializable
jsonObj
- JSONObject to be modified.public Object modifyObject(oracle.adfmf.json.JSONObject jsonObj) throws Exception
modifyObject
in interface PostJSONDeserializable
jsonObj
- JSONObject to be modified.Exception