|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vodafone360.people.datatypes.BaseDataType com.vodafone360.people.datatypes.ContactDetail
public class ContactDetail
BaseDataType representing ContactDetails retrieved from, or issued to, server.
Contains a specific contact detail such as name, address, phone number, etc.
Nested Class Summary | |
---|---|
static class |
ContactDetail.DetailKeys
Contact Detail KEY definitions |
static class |
ContactDetail.DetailKeyTypes
Definitions of KEY types for Contact-Details. |
private static class |
ContactDetail.MemberData
Enumeration consisting of fields written to/from Parcel containing ContactDetail item. |
private static class |
ContactDetail.Tags
Tags associated with ContactDetail item. |
Field Summary | |
---|---|
java.lang.String |
alt
An alternative value to display for the contact detail |
java.lang.Long |
changeID
Internal field which is a secondary key to link the detail with a change in the change log table. |
protected static |
CREATOR
Interface to allow ContactDetail to be written and restored from a Parcel. |
java.lang.Boolean |
deleted
True if the contact detail has been deleted on the server |
ContactDetail.DetailKeys |
key
Determines which kind of contact detail this object refers to (name, address, phone number, etc) |
ContactDetail.DetailKeyTypes |
keyType
Type of detail (home, business, work, etc.) |
java.lang.Long |
localContactID
Secondary key which links the contact detail with a contact |
java.lang.Long |
localDetailID
Primary key in the ContactDetails table |
Location |
location
The location associated with the contact detail obtained from the server |
private static java.lang.String |
LOCATION_DELIMITER
|
private static java.lang.String |
LOCATION_PROVIDER
|
java.lang.Integer |
nativeContactId
Internal field which is a secondary key linking the detail with a contact in the native address book. |
java.lang.Integer |
nativeDetailId
Internal field which is a secondary key linking the detail with a contact detail in the native address book. |
java.lang.String |
nativeVal1
A string copied from the native address book which can be used to determine if this contact has changed. |
java.lang.String |
nativeVal2
A string copied from the native address book which can be used to determine if this contact has changed. |
java.lang.String |
nativeVal3
A string copied from the native address book which can be used to determine if this contact has changed. |
java.lang.Integer |
order
Contains the order in which the contact detail should be displayed. |
static int |
ORDER_NORMAL
|
static int |
ORDER_PREFERRED
|
Bitmap |
photo
A photo associated with the detail. |
java.lang.String |
photo_mime_type
The mime type of the image pointed to in the photo_url field. |
java.lang.String |
photo_url
Contains the remote URL on the server where the image is located. |
java.lang.Long |
serverContactId
Internal field which is used to cache the contact server ID. |
java.lang.Integer |
syncNativeContactId
Internal field which is used to cache the sync native contact ID. |
private static java.lang.String |
TYPE_PREFERRED
|
java.lang.Long |
unique_id
Contains the server ID if the contact detail has been synchronised with the server, null otherwise. |
static java.lang.String |
UNKNOWN_NAME
|
java.lang.Long |
updated
Contains the last time the contact detail was updated on the server |
java.lang.String |
value
Current value of the detail |
Constructor Summary | |
---|---|
|
ContactDetail()
Default constructor for ContactDetail. |
private |
ContactDetail(Parcel in)
Construct ContactDetail from supplied Parcel. |
Method Summary | |
---|---|
void |
copy(ContactDetail source)
Copy ContactDetail parameters from supplied ContactDetail item. |
protected ContactDetail |
createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
Create ContactDetail from Hashtable generated by Hessian-decoder |
java.util.Hashtable<java.lang.String,java.lang.Object> |
createHastable()
Create Hashtable containing ContactDetail parameters |
int |
describeContents()
|
private ContactDetail.Tags |
findTag(java.lang.String tag)
Find Tags item for specified String |
Time |
getDate()
Get date value. |
java.lang.String |
getEmail()
|
VCardHelper.Name |
getName()
Return VCard name field |
VCardHelper.Organisation |
getOrg()
Return organisation field value. |
VCardHelper.PostalAddress |
getPostalAddress()
Get postal address |
java.lang.String |
getTel()
Return telephone number as String |
java.lang.String |
getValue()
Fetches single value from a VCard entry using VCardHelper class. |
java.lang.String |
name()
Return name of the current Data-type. |
private boolean |
processType(java.lang.String typeString)
Set key-type based on supplied key String. |
private void |
processTypeData(java.lang.String typeData)
Attempt to set type based on supplied data. |
private void |
readFromParcel(Parcel in)
Read ContactDetail item from supplied Parcel. |
void |
setDate(Time time,
ContactDetail.DetailKeyTypes inType)
Set VCard date field. |
void |
setEmail(java.lang.String emailAddress,
ContactDetail.DetailKeyTypes inType)
Set email address |
void |
setName(VCardHelper.Name name)
Set VCard name field using VCardHelper. |
void |
setOrg(VCardHelper.Organisation org,
ContactDetail.DetailKeyTypes type)
Set VCard organisation field. |
void |
setPostalAddress(VCardHelper.PostalAddress address,
ContactDetail.DetailKeyTypes inType)
Set postal address. |
void |
setTel(java.lang.String tel,
ContactDetail.DetailKeyTypes inType)
Set telephone number. |
private void |
setValue(ContactDetail.Tags tag,
java.lang.Object obValue)
Sets the value of the member data item associated with the specified tag. |
void |
setValue(java.lang.String rawVal,
ContactDetail.DetailKeys inKey,
ContactDetail.DetailKeyTypes inType)
|
java.lang.String |
toString()
|
void |
writeToParcel(Parcel dest,
int flags)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String LOCATION_PROVIDER
private static final java.lang.String LOCATION_DELIMITER
public static final java.lang.String UNKNOWN_NAME
private static final java.lang.String TYPE_PREFERRED
public static final int ORDER_PREFERRED
public static final int ORDER_NORMAL
public java.lang.Long localDetailID
public java.lang.Long localContactID
public ContactDetail.DetailKeys key
public ContactDetail.DetailKeyTypes keyType
public java.lang.String value
public java.lang.Boolean deleted
public java.lang.Long updated
public java.lang.Long unique_id
public java.lang.Integer order
public java.lang.String alt
public Location location
public Bitmap photo
public java.lang.String photo_mime_type
photo_url
field.
photo_url
public java.lang.String photo_url
photo_mime_type
public java.lang.Long serverContactId
public java.lang.Integer syncNativeContactId
public java.lang.Integer nativeContactId
public java.lang.Integer nativeDetailId
public java.lang.Long changeID
public java.lang.String nativeVal1
nativeVal2
,
nativeVal3
public java.lang.String nativeVal2
nativeVal1
,
nativeVal3
public java.lang.String nativeVal3
nativeVal1
,
nativeVal2
protected static finalCREATOR
Constructor Detail |
---|
public ContactDetail()
private ContactDetail(Parcel in)
in
- Parcel containing ContactDetails.Method Detail |
---|
private ContactDetail.Tags findTag(java.lang.String tag)
tag
- String value to find Tags item for
public java.lang.String name()
name
in class BaseDataType
public java.util.Hashtable<java.lang.String,java.lang.Object> createHastable()
protected ContactDetail createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
hash
- Hashtable containing ContactDetail parameters
private void setValue(ContactDetail.Tags tag, java.lang.Object obValue)
tag
- Current tagval
- Value associated with the tagpublic java.lang.String toString()
toString
in class java.lang.Object
public void copy(ContactDetail source)
source
- ContactDetail to copy from.public void setValue(java.lang.String rawVal, ContactDetail.DetailKeys inKey, ContactDetail.DetailKeyTypes inType)
rawVal
- inKey
- inType
- public java.lang.String getValue()
public void setName(VCardHelper.Name name)
name
- VCardHelper name item.public VCardHelper.Name getName()
public void setOrg(VCardHelper.Organisation org, ContactDetail.DetailKeyTypes type)
org
- VCardHelper.Organisation containing representation of
organisation fields.type
- detailKeyTypes (i.e. HOME/WORK).public VCardHelper.Organisation getOrg()
public void setDate(Time time, ContactDetail.DetailKeyTypes inType)
time
- Time to set.inType
- detailKeyTypes for item (i.e BIRTHDAY).public Time getDate()
public void setEmail(java.lang.String emailAddress, ContactDetail.DetailKeyTypes inType)
emailAddress
- String containing email addressinType
- detailKeyTypes vale specifying address type.public java.lang.String getEmail()
public void setPostalAddress(VCardHelper.PostalAddress address, ContactDetail.DetailKeyTypes inType)
address
- VCardHelper.PostalAddress containing postal address
fields.inType
- detailKeyTypes specifying address type.public VCardHelper.PostalAddress getPostalAddress()
public void setTel(java.lang.String tel, ContactDetail.DetailKeyTypes inType)
tel
- String containing telephone number.inType
- detailKeyTypes identifying number type.public java.lang.String getTel()
private void processTypeData(java.lang.String typeData)
typeData
- String containing type information.private boolean processType(java.lang.String typeString)
typeString
- String containing type.
private void readFromParcel(Parcel in)
in
- PArcel containing ContactDetail.public int describeContents()
public void writeToParcel(Parcel dest, int flags)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaDoc