public class Contact extends TextProperty
Defines the contact information for a person or other entity (for example, the name of a business and its phone number).
Code sample:
VEvent event = new VEvent();
Contact contact = new Contact("Acme Co: (212) 555-1234");
event.addContact(contact);
valueparameters| Constructor and Description |
|---|
Contact(String contact)
Creates a contact property.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAltRepresentation()
Gets a URI pointing to additional information about the entity
represented by the property.
|
String |
getLanguage()
Gets the language that the property value is written in.
|
void |
setAltRepresentation(String uri)
Sets a URI pointing to additional information about the entity
represented by the property.
|
void |
setLanguage(String language)
Sets the language that the property value is written in.
|
getValue, getValue, setValue, validateaddParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validatepublic String getAltRepresentation()
ICalPropertypublic void setAltRepresentation(String uri)
ICalPropertyuri - the URI (such as a URL to a vCard) or null to removepublic String getLanguage()
ICalPropertypublic void setLanguage(String language)
ICalPropertylanguage - the language (e.g. "en" for English) or null to removeCopyright © 2013-2015 Michael Angstadt. All Rights Reserved.