VCard
Leave feedback
On this page
Inheritance: java.lang.Object
public class VCard
Represents VCard standard contact details.
| Constructor | Description |
|---|---|
| VCard() | Creates VCard instance with default values. |
| Method | Description |
|---|---|
| getFirstName() | Get or set contact First Name. |
| setFirstName(String value) | Get or set contact First Name. |
| getMidddleName() | Get or set contact Middle Name. |
| setMidddleName(String value) | Get or set contact Middle Name. |
| getLastName() | Get or set contact Last Name. |
| setLastName(String value) | Get or set contact Last Name. |
| getInitials() | Get or set contact initials. |
| setInitials(String value) | Get or set contact initials. |
| getCompany() | Get or set Company of contact. |
| setCompany(String value) | Get or set Company of contact. |
| getJobTitle() | Get or set contact Job Title. |
| setJobTitle(String value) | Get or set contact Job Title. |
| getHomeAddress() | Gets or sets Home Address properties. |
| setHomeAddress(Address value) | Gets or sets Home Address properties. |
| getWorkAddress() | Gets or sets Work Address properties. |
| setWorkAddress(Address value) | Gets or sets Work Address properties. |
| getHomePhone() | Gets or sets home phone number. |
| setHomePhone(String value) | Gets or sets home phone number. |
| getWorkPhone() | Gets or sets work phone number. |
| setWorkPhone(String value) | Gets or sets work phone number. |
| getCellPhone() | Gets or sets cellular phone number. |
| setCellPhone(String value) | Gets or sets cellular phone number. |
| getEmail() | Gets or sets contact email. |
| setEmail(String value) | Gets or sets contact email. |
| getUrl() | Gets or sets contact URL. |
| setUrl(String value) | Gets or sets contact URL. |
| getBirthDay() | Gets or sets contact birthday. |
| setBirthDay(Date value) | Gets or sets contact birthday. |
| equals(Object source) | Overwrites Equals method to compare VCard properties |
| hashCode() | Overrides GetHashCode method |
public VCard()
Creates VCard instance with default values.
public final String getFirstName()
Get or set contact First Name.
Returns: java.lang.String
public final void setFirstName(String value)
Get or set contact First Name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final String getMidddleName()
Get or set contact Middle Name.
Returns: java.lang.String
public final void setMidddleName(String value)
Get or set contact Middle Name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final String getLastName()
Get or set contact Last Name.
Returns: java.lang.String
public final void setLastName(String value)
Get or set contact Last Name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final String getInitials()
Get or set contact initials.
Returns: java.lang.String
public final void setInitials(String value)
Get or set contact initials.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final String getCompany()
Get or set Company of contact.
Returns: java.lang.String
public final void setCompany(String value)
Get or set Company of contact.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final String getJobTitle()
Get or set contact Job Title.
Returns: java.lang.String
public final void setJobTitle(String value)
Get or set contact Job Title.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final Address getHomeAddress()
Gets or sets Home Address properties. This property is not initialized by default.
Returns: Address
public final void setHomeAddress(Address value)
Gets or sets Home Address properties. This property is not initialized by default.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | Address |
public final Address getWorkAddress()
Gets or sets Work Address properties. This property is not initialized by default.
Returns: Address
public final void setWorkAddress(Address value)
Gets or sets Work Address properties. This property is not initialized by default.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | Address |
public final String getHomePhone()
Gets or sets home phone number.
Returns: java.lang.String
public final void setHomePhone(String value)
Gets or sets home phone number.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final String getWorkPhone()
Gets or sets work phone number.
Returns: java.lang.String
public final void setWorkPhone(String value)
Gets or sets work phone number.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final String getCellPhone()
Gets or sets cellular phone number.
Returns: java.lang.String
public final void setCellPhone(String value)
Gets or sets cellular phone number.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final String getEmail()
Gets or sets contact email.
Returns: java.lang.String
public final void setEmail(String value)
Gets or sets contact email.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final String getUrl()
Gets or sets contact URL.
Returns: java.lang.String
public final void setUrl(String value)
Gets or sets contact URL.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final Date getBirthDay()
Gets or sets contact birthday.
Returns: java.util.Date
public final void setBirthDay(Date value)
Gets or sets contact birthday.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.util.Date |
public boolean equals(Object source)
Overwrites Equals method to compare VCard properties
Parameters:
| Parameter | Type | Description |
|---|---|---|
| source | java.lang.Object | VCard object to compare with. |
Returns: boolean - Returns true if passed VCard object has same type and all its properties are equal to this instance properties.
public int hashCode()
Overrides GetHashCode method
Returns: int - VCard hash code
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.