public class Organizer extends TextProperty
This property has different meanings depending on the component it belongs to:
VEvent
- The organizer of the event.VTodo
- The creator of the to-do task.VJournal
- The owner of the journal entry.VFreeBusy
- The person requesting the free/busy time.Code sample:
VEvent event = new VEvent(); Organizer organizer = Organizer.email("johndoe@example.com"); organizer.setCommonName("John Doe"); event.setOrganizer(organizer);
value
parameters
Constructor and Description |
---|
Organizer(String uri)
Creates an organizer property
|
Modifier and Type | Method and Description |
---|---|
static Organizer |
email(String email)
Creates an organizer property using an email address as its value.
|
String |
getCommonName()
Gets the display name of the person.
|
String |
getDirectoryEntry()
Gets a URI that contains additional information about the person.
|
String |
getLanguage()
Gets the language that the common name parameter is written in.
|
String |
getSentBy()
Gets a person that is acting on behalf of the person defined in the
property.
|
void |
setCommonName(String commonName)
Sets the display name of the person.
|
void |
setDirectoryEntry(String directoryEntry)
Sets a URI that contains additional information about the person.
|
void |
setLanguage(String language)
Sets the language that the common name parameter is written in.
|
void |
setSentBy(String sentBy)
Sets a person that is acting on behalf of the person defined in the
property.
|
getValue, setValue, validate
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate
public static Organizer email(String email)
email
- the email address (e.g. "johndoe@example.com")public String getSentBy()
ICalProperty
public void setSentBy(String sentBy)
ICalProperty
sentBy
- a URI representing the person (typically, an email URI, e.g.
"mailto:janedoe@example.com") or null to removepublic String getCommonName()
ICalProperty
public void setCommonName(String commonName)
ICalProperty
commonName
- the display name (e.g. "John Doe") or null to removepublic String getDirectoryEntry()
ICalProperty
public void setDirectoryEntry(String directoryEntry)
ICalProperty
directoryEntry
- the URI (e.g. an LDAP URI) or null to removepublic String getLanguage()
public void setLanguage(String language)
language
- the language (e.g. "en" for English) or null to removeCopyright © 2013-2014 Michael Angstadt. All Rights Reserved.