public class Contact extends Object implements IPreferredTextEncodingProvider
Represents contact information.
Constructor and Description |
---|
Contact() |
Modifier and Type | Method and Description |
---|---|
String |
getAccount()
Gets or sets an account name
|
AssociatedPersonsList |
getAssociatedPersons()
Gets list of associated persons
|
AttachmentCollection |
getAttachments()
Gets attachments collection
|
String |
getCompanyName()
Gets or sets a company name.
|
String |
getCustomerId()
Gets or sets a customer id
|
String |
getDepartmentName()
Gets or sets a department name.
|
String |
getDisplayName()
Gets or sets a display name
|
int |
getDisplayNameOrdering()
Defines the order of names for DisplayName in case if DisplayName is not specified manually.
|
EmailAddressList |
getEmailAddresses()
Gets list of email addresses
|
EventList |
getEvents()
Gets list of events
|
String |
getFileAs()
Gets or sets a name used for sorting.
|
String |
getGivenName()
Gets or sets a given name that is a part of a person's full name.
|
String |
getGovernmentIdNumber()
Gets or sets a government id number
|
String |
getHobbies()
Gets or sets a hobbies
|
ObjectIdentifier |
getId()
Gets object identification information
|
String |
getInitials()
Gets or sets an initials
|
InstantMessengerList |
getInstantMessengers()
Gets list of instant messenger addresses
|
String |
getJobTitle()
Gets or sets a job title.
|
String |
getLanguage()
Gets or sets a language
|
String |
getMiddleName()
Gets or sets a middle name that is a part of a person's full name.
|
String |
getNickname()
Gets or sets a nickname of a person.
|
String |
getNotes()
Gets or sets a notes
|
int |
getNotesFormat()
Gets or sets a format of a notes field.
|
PhoneNumberList |
getPhoneNumbers()
Gets list of phone numbers
|
ContactPhoto |
getPhoto()
Gets or sets an image of contact
|
PostalAddressList |
getPhysicalAddresses()
Gets list of postal addresses
|
Charset |
getPreferredTextEncoding()
Gets or sets preferred encoding for all text properties
|
String |
getPrefix()
Gets or sets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on.
|
String |
getProfession()
Gets or sets a job position of a person in a company.
|
String |
getSuffix()
Gets or sets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on.
|
String |
getSurname()
Gets or sets a surname that is a part of a person's full name.
|
UrlList |
getUrls()
Gets list of urls
|
static Contact |
load(InputStream stream)
Loads contact data
|
static Contact |
load(InputStream stream,
int format)
Loads contact data
|
static Contact |
load(String filePath)
Loads contact data
|
static Contact |
load(String filePath,
int format)
Loads contact data
|
void |
save(OutputStream stream)
Saves this
MapiContact into the given stream with vCard format. |
void |
save(OutputStream stream,
ContactSaveOptions saveOptions)
Saves this
MapiContact to the given stream using specified save options. |
void |
save(OutputStream stream,
int saveFormat)
Saves this
MapiContact to the given stream with a format using the default options. |
void |
save(String filePath)
Saves this
MapiContact to the vCard file with a default options. |
void |
save(String filePath,
ContactSaveOptions saveOptions)
Saves this
MapiContact into file using specified save options. |
void |
save(String filePath,
int saveFormat)
Saves this
MapiContact to the specified file with a format using the default options. |
void |
setAccount(String value)
Gets or sets an account name
|
void |
setCompanyName(String value)
Gets or sets a company name.
|
void |
setCustomerId(String value)
Gets or sets a customer id
|
void |
setDepartmentName(String value)
Gets or sets a department name.
|
void |
setDisplayName(String value)
Gets or sets a display name
|
void |
setDisplayNameOrdering(int value)
Defines the order of names for DisplayName in case if DisplayName is not specified manually.
|
void |
setFileAs(String value)
Gets or sets a name used for sorting.
|
void |
setGivenName(String value)
Gets or sets a given name that is a part of a person's full name.
|
void |
setGovernmentIdNumber(String value)
Gets or sets a government id number
|
void |
setHobbies(String value)
Gets or sets a hobbies
|
void |
setInitials(String value)
Gets or sets an initials
|
void |
setJobTitle(String value)
Gets or sets a job title.
|
void |
setLanguage(String value)
Gets or sets a language
|
void |
setMiddleName(String value)
Gets or sets a middle name that is a part of a person's full name.
|
void |
setNickname(String value)
Gets or sets a nickname of a person.
|
void |
setNotes(String value)
Gets or sets a notes
|
void |
setNotesFormat(int value)
Gets or sets a format of a notes field.
|
void |
setPhoto(ContactPhoto value)
Gets or sets an image of contact
|
void |
setPreferredTextEncoding(Charset value)
Gets or sets preferred encoding for all text properties
|
void |
setPrefix(String value)
Gets or sets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on.
|
void |
setProfession(String value)
Gets or sets a job position of a person in a company.
|
void |
setSuffix(String value)
Gets or sets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on.
|
void |
setSurname(String value)
Gets or sets a surname that is a part of a person's full name.
|
static Contact |
to_Contact(MapiContact contact)
Converts
MapiContact to Contact object |
static MapiContact |
to_MapiContact(Contact contact)
Converts
Contact to MapiContact object |
String |
toString()
Returns a string that represents the current object.
|
public ObjectIdentifier getId()
Gets object identification information
ObjectIdentifier
object.public Charset getPreferredTextEncoding()
Gets or sets preferred encoding for all text properties
getPreferredTextEncoding
in interface IPreferredTextEncodingProvider
public void setPreferredTextEncoding(Charset value)
Gets or sets preferred encoding for all text properties
setPreferredTextEncoding
in interface IPreferredTextEncodingProvider
value
- the preferred encoding for all text properties.public String getInitials()
Gets or sets an initials
public void setInitials(String value)
Gets or sets an initials
value
- the initialspublic int getDisplayNameOrdering()
Defines the order of names for DisplayName in case if DisplayName is not specified manually.
public void setDisplayNameOrdering(int value)
Defines the order of names for DisplayName in case if DisplayName is not specified manually.
value
- the order of names for DisplayNamepublic String getDisplayName()
Gets or sets a display name
public void setDisplayName(String value)
Gets or sets a display name
value
- a String
object.public String getPrefix()
Gets or sets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on.
String
object.public void setPrefix(String value)
Gets or sets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on.
value
- a String
object.public String getGivenName()
Gets or sets a given name that is a part of a person's full name. A given name is also known as a personal name, first name, forename, or Christian name.
String
object.public void setGivenName(String value)
Gets or sets a given name that is a part of a person's full name. A given name is also known as a personal name, first name, forename, or Christian name.
value
- a String
object.public String getMiddleName()
Gets or sets a middle name that is a part of a person's full name. In some countries people have an additional (middle) name.
String
object.public void setMiddleName(String value)
Gets or sets a middle name that is a part of a person's full name. In some countries people have an additional (middle) name.
value
- a String
object.public String getSurname()
Gets or sets a surname that is a part of a person's full name. Surname is also known as family name or last name.
String
object.public void setSurname(String value)
Gets or sets a surname that is a part of a person's full name. Surname is also known as family name or last name.
value
- a String
object.public String getSuffix()
Gets or sets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on.
String
object.public void setSuffix(String value)
Gets or sets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on.
value
- a String
object.public void setNotes(String value)
Gets or sets a notes
value
- a String
object.public int getNotesFormat()
Gets or sets a format of a notes field.
public void setNotesFormat(int value)
Gets or sets a format of a notes field.
value
- a int.public String getNickname()
Gets or sets a nickname of a person.
String
object.public void setNickname(String value)
Gets or sets a nickname of a person.
value
- a String
object.public ContactPhoto getPhoto()
Gets or sets an image of contact
ContactPhoto
object.public void setPhoto(ContactPhoto value)
Gets or sets an image of contact
value
- a ContactPhoto
object.public void setCompanyName(String value)
Gets or sets a company name.
value
- a String
object.public String getProfession()
Gets or sets a job position of a person in a company.
String
object.public void setProfession(String value)
Gets or sets a job position of a person in a company.
value
- a String
object.public void setJobTitle(String value)
Gets or sets a job title.
value
- a String
object.public String getDepartmentName()
Gets or sets a department name.
String
object.public void setDepartmentName(String value)
Gets or sets a department name.
value
- a String
object.public void setFileAs(String value)
Gets or sets a name used for sorting.
value
- a String
object.public void setAccount(String value)
Gets or sets an account name
value
- a String
object.public void setCustomerId(String value)
Gets or sets a customer id
value
- a String
object.public String getGovernmentIdNumber()
Gets or sets a government id number
String
object.public void setGovernmentIdNumber(String value)
Gets or sets a government id number
value
- a String
object.public void setHobbies(String value)
Gets or sets a hobbies
value
- a String
object.public void setLanguage(String value)
Gets or sets a language
value
- a String
object.public EmailAddressList getEmailAddresses()
Gets list of email addresses
EmailAddressList
object.public PostalAddressList getPhysicalAddresses()
Gets list of postal addresses
PostalAddressList
object.public PhoneNumberList getPhoneNumbers()
Gets list of phone numbers
PhoneNumberList
object.public InstantMessengerList getInstantMessengers()
Gets list of instant messenger addresses
InstantMessengerList
object.public AssociatedPersonsList getAssociatedPersons()
Gets list of associated persons
AssociatedPersonsList
object.public AttachmentCollection getAttachments()
Gets attachments collection
AttachmentCollection
object.public static MapiContact to_MapiContact(Contact contact)
Converts Contact
to MapiContact
object
contact
- Object for conversionMapiContact
objectpublic static Contact to_Contact(MapiContact contact)
Converts MapiContact
to Contact
object
contact
- Object for conversionContact
objectpublic void save(OutputStream stream)
Saves this MapiContact
into the given stream with vCard format.
The supported vCard version is 2.1
stream
- A stream to save tocom.aspose.ms.System.ArgumentNullException
- stream
is null
com.aspose.ms.System.NotSupportedException
- stream
does not support writingpublic void save(String filePath)
Saves this MapiContact
to the vCard file with a default options.
The supported vCard version is 2.1
filePath
- A vCard file namecom.aspose.ms.System.ArgumentException
- filePath
is null
or empty
public void save(String filePath, ContactSaveOptions saveOptions)
Saves this MapiContact
into file using specified save options.
The supported save options is VCardSaveOptions
filePath
- A vCard file namesaveOptions
- A save optionscom.aspose.ms.System.ArgumentException
- filePath
is null
or empty
com.aspose.ms.System.ArgumentNullException
- saveOptions
is null
com.aspose.ms.System.NotSupportedException
- some save option is not supportedpublic void save(String filePath, int saveFormat)
Saves this MapiContact
to the specified file with a format using the default options.
The supported save format is vCard.
filePath
- A vCard file namesaveFormat
- A save formatpublic void save(OutputStream stream, int saveFormat)
Saves this MapiContact
to the given stream with a format using the default options.
The supported save format is vCard
stream
- A stream to save tosaveFormat
- A save formatpublic void save(OutputStream stream, ContactSaveOptions saveOptions)
Saves this MapiContact
to the given stream using specified save options.
The supported save options is VCardSaveOptions
stream
- A stream to save tosaveOptions
- A save optionspublic static Contact load(String filePath)
Loads contact data
filePath
- file pathpublic static Contact load(String filePath, int format)
Loads contact data
filePath
- file pathformat
- Represents contact formatpublic static Contact load(InputStream stream)
Loads contact data
stream
- Contact streampublic static Contact load(InputStream stream, int format)
Loads contact data
stream
- Contact streamformat
- Represents contact formatCopyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.