public class VCardEntry extends Object
ContactsContract
, which means some aspects of vCard are
dropped before this object being constructed. Raw vCard data should be first
supplied with addProperty(VCardProperty)
. After supplying all data,
user should call consolidateFields()
to prepare some additional
information which is constructable from supplied raw data. TODO: preserve raw
data using VCardProperty
. If it may just waste memory, this at least
should contain them when it cannot convert vCard as a string to Android's
Contacts representation. Those raw properties should _not_ be used for
isIgnorable()
.Modifier and Type | Class and Description |
---|---|
static class |
VCardEntry.AndroidCustomData
Some Contacts data in Android cannot be converted to vCard
representation.
|
static class |
VCardEntry.AnniversaryData |
static class |
VCardEntry.BirthdayData |
static class |
VCardEntry.EmailData |
static interface |
VCardEntry.EntryElement |
static interface |
VCardEntry.EntryElementIterator
Inner iterator interface.
|
static class |
VCardEntry.EntryLabel |
static class |
VCardEntry.ImData |
static class |
VCardEntry.NameData |
static class |
VCardEntry.NicknameData |
static class |
VCardEntry.NoteData |
static class |
VCardEntry.OrganizationData |
static class |
VCardEntry.PhoneData |
static class |
VCardEntry.PhotoData |
static class |
VCardEntry.PostalData |
static class |
VCardEntry.SipData |
static class |
VCardEntry.WebsiteData |
Constructor and Description |
---|
VCardEntry() |
VCardEntry(int vcardType) |
VCardEntry(int vcardType,
Account account) |
public VCardEntry()
public VCardEntry(int vcardType)
public VCardEntry(int vcardType, Account account)
public final void iterateAllData(VCardEntry.EntryElementIterator iterator)
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public void addProperty(VCardProperty property)
public void addChild(VCardEntry child)
public void consolidateFields()
public boolean isIgnorable()
public ArrayList<ContentProviderOperation> constructInsertOperations(ContentResolver resolver, ArrayList<ContentProviderOperation> operationList)
resolver
- ContentResolver
object to be used in this method.operationList
- object to be filled. You can use this argument to
concatinate operation lists. If null, this method creates a
new array object.public static VCardEntry buildFromResolver(ContentResolver resolver)
public static VCardEntry buildFromResolver(ContentResolver resolver, Uri uri)
public final VCardEntry.NameData getNameData()
public final List<VCardEntry.NicknameData> getNickNameList()
public final String getBirthday()
public final List<VCardEntry.NoteData> getNotes()
public final List<VCardEntry.PhoneData> getPhoneList()
public final List<VCardEntry.EmailData> getEmailList()
public final List<VCardEntry.PostalData> getPostalList()
public final List<VCardEntry.OrganizationData> getOrganizationList()
public final List<VCardEntry.ImData> getImList()
public final List<VCardEntry.PhotoData> getPhotoList()
public final List<VCardEntry.WebsiteData> getWebsiteList()
public final List<VCardEntry> getChildlen()
public String getDisplayName()