|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecta_vcard.android.syncml.pim.vcard.ContactStruct
public class ContactStruct
The parameter class of VCardComposer. This class standy by the person-contact in Android system, we must use this class instance as parameter to transmit to VCardComposer so that create vCard string.
Nested Class Summary | |
---|---|
static class |
ContactStruct.ContactMethod
|
static class |
ContactStruct.OrganizationData
|
static class |
ContactStruct.PhoneData
|
Field Summary | |
---|---|
java.lang.String |
company
Deprecated. |
java.util.List<ContactStruct.ContactMethod> |
contactmethodList
Only for GET. |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
extensionMap
Only for GET. |
java.lang.String |
name
MUST exist |
static int |
NAME_ORDER_TYPE_ENGLISH
|
static int |
NAME_ORDER_TYPE_JAPANESE
|
java.util.List<java.lang.String> |
notes
maybe folding |
java.util.List<ContactStruct.OrganizationData> |
organizationList
Only for GET. |
java.util.List<ContactStruct.PhoneData> |
phoneList
Only for GET. |
java.lang.String |
phoneticName
|
byte[] |
photoBytes
binary bytes of pic. |
java.lang.String |
photoType
The type of Photo (e.g. |
java.lang.String |
title
maybe folding |
Constructor Summary | |
---|---|
ContactStruct()
|
Method Summary | |
---|---|
void |
addContactmethod(int kind,
int type,
java.lang.String data,
java.lang.String label,
boolean isPrimary)
Add a contactmethod info to contactmethodList. |
void |
addExtension(PropertyNode propertyNode)
|
void |
addOrganization(int type,
java.lang.String companyName,
java.lang.String positionName,
boolean isPrimary)
Add a Organization info to organizationList. |
void |
addPhone(int type,
java.lang.String data,
java.lang.String label,
boolean isPrimary)
Add a phone info to phoneList. |
static ContactStruct |
constructContactFromVNode(VNode node,
int nameOrderType)
|
java.lang.String |
displayString()
|
boolean |
isIgnorable()
|
void |
setPosition(java.lang.String positionValue)
Set "position" value to the appropriate data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NAME_ORDER_TYPE_ENGLISH
public static final int NAME_ORDER_TYPE_JAPANESE
public java.lang.String name
public java.lang.String phoneticName
public java.util.List<java.lang.String> notes
public java.lang.String title
public byte[] photoBytes
public java.lang.String photoType
public java.util.List<ContactStruct.PhoneData> phoneList
public java.util.List<ContactStruct.ContactMethod> contactmethodList
public java.util.List<ContactStruct.OrganizationData> organizationList
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> extensionMap
@Deprecated public java.lang.String company
Constructor Detail |
---|
public ContactStruct()
Method Detail |
---|
public void addPhone(int type, java.lang.String data, java.lang.String label, boolean isPrimary)
data
- phone numbertype
- type col of content://contacts/phoneslabel
- lable col of content://contacts/phonespublic void addContactmethod(int kind, int type, java.lang.String data, java.lang.String label, boolean isPrimary)
kind
- integer value defined in Contacts.java
(e.g. Contacts.KIND_EMAIL)type
- type col of content://contacts/contact_methodsdata
- contact datalabel
- extra string used only when kind is Contacts.KIND_CUSTOM.public void addOrganization(int type, java.lang.String companyName, java.lang.String positionName, boolean isPrimary)
public void setPosition(java.lang.String positionValue)
public void addExtension(PropertyNode propertyNode)
public static ContactStruct constructContactFromVNode(VNode node, int nameOrderType)
public java.lang.String displayString()
public boolean isIgnorable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |