|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectezvcard.VCard
public class VCard
Represents a vCard.
Constructor Summary | |
---|---|
VCard()
|
Method Summary | ||
---|---|---|
void |
addAddress(Address address)
Adds a mailing address. |
|
void |
addAddressAlt(Address... altRepresentations)
Adds an address property as a group of alternative representations (see: description of ALTID ). |
|
void |
addAddressAlt(Collection<Address> altRepresentations)
Adds an address property as a group of alternative representations (see: description of ALTID ). |
|
void |
addCalendarRequestUri(CalendarRequestUri calendarRequestUri)
Adds a URI that can be used to schedule a meeting with the person on his or her calendar. |
|
void |
addCalendarRequestUriAlt(CalendarRequestUri... altRepresentations)
Adds a calendar request URI property as a group of alternative representations (see: description of
ALTID ). |
|
void |
addCalendarRequestUriAlt(Collection<CalendarRequestUri> altRepresentations)
Adds a calendar request URI property as a group of alternative representations (see: description of
ALTID ). |
|
void |
addCalendarUri(CalendarUri calendarUri)
Adds a URI that points to the person's calendar. |
|
void |
addCalendarUriAlt(CalendarUri... altRepresentations)
Adds a calendar URI property as a group of alternative representations (see: description of ALTID ). |
|
void |
addCalendarUriAlt(Collection<CalendarUri> altRepresentations)
Adds a calendar URI property as a group of alternative representations (see: description of ALTID ). |
|
void |
addCategories(Categories categories)
Adds a list of keywords (aka "tags") that can be used to describe the person. |
|
void |
addCategoriesAlt(Categories... altRepresentations)
Adds a categories property as a group of alternative representations (see: description of ALTID ). |
|
void |
addCategoriesAlt(Collection<Categories> altRepresentations)
Adds a categories property as a group of alternative representations (see: description of ALTID ). |
|
void |
addClientPidMap(ClientPidMap clientPidMap)
Adds a property that is used to assign a globally-unique identifier to an individual property instance. |
|
void |
addEmail(Email email)
Adds an email address. |
|
Email |
addEmail(String email,
EmailType... types)
Adds an email address. |
|
void |
addEmailAlt(Collection<Email> altRepresentations)
Adds an email property as a group of alternative representations (see: description of ALTID ). |
|
void |
addEmailAlt(Email... altRepresentations)
Adds an email property as a group of alternative representations (see: description of ALTID ). |
|
void |
addExpertise(Expertise expertise)
Adds a professional subject area of which the the person is knowledgeable. |
|
Expertise |
addExpertise(String expertise)
Adds a professional subject area of which the the person is knowledgeable. |
|
void |
addExpertiseAlt(Collection<Expertise> altRepresentations)
Adds an expertise property as a group of alternative representations (see: description of ALTID ). |
|
void |
addExpertiseAlt(Expertise... altRepresentations)
Adds an expertise property as a group of alternative representations (see: description of ALTID ). |
|
RawProperty |
addExtendedProperty(String name,
String value)
Adds an extended property. |
|
void |
addFbUrl(FreeBusyUrl fbUrl)
Adds a URL that can be used to determine when the person is free and/or busy. |
|
void |
addFbUrlAlt(Collection<FreeBusyUrl> altRepresentations)
Adds an fburl property as a group of alternative representations (see: description of ALTID ). |
|
void |
addFbUrlAlt(FreeBusyUrl... altRepresentations)
Adds an fburl property as a group of alternative representations (see: description of ALTID ). |
|
void |
addFormattedName(FormattedName formattedName)
Adds a text value used for displaying the person's name. |
|
void |
addFormattedNameAlt(Collection<FormattedName> altRepresentations)
Adds a formatted name property as a group of alternative representations (see: description of ALTID ). |
|
void |
addFormattedNameAlt(FormattedName... altRepresentations)
Adds a formatted name property as a group of alternative representations (see: description of ALTID ). |
|
void |
addGeo(Geo geo)
Adds a geographical position of where the person lives/works. |
|
void |
addGeoAlt(Collection<Geo> altRepresentations)
Adds a geographical position of where the person lives/works as a group of alternative representations (see: description of ALTID ). |
|
void |
addGeoAlt(Geo... altRepresentations)
Adds a geographical position of where the person lives/works as a group of alternative representations (see: description of ALTID ). |
|
void |
addHobby(Hobby hobby)
Adds a hobby that the person actively engages in. |
|
Hobby |
addHobby(String hobby)
Adds a hobby that the person actively engages in. |
|
void |
addHobbyAlt(Collection<Hobby> altRepresentations)
Adds a hobby property as a group of alternative representations (see: description of ALTID ). |
|
void |
addHobbyAlt(Hobby... altRepresentations)
Adds a hobby property as a group of alternative representations (see: description of ALTID ). |
|
void |
addImpp(Impp impp)
Adds an instant messaging handle. |
|
void |
addImppAlt(Collection<Impp> altRepresentations)
Adds an impp property as a group of alternative representations (see: description of ALTID ). |
|
void |
addImppAlt(Impp... altRepresentations)
Adds an impp property as a group of alternative representations (see: description of ALTID ). |
|
void |
addInterest(Interest interest)
Adds an interest. |
|
Interest |
addInterest(String interest)
Adds an interest. |
|
void |
addInterestAlt(Collection<Interest> altRepresentations)
Adds an interest property as a group of alternative representations (see: description of ALTID ). |
|
void |
addInterestAlt(Interest... altRepresentations)
Adds an interest property as a group of alternative representations (see: description of ALTID ). |
|
void |
addKey(Key key)
Adds a public encryption key. |
|
void |
addKeyAlt(Collection<Key> altRepresentations)
Adds a key property as a group of alternative representations (see: description of ALTID ). |
|
void |
addKeyAlt(Key... altRepresentations)
Adds a key property as a group of alternative representations (see: description of ALTID ). |
|
void |
addLanguage(Language language)
Adds a language that the person speaks. |
|
Language |
addLanguage(String language)
Adds a language that the person speaks. |
|
void |
addLanguageAlt(Collection<Language> altRepresentations)
Adds a language property as a group of alternative representations (see: description of ALTID ). |
|
void |
addLanguageAlt(Language... altRepresentations)
Adds a language property as a group of alternative representations (see: description of ALTID ). |
|
void |
addLogo(Logo logo)
Adds a logo to the vCard, such as a company logo. |
|
void |
addLogoAlt(Collection<Logo> altRepresentations)
Adds a logo property as a group of alternative representations (see: description of ALTID ). |
|
void |
addLogoAlt(Logo... altRepresentations)
Adds a logo property as a group of alternative representations (see: description of ALTID ). |
|
void |
addMember(Member member)
Adds a member to the group. |
|
void |
addMemberAlt(Collection<Member> altRepresentations)
Adds a member property as a group of alternative representations (see: description of ALTID ). |
|
void |
addMemberAlt(Member... altRepresentations)
Adds a member property as a group of alternative representations (see: description of ALTID ). |
|
void |
addNickname(Nickname nickname)
Adds a set of nicknames. |
|
void |
addNicknameAlt(Collection<Nickname> altRepresentations)
Adds a nickname property as a group of alternative representations (see: description of ALTID ). |
|
void |
addNicknameAlt(Nickname... altRepresentations)
Adds a nickname property as a group of alternative representations (see: description of ALTID ). |
|
void |
addNote(Note note)
Adds a note. |
|
Note |
addNote(String note)
Adds a note. |
|
void |
addNoteAlt(Collection<Note> altRepresentations)
Adds a note property as a group of alternative representations (see: description of ALTID ). |
|
void |
addNoteAlt(Note... altRepresentations)
Adds a note property as a group of alternative representations (see: description of ALTID ). |
|
void |
addOrganization(Organization organization)
Adds a hierarchy of departments to which the person belongs. |
|
void |
addOrganizationAlt(Collection<Organization> altRepresentations)
Adds an organization property as a group of alternative representations (see: description of ALTID ). |
|
void |
addOrganizationAlt(Organization... altRepresentations)
Adds an organization property as a group of alternative representations (see: description of ALTID ). |
|
void |
addOrgDirectory(OrgDirectory orgDirectory)
Adds an organization directory. |
|
OrgDirectory |
addOrgDirectory(String orgDirectory)
Adds an organization directory. |
|
void |
addOrgDirectoryAlt(Collection<OrgDirectory> altRepresentations)
Adds an org directory property as a group of alternative representations (see: description of ALTID ). |
|
void |
addOrgDirectoryAlt(OrgDirectory... altRepresentations)
Adds an org directory property as a group of alternative representations (see: description of ALTID ). |
|
void |
addOrphanedLabel(Label label)
Adds a mailing label which is not associated with any address. |
|
void |
addPhoto(Photo photo)
Adds a photo to the vCard, such as a picture of the person's face. |
|
void |
addPhotoAlt(Collection<Photo> altRepresentations)
Adds a photo property as a group of alternative representations (see: description of ALTID ). |
|
void |
addPhotoAlt(Photo... altRepresentations)
Adds a photo property as a group of alternative representations (see: description of ALTID ). |
|
void |
addProperty(VCardProperty property)
Adds a property. |
|
|
addPropertyAlt(Class<T> propertyClass,
Collection<T> altRepresentations)
Adds a property in the form of a collection of alternative representations. |
|
|
addPropertyAlt(Class<T> propertyClass,
T... altRepresentations)
Adds a property in the form of a collection of alternative representations. |
|
void |
addRelated(Related related)
Adds someone that the person is related to. |
|
void |
addRelatedAlt(Collection<Related> altRepresentations)
Adds a related property as a group of alternative representations (see: description of ALTID ). |
|
void |
addRelatedAlt(Related... altRepresentations)
Adds a related property as a group of alternative representations (see: description of ALTID ). |
|
void |
addRole(Role role)
Adds a role associated with the person. |
|
Role |
addRole(String role)
Adds a role associated with the person. |
|
void |
addRoleAlt(Collection<Role> altRepresentations)
Adds a role property as a group of alternative representations (see: description of ALTID ). |
|
void |
addRoleAlt(Role... altRepresentations)
Adds a role property as a group of alternative representations (see: description of ALTID ). |
|
void |
addSound(Sound sound)
Adds a sound to the vCard, such as a pronunciation of the person's name. |
|
void |
addSoundAlt(Collection<Sound> altRepresentations)
Adds a sound property as a group of alternative representations (see: description of ALTID ). |
|
void |
addSoundAlt(Sound... altRepresentations)
Adds a sound property as a group of alternative representations (see: description of ALTID ). |
|
void |
addSource(Source source)
Adds a URI that can be used to retrieve the most up-to-date version of the person's vCard. |
|
Source |
addSource(String source)
Adds a URI that can be used to retrieve the most up-to-date version of the person's vCard. |
|
void |
addSourceAlt(Collection<Source> altRepresentations)
Adds a source property as a group of alternative representations (see: description of ALTID ). |
|
void |
addSourceAlt(Source... altRepresentations)
Adds a source property as a group of alternative representations (see: description of ALTID ). |
|
Telephone |
addTelephoneNumber(String telephoneNumber,
TelephoneType... types)
Adds a telephone number. |
|
void |
addTelephoneNumber(Telephone telephoneNumber)
Adds a telephone number. |
|
void |
addTelephoneNumberAlt(Collection<Telephone> altRepresentations)
Adds a telephone property as a group of alternative representations (see: description of ALTID ). |
|
void |
addTelephoneNumberAlt(Telephone... altRepresentations)
Adds a telephone property as a group of alternative representations (see: description of ALTID ). |
|
void |
addTimezone(Timezone timezone)
Adds a timezone the person lives/works in. |
|
void |
addTimezoneAlt(Collection<Timezone> altRepresentations)
Adds a timezone the person lives/works in as a group of alternative representations (see: description of
ALTID ). |
|
void |
addTimezoneAlt(Timezone... altRepresentations)
Adds a timezone the person lives/works in as a group of alternative representations (see: description of
ALTID ). |
|
Title |
addTitle(String title)
Adds a title associated with the person. |
|
void |
addTitle(Title title)
Adds a title associated with the person. |
|
void |
addTitleAlt(Collection<Title> altRepresentations)
Adds a title property as a group of alternative representations (see: description of ALTID ). |
|
void |
addTitleAlt(Title... altRepresentations)
Adds a title property as a group of alternative representations (see: description of ALTID ). |
|
Url |
addUrl(String url)
Adds a URL. |
|
void |
addUrl(Url url)
Adds a URL. |
|
void |
addUrlAlt(Collection<Url> altRepresentations)
Adds a URL property as a group of alternative representations (see: description of ALTID ). |
|
void |
addUrlAlt(Url... altRepresentations)
Adds a URL property as a group of alternative representations (see: description of ALTID ). |
|
void |
addXml(Xml xml)
Adds XML data to the vCard. |
|
void |
addXmlAlt(Collection<Xml> altRepresentations)
Adds an XML property as a group of alternative representations (see: description of ALTID ). |
|
void |
addXmlAlt(Xml... altRepresentations)
Adds an XML property as a group of alternative representations (see: description of ALTID ). |
|
List<Address> |
getAddresses()
Gets the mailing addresses. |
|
Agent |
getAgent()
Gets information about the person's agent. |
|
List<Anniversary> |
getAnniversaries()
Gets all anniversary property instances. |
|
Anniversary |
getAnniversary()
Gets the person's anniversary. |
|
Birthday |
getBirthday()
Gets the person's birthday. |
|
List<Birthday> |
getBirthdays()
Gets all birthday property instances. |
|
Birthplace |
getBirthplace()
Gets the person's birthplace. |
|
List<Birthplace> |
getBirthplaces()
Gets all birthplace property instances. |
|
List<CalendarRequestUri> |
getCalendarRequestUris()
Gets the URIs that can be used to schedule a meeting with the person on his or her calendar. |
|
List<CalendarUri> |
getCalendarUris()
Gets the URIs that point to the person's calendar. |
|
Categories |
getCategories()
Gets the list of keywords (aka "tags") that can be used to describe the person. |
|
List<Categories> |
getCategoriesList()
Gets all instances of the categories property. |
|
Classification |
getClassification()
Gets the classification of the vCard, which describes the sensitivity of the information in the vCard. |
|
List<ClientPidMap> |
getClientPidMaps()
Gets the properties that are used to assign globally-unique identifiers to individual property instances. |
|
Deathdate |
getDeathdate()
Gets the person's time of death. |
|
List<Deathdate> |
getDeathdates()
Gets all death date property instances. |
|
Deathplace |
getDeathplace()
Gets the person's deathplace. |
|
List<Deathplace> |
getDeathplaces()
Gets all deathplace property instances. |
|
List<Email> |
getEmails()
Gets the email addresses. |
|
List<Expertise> |
getExpertise()
Gets the professional subject areas of which the the person is knowledgeable. |
|
List<RawProperty> |
getExtendedProperties()
Gets all extended properties. |
|
List<RawProperty> |
getExtendedProperties(String name)
Gets all extended properties with a given name. |
|
RawProperty |
getExtendedProperty(String name)
Gets the first extended property with a given name. |
|
List<FreeBusyUrl> |
getFbUrls()
Gets the URLs that can be used to determine when the person is free and/or busy. |
|
FormattedName |
getFormattedName()
Gets the text value used for displaying the person's name. |
|
List<FormattedName> |
getFormattedNames()
Gets all instances of the formatted name property. |
|
Gender |
getGender()
Gets the gender of the person. |
|
Geo |
getGeo()
Gets the geographical position of where the person lives/works. |
|
List<Geo> |
getGeos()
Gets all instances of the geo property. |
|
List<Hobby> |
getHobbies()
Gets the hobbies that the person actively engages in. |
|
List<Impp> |
getImpps()
Gets the instant messaging handles. |
|
List<Interest> |
getInterests()
Gets the person's interests. |
|
List<Key> |
getKeys()
Gets the public encryption keys. |
|
Kind |
getKind()
Gets the type of entity this vCard represents. |
|
List<Language> |
getLanguages()
Gets the languages that the person speaks. |
|
List<Logo> |
getLogos()
Gets the logos attached to the vCard, such a company logo. |
|
Mailer |
getMailer()
Gets the email client that the person uses. |
|
List<Member> |
getMembers()
Gets the members of the group. |
|
Nickname |
getNickname()
Gets the person's nicknames. |
|
List<Nickname> |
getNicknames()
Gets all instances of the nickname property. |
|
List<Note> |
getNotes()
Gets the notes. |
|
Organization |
getOrganization()
Gets the hierarchy of department(s) to which the person belongs. |
|
List<Organization> |
getOrganizations()
Gets all instances of the organization property. |
|
List<OrgDirectory> |
getOrgDirectories()
Gets the organization directories. |
|
List<Label> |
getOrphanedLabels()
Gets all mailing labels that could not be assigned to an address. |
|
List<Photo> |
getPhotos()
Gets the photos attached to the vCard, such as a picture of the person's face. |
|
ProductId |
getProdId()
Gets the product ID, which identifies the software that created the vCard. |
|
Profile |
getProfile()
Gets the PROFILE property. |
|
Collection<VCardProperty> |
getProperties()
Gets all the properties in this vCard. |
|
|
getProperties(Class<T> clazz)
Gets all properties of a given class. |
|
|
getPropertiesAlt(Class<T> clazz)
Gets all properties of a given class, grouping the alternative representations of each property together (see: description of ALTID ) |
|
|
getProperty(Class<T> clazz)
Gets the first property of a given class. |
|
List<Related> |
getRelations()
Gets a list of people that the person is related to. |
|
Revision |
getRevision()
Gets the time that the vCard was last modified. |
|
List<Role> |
getRoles()
Gets the roles associated with the person. |
|
SortString |
getSortString()
Gets the string that should be used to sort the vCard. |
|
List<Sound> |
getSounds()
Gets the sounds attached to the vCard, such as a pronunciation of the person's name. |
|
SourceDisplayText |
getSourceDisplayText()
Gets a textual representation of the SOURCE property. |
|
List<Source> |
getSources()
Gets the URIs that can be used to retrieve the most up-to-date version of the person's vCard. |
|
StructuredName |
getStructuredName()
Gets the individual components of the person's name. |
|
List<StructuredName> |
getStructuredNames()
Gets all structured name properties. |
|
List<Telephone> |
getTelephoneNumbers()
Gets the telephone numbers. |
|
Timezone |
getTimezone()
Gets the timezone the person lives/works in. |
|
List<Timezone> |
getTimezones()
Gets all instances of the timezone property. |
|
List<Title> |
getTitles()
Gets the titles associated with the person. |
|
Uid |
getUid()
Gets the unique identifier of the vCard. |
|
List<Url> |
getUrls()
Gets the URLs. |
|
VCardVersion |
getVersion()
Gets the version attached to this vCard. |
|
List<Xml> |
getXmls()
Gets any XML data that is attached to the vCard. |
|
Iterator<VCardProperty> |
iterator()
Iterates through each of the vCard's properties in no particular order. |
|
void |
removeExtendedProperty(String name)
Removes all extended properties that have the given name. |
|
void |
removeProperties(Class<? extends VCardProperty> clazz)
Removes all properties of a given class. |
|
void |
removeProperty(VCardProperty property)
Removes a property instance from the vCard. |
|
void |
setAgent(Agent agent)
Sets information about the person's agent. |
|
void |
setAnniversary(Anniversary anniversary)
Sets the person's anniversary. |
|
void |
setAnniversaryAlt(Anniversary... altRepresentations)
Sets the person's anniversary as a group of alternative representations (see VCardParameters.getAltId() for more details). |
|
void |
setAnniversaryAlt(Collection<Anniversary> altRepresentations)
Sets the person's anniversary as a group of alternative representations (see VCardParameters.getAltId() for more details). |
|
void |
setBirthday(Birthday birthday)
Sets the person's birthday. |
|
void |
setBirthdayAlt(Birthday... altRepresentations)
Sets the person's birthday as a group of alternative representations (see: description of ALTID ). |
|
void |
setBirthdayAlt(Collection<Birthday> altRepresentations)
Sets the person's birthday as a group of alternative representations (see: description of ALTID ). |
|
void |
setBirthplace(Birthplace birthplace)
Sets the person's birthplace. |
|
void |
setBirthplaceAlt(Birthplace... altRepresentations)
Sets the person's birthplace as a group of alternative representations (see: description of ALTID . |
|
void |
setBirthplaceAlt(Collection<Birthplace> altRepresentations)
Sets the person's birthplace as a group of alternative representations (see: description of ALTID . |
|
void |
setCategories(Categories categories)
Sets the list of keywords (aka "tags") that can be used to describe the person. |
|
Categories |
setCategories(String... categories)
Sets the list of keywords (aka "tags") that can be used to describe the person. |
|
void |
setCategoriesAlt(Categories... altRepresentations)
Sets the categories property as a group of alternative representations (see: description of ALTID ). |
|
void |
setCategoriesAlt(Collection<Categories> altRepresentations)
Sets the categories property as a group of alternative representations (see: description of ALTID ). |
|
void |
setClassification(Classification classification)
Sets the classification of the vCard, which describes the sensitivity of the information in the vCard. |
|
Classification |
setClassification(String classification)
Sets the classification of the vCard, which describes the sensitivity of the information in the vCard. |
|
void |
setDeathdate(Deathdate deathdate)
Sets the person's time of death. |
|
void |
setDeathdateAlt(Collection<Deathdate> altRepresentations)
Sets the deathdate property as a group of alternative representations (see: description of ALTID ). |
|
void |
setDeathdateAlt(Deathdate... altRepresentations)
Sets the deathdate property as a group of alternative representations (see: description of ALTID ). |
|
void |
setDeathplace(Deathplace deathplace)
Sets the person's deathplace. |
|
void |
setDeathplaceAlt(Collection<Deathplace> altRepresentations)
Sets the person's deathplace as a group of alternative representations (see VCardParameters.getAltId() for more details). |
|
void |
setDeathplaceAlt(Deathplace... altRepresentations)
Sets the person's deathplace as a group of alternative representations (see VCardParameters.getAltId() for more details). |
|
RawProperty |
setExtendedProperty(String name,
String value)
Replaces all existing extended properties with the given name with a single property instance. |
|
void |
setFormattedName(FormattedName formattedName)
Sets the text value used for displaying the person's name. |
|
FormattedName |
setFormattedName(String formattedName)
Sets the text value used for displaying the person's name. |
|
void |
setFormattedNameAlt(Collection<FormattedName> altRepresentations)
Sets the formatted name property as a group of alternative representations (see: description of
ALTID ). |
|
void |
setFormattedNameAlt(FormattedName... altRepresentations)
Sets the formatted name property as a group of alternative representations (see: description of
ALTID ). |
|
void |
setGender(Gender gender)
Sets the gender of the person. |
|
Geo |
setGeo(double latitude,
double longitude)
Sets the geographical position of where the person lives/works. |
|
void |
setGeo(Geo geo)
Sets the geographical position of where the person lives/works. |
|
void |
setGeoAlt(Collection<Geo> altRepresentations)
Sets the geographical position of where the person lives/works as a group of alternative representations (see: description of ALTID ). |
|
void |
setKind(Kind kind)
Sets the type of entity this vCard represents. |
|
void |
setMailer(Mailer mailer)
Sets the email client that the person uses. |
|
Mailer |
setMailer(String mailer)
Sets the email client that the person uses. |
|
void |
setNickname(Nickname nickname)
Sets the person's nickname(s). |
|
Nickname |
setNickname(String... nicknames)
Sets the person's nicknames. |
|
void |
setNicknameAlt(Collection<Nickname> altRepresentations)
Sets the nickname property as a group of alternative representations (see: description of ALTID ). |
|
void |
setNicknameAlt(Nickname... altRepresentations)
Sets the nickname property as a group of alternative representations (see: description of ALTID ). |
|
void |
setOrganization(Organization organization)
Sets the hierarchy of departments to which the person belongs. |
|
Organization |
setOrganization(String... departments)
Sets the hierarchy of departments to which the person belongs. |
|
void |
setOrganizationAlt(Collection<Organization> altRepresentations)
Sets the organization property as a group of alternative representations (see: description of ALTID ). |
|
void |
setOrganizationAlt(Organization... altRepresentations)
Sets the organization property as a group of alternative representations (see: description of ALTID ). |
|
void |
setProdId(ProductId prodId)
Sets the product ID, which identifies the software that created the vCard. |
|
ProductId |
setProdId(String prodId)
Sets the product ID, which identifies the software that created the vCard. |
|
void |
setProfile(Profile profile)
Sets the PROFILE property. |
|
|
setProperty(Class<T> clazz,
T property)
Replaces all existing properties of the given class with a single property instance. |
|
|
setPropertyAlt(Class<T> propertyClass,
Collection<T> altRepresentations)
Sets a property in the form of a collection of alternative representations. |
|
|
setPropertyAlt(Class<T> propertyClass,
T... altRepresentations)
Sets a property in the form of a collection of alternative representations. |
|
Revision |
setRevision(Date rev)
Sets the time that the vCard was last modified. |
|
void |
setRevision(Revision rev)
Sets the time that the vCard was last modified. |
|
void |
setSortString(SortString sortString)
Sets the string that should be used to sort the vCard. |
|
SortString |
setSortString(String sortString)
Sets the string that should be used to sort the vCard. |
|
void |
setSourceDisplayText(SourceDisplayText sourceDisplayText)
Sets a textual representation of the SOURCE property. |
|
SourceDisplayText |
setSourceDisplayText(String sourceDisplayText)
Sets a textual representation of the SOURCE property. |
|
void |
setStructuredName(StructuredName structuredName)
Sets the individual components of the person's name. |
|
void |
setStructuredNameAlt(Collection<StructuredName> altRepresentations)
Sets the structured name property as a group of alternative representations (see VCardParameters.getAltId() for more details). |
|
void |
setStructuredNameAlt(StructuredName... altRepresentations)
Sets the structured name property as a group of alternative representations (see VCardParameters.getAltId() for more details). |
|
void |
setTimezone(Timezone timezone)
Sets the timezone the person lives/works in. |
|
void |
setTimezoneAlt(Collection<Timezone> altRepresentations)
Sets the timezone the person lives/works in as a group of alternative representations (see: description of
ALTID ). |
|
void |
setTimezoneAlt(Timezone... altRepresentations)
Sets the timezone the person lives/works in as a group of alternative representations (see: description of
ALTID ). |
|
void |
setUid(Uid uid)
Sets the unique identifier of the vCard. |
|
void |
setVersion(VCardVersion version)
Sets the version of this vCard. |
|
ValidationWarnings |
validate(VCardVersion version)
Checks this vCard for data consistency problems or deviations from the spec. |
|
String |
write()
Marshals this vCard to its text representation. |
|
void |
write(File file)
Marshals this vCard to its text representation. |
|
void |
write(OutputStream out)
Marshals this vCard to its text representation. |
|
void |
write(Writer writer)
Marshals this vCard to its text representation. |
|
String |
writeHtml()
Marshals this vCard to a basic HTML page (hCard). |
|
void |
writeHtml(File file)
Marshals this vCard to a basic HTML page (hCard). |
|
void |
writeHtml(OutputStream out)
Marshals this vCard to a basic HTML page (hCard). |
|
void |
writeHtml(Writer writer)
Marshals this vCard to a basic HTML page (hCard). |
|
String |
writeJson()
Marshals this vCard to its JSON representation (jCard). |
|
void |
writeJson(File file)
Marshals this vCard to its JSON representation (jCard). |
|
void |
writeJson(OutputStream out)
Marshals this vCard to its JSON representation (jCard). |
|
void |
writeJson(Writer writer)
Marshals this vCard to its JSON representation (jCard). |
|
String |
writeXml()
Marshals this vCard to its XML representation (xCard). |
|
void |
writeXml(File file)
Marshals this vCard to its XML representation (xCard). |
|
void |
writeXml(OutputStream out)
Marshals this vCard to its XML representation (xCard). |
|
void |
writeXml(Writer writer)
Marshals this vCard to its XML representation (xCard). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VCard()
Method Detail |
---|
public String write()
Marshals this vCard to its text representation.
The vCard will be marshalled to whatever version is attached to this
VCard object (see setVersion(VCardVersion)
). If no version is
set, then it will be marshalled to 3.0.
Use the Ezvcard
class to customize the marshalling process and to
write multiple vCards to the same stream.
Ezvcard
,
vCard 2.1,
RFC 2426 (3.0),
RFC 6350 (4.0)public void write(File file) throws IOException
Marshals this vCard to its text representation.
The vCard will be marshalled to whatever version is attached to this
VCard object (see setVersion(VCardVersion)
). If no version is
set, then it will be marshalled to 3.0.
Use the Ezvcard
class to customize the marshalling process and to
write multiple vCards to the same stream.
file
- the file to write the vCard to
IOException
- if there's a problem writing to the fileEzvcard
,
vCard 2.1,
RFC 2426 (3.0),
RFC 6350 (4.0)public void write(OutputStream out) throws IOException
Marshals this vCard to its text representation.
The vCard will be marshalled to whatever version is attached to this
VCard object (see setVersion(VCardVersion)
). If no version is
set, then it will be marshalled to 3.0.
Use the Ezvcard
class to customize the marshalling process and to
write multiple vCards to the same stream.
out
- the output stream to write the vCard to
IOException
- if there's a problem writing to the output streamEzvcard
,
vCard 2.1,
RFC 2426 (3.0),
RFC 6350 (4.0)public void write(Writer writer) throws IOException
Marshals this vCard to its text representation.
The vCard will be marshalled to whatever version is attached to this
VCard object (see setVersion(VCardVersion)
). If no version is
set, then it will be marshalled to 3.0.
Use the Ezvcard
class to customize the marshalling process and to
write multiple vCards to the same stream.
writer
- the writer to write the vCard to
IOException
- if there's a problem writing to the writerEzvcard
,
vCard 2.1,
RFC 2426 (3.0),
RFC 6350 (4.0)public String writeXml()
Marshals this vCard to its XML representation (xCard).
Use the Ezvcard
class to customize the marshalling process and to
write multiple vCards to the same stream.
Ezvcard
,
RFC 6351public void writeXml(File file) throws IOException, TransformerException
Marshals this vCard to its XML representation (xCard).
Use the Ezvcard
class to customize the marshalling process and to
write multiple vCards to the same stream.
file
- the file to write to
IOException
- if there's a problem writing to the file
TransformerException
- if there's a problem writing the vCardEzvcard
,
RFC 6351public void writeXml(OutputStream out) throws TransformerException
Marshals this vCard to its XML representation (xCard).
Use the Ezvcard
class to customize the marshalling process and to
write multiple vCards to the same stream.
out
- the output stream to write the vCard to
TransformerException
- if there's a problem writing to the output
streamEzvcard
,
RFC 6351public void writeXml(Writer writer) throws TransformerException
Marshals this vCard to its XML representation (xCard).
Use the Ezvcard
class to customize the marshalling process and to
write multiple vCards to the same stream.
writer
- the writer to write the vCard to
TransformerException
- if there's a problem writing to the writerEzvcard
,
RFC 6351public String writeHtml()
Marshals this vCard to a basic HTML page (hCard).
Use the Ezvcard
class to customize the marshalling process and to
write multiple vCards to the same stream.
Ezvcard
,
hCard 1.0public void writeHtml(File file) throws IOException
Marshals this vCard to a basic HTML page (hCard).
Use the Ezvcard
class to customize the marshalling process and to
write multiple vCards to the same stream.
file
- the file to write to
IOException
- if there's a problem writing to the fileEzvcard
,
hCard 1.0public void writeHtml(OutputStream out) throws IOException
Marshals this vCard to a basic HTML page (hCard).
Use the Ezvcard
class to customize the marshalling process and to
write multiple vCards to the same stream.
out
- the output stream to write to
IOException
- if there's a problem writing to the output streamEzvcard
,
hCard 1.0public void writeHtml(Writer writer) throws IOException
Marshals this vCard to a basic HTML page (hCard).
Use the Ezvcard
class to customize the marshalling process and to
write multiple vCards to the same stream.
writer
- the writer to write to
IOException
- if there's a problem writing to the writerEzvcard
,
hCard 1.0public String writeJson()
Marshals this vCard to its JSON representation (jCard).
Use the Ezvcard
class to customize the marshalling process and to
write multiple vCards to the same stream.
Ezvcard
,
RFC 7095public void writeJson(File file) throws IOException
Marshals this vCard to its JSON representation (jCard).
Use the Ezvcard
class to customize the marshalling process and to
write multiple vCards to the same stream.
file
- the file to write the vCard to
IOException
- if there's a problem writing to the fileEzvcard
,
RFC 7095public void writeJson(OutputStream out) throws IOException
Marshals this vCard to its JSON representation (jCard).
Use the Ezvcard
class to customize the marshalling process and to
write multiple vCards to the same stream.
out
- the output stream to write the vCard to
IOException
- if there's a problem writing to the output streamEzvcard
,
RFC 7095public void writeJson(Writer writer) throws IOException
Marshals this vCard to its JSON representation (jCard).
Use the Ezvcard
class to customize the marshalling process and to
write multiple vCards to the same stream.
writer
- the writer to write the vCard to
IOException
- if there's a problem writing to the writerEzvcard
,
RFC 7095public VCardVersion getVersion()
public void setVersion(VCardVersion version)
VCardWriter
class, use the setTargetVersion
method to define what version the vCard should be
marshalled as. VCardWriter
does not look at the version
that is set on the VCard object.
version
- the vCard versionpublic Kind getKind()
Property name: KIND
Supported versions: 4.0
public void setKind(Kind kind)
Property name: KIND
Supported versions: 4.0
kind
- the kindpublic Gender getGender()
Property name: GENDER
Supported versions: 4.0
public void setGender(Gender gender)
Property name: GENDER
Supported versions: 4.0
gender
- the genderpublic List<Member> getMembers()
VCard vcard = ... Kind kind = vcard.getKind(); if (kind != null && kind.isGroup()){ for (Member member : vcard.getMembers(){ ... } }
Property name: MEMBER
Supported versions: 4.0
public void addMember(Member member)
VCard vcard = new VCard(); vcard.setKind(Kind.group()); vcard.addMember(...);
Property name: MEMBER
Supported versions: 4.0
member
- the member to addpublic void addMemberAlt(Collection<Member> altRepresentations)
Adds a member property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: MEMBER
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void addMemberAlt(Member... altRepresentations)
Adds a member property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: MEMBER
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic Profile getProfile()
Property name: PROFILE
Supported versions: 3.0
public void setProfile(Profile profile)
Property name: PROFILE
Supported versions: 3.0
profile
- the propertypublic Classification getClassification()
Property name: CLASS
Supported versions: 3.0
public void setClassification(Classification classification)
Property name: CLASS
Supported versions: 3.0
classification
- the classificationpublic Classification setClassification(String classification)
setClassification(Classification)
.
Property name: CLASS
Supported versions: 3.0
classification
- the classification (e.g. "PUBLIC", "PRIVATE",
"CONFIDENTIAL") or null to remove
public List<Source> getSources()
Property name: SOURCE
Supported versions: 3.0, 4.0
public void addSource(Source source)
Property name: SOURCE
Supported versions: 3.0, 4.0
source
- the sourcepublic Source addSource(String source)
addSource(Source)
.
Property name: SOURCE
Supported versions: 3.0, 4.0
source
- the source URI (e.g. "http://example.com/vcard.vcf")
public void addSourceAlt(Collection<Source> altRepresentations)
Adds a source property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: SOURCE
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addSourceAlt(Source... altRepresentations)
Adds a source property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: SOURCE
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic SourceDisplayText getSourceDisplayText()
Property name: NAME
Supported versions: 3.0
public void setSourceDisplayText(SourceDisplayText sourceDisplayText)
Property name: NAME
Supported versions: 3.0
sourceDisplayText
- a textual representation of the vCard sourcepublic SourceDisplayText setSourceDisplayText(String sourceDisplayText)
setSourceDisplayText(SourceDisplayText)
.
Property name: NAME
Supported versions: 3.0
sourceDisplayText
- a textual representation of the vCard source or
null to remove
public List<FormattedName> getFormattedNames()
Gets all instances of the formatted name property. Version 4.0 vCards may
have multiple instances if alternative representations are defined (see:
description of ALTID
) or if properties
with different TYPE parameters are defined.
Property name: FN
Supported versions: 4.0*
* Only 4.0 supports multiple instances
public FormattedName getFormattedName()
Gets the text value used for displaying the person's name.
Property name: FN
Supported versions: 2.1, 3.0, 4.0
public void setFormattedNameAlt(Collection<FormattedName> altRepresentations)
Sets the formatted name property as a group of alternative
representations (see: description of
ALTID
). An appropriate ALTID parameter value is automatically generated
and assigned to the properties.
Property name: FN
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void setFormattedNameAlt(FormattedName... altRepresentations)
Sets the formatted name property as a group of alternative
representations (see: description of
ALTID
). An appropriate ALTID parameter value is automatically generated
and assigned to the properties.
Property name: FN
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addFormattedNameAlt(Collection<FormattedName> altRepresentations)
Adds a formatted name property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: FN
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addFormattedNameAlt(FormattedName... altRepresentations)
Adds a formatted name property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: FN
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void setFormattedName(FormattedName formattedName)
Sets the text value used for displaying the person's name.
Property name: FN
Supported versions: 2.1, 3.0, 4.0
formattedName
- the formatted name property or null to removepublic void addFormattedName(FormattedName formattedName)
Adds a text value used for displaying the person's name. Note that only version 4.0 vCards support multiple instances of this property.
Property name: FN
Supported versions: 4.0*
* Only 4.0 supports multiple instances
formattedName
- the formatted name propertypublic FormattedName setFormattedName(String formattedName)
Sets the text value used for displaying the person's name. This is a
convenience method for setFormattedName(FormattedName)
.
Property name: FN
Supported versions: 2.1, 3.0, 4.0
formattedName
- the formatted name (e.g. "John Doe") or null to
remove
public List<StructuredName> getStructuredNames()
Gets all structured name properties. Version 4.0 vCards may have multiple
instances if alternative representations are defined (see:
description of ALTID
).
Property name: N
Supported versions: 4.0*
public StructuredName getStructuredName()
Gets the individual components of the person's name.
Property name: N
Supported versions: 2.1, 3.0, 4.0
public void setStructuredNameAlt(Collection<StructuredName> altRepresentations)
Sets the structured name property as a group of alternative
representations (see VCardParameters.getAltId()
for more details).
An appropriate ALTID parameter value is automatically generated and
assigned to the properties.
Property name: N
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void setStructuredNameAlt(StructuredName... altRepresentations)
Sets the structured name property as a group of alternative
representations (see VCardParameters.getAltId()
for more details).
An appropriate ALTID parameter value is automatically generated and
assigned to the properties.
Property name: N
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void setStructuredName(StructuredName structuredName)
Property name: N
Supported versions: 2.1, 3.0, 4.0
structuredName
- the components of the person's name or null to
removepublic List<Nickname> getNicknames()
Gets all instances of the nickname property. Version 4.0 vCards may have
multiple instances if alternative representations are defined (see:
description of ALTID
) or if properties
with different TYPE parameters are defined.
Property name: NICKNAME
Supported versions: 3.0, 4.0
public Nickname getNickname()
Gets the person's nicknames.
Property name: NICKNAME
Supported versions: 3.0, 4.0
public void setNicknameAlt(Collection<Nickname> altRepresentations)
Sets the nickname property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: NICKNAME
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void setNicknameAlt(Nickname... altRepresentations)
Sets the nickname property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: NICKNAME
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addNicknameAlt(Collection<Nickname> altRepresentations)
Adds a nickname property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: NICKNAME
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addNicknameAlt(Nickname... altRepresentations)
Adds a nickname property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: NICKNAME
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void setNickname(Nickname nickname)
Sets the person's nickname(s).
Property name: NICKNAME
Supported versions: 3.0, 4.0
nickname
- the nickname property or null to remove (note that
multiple nicknames may be added this object)public void addNickname(Nickname nickname)
Adds a set of nicknames. Note that only version 4.0 vCards support multiple instances of this property.
Property name: NICKNAME
Supported versions: 4.0*
* Only 4.0 supports multiple instances
nickname
- the nickname property (note that multiple nicknames may
be added this object)public Nickname setNickname(String... nicknames)
Sets the person's nicknames. This is a convenience method for
setNickname(Nickname)
.
Property name: NICKNAME
Supported versions: 3.0, 4.0
nicknames
- the nickname(s) (e.g. "Jonny") or null to remove
public SortString getSortString()
Gets the string that should be used to sort the vCard.
For 4.0 vCards, use the StructuredName.getSortAs()
and/or
Organization.getSortAs()
methods.
Property name: SORT-STRING
Supported versions: 2.1, 3.0
public void setSortString(SortString sortString)
Sets the string that should be used to sort the vCard.
For 4.0 vCards, use the StructuredName.setSortAs(java.lang.String)
and/or
Organization.setSortAs(java.lang.String...)
methods.
Property name: SORT-STRING
Supported versions: 2.1, 3.0
sortString
- the sort stringpublic SortString setSortString(String sortString)
Sets the string that should be used to sort the vCard. This is a
convenience method for setSortString(SortString)
.
For 4.0 vCards, use the StructuredName.setSortAs(java.lang.String)
and/or
Organization.setSortAs(java.lang.String...)
methods.
Property name: SORT-STRING
Supported versions: 2.1, 3.0
sortString
- the sort string (e.g. "Armour" if the person's last
name is "d'Armour") or null to remove
public List<Title> getTitles()
Property name: TITLE
Supported versions: 2.1, 3.0, 4.0
public void addTitle(Title title)
Property name: TITLE
Supported versions: 2.1, 3.0, 4.0
title
- the titlepublic Title addTitle(String title)
addTitle(Title)
.
Property name: TITLE
Supported versions: 2.1, 3.0, 4.0
title
- the title (e.g. "V.P. Research and Development")
public void addTitleAlt(Collection<Title> altRepresentations)
Adds a title property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: TITLE
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addTitleAlt(Title... altRepresentations)
Adds a title property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: TITLE
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic List<Role> getRoles()
Property name: ROLE
Supported versions: 2.1, 3.0, 4.0
public void addRole(Role role)
Property name: ROLE
Supported versions: 2.1, 3.0, 4.0
role
- the rolepublic Role addRole(String role)
addRole(Role)
.
Property name: ROLE
Supported versions: 2.1, 3.0, 4.0
role
- the role (e.g. "Executive")
public void addRoleAlt(Collection<Role> altRepresentations)
Adds a role property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: ROLE
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addRoleAlt(Role... altRepresentations)
Adds a role property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: ROLE
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic List<Photo> getPhotos()
Property name: PHOTO
Supported versions: 2.1, 3.0, 4.0
public void addPhoto(Photo photo)
Property name: PHOTO
Supported versions: 2.1, 3.0, 4.0
photo
- the photo to addpublic void addPhotoAlt(Collection<Photo> altRepresentations)
Adds a photo property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: FN
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addPhotoAlt(Photo... altRepresentations)
Adds a photo property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: FN
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic List<Logo> getLogos()
Property name: LOGO
Supported versions: 2.1, 3.0, 4.0
public void addLogo(Logo logo)
Property name: LOGO
Supported versions: 2.1, 3.0, 4.0
logo
- the logo to addpublic void addLogoAlt(Collection<Logo> altRepresentations)
Adds a logo property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: LOGO
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addLogoAlt(Logo... altRepresentations)
Adds a logo property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: LOGO
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic List<Sound> getSounds()
Property name: SOUND
Supported versions: 2.1, 3.0, 4.0
public void addSound(Sound sound)
Property name: SOUND
Supported versions: 2.1, 3.0, 4.0
sound
- the sound to addpublic void addSoundAlt(Collection<Sound> altRepresentations)
Adds a sound property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: FN
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addSoundAlt(Sound... altRepresentations)
Adds a sound property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: FN
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic List<Birthplace> getBirthplaces()
Gets all birthplace property instances. There may be multiple instances
if alternative representations are defined (see:
description of ALTID
).
Property name: BIRTHPLACE
Supported versions: 4.0
public Birthplace getBirthplace()
Gets the person's birthplace.
Property name: BIRTHPLACE
Supported versions: 4.0
public void setBirthplaceAlt(Collection<Birthplace> altRepresentations)
Sets the person's birthplace as a group of alternative representations
(see: description of ALTID
. An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: BIRTHPLACE
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void setBirthplaceAlt(Birthplace... altRepresentations)
Sets the person's birthplace as a group of alternative representations
(see: description of ALTID
. An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: BIRTHPLACE
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void setBirthplace(Birthplace birthplace)
Sets the person's birthplace.
Property name: BIRTHPLACE
Supported versions: 4.0
birthplace
- the birthplace or null to removepublic List<Deathplace> getDeathplaces()
Gets all deathplace property instances. There may be multiple instances
if alternative representations are defined (see:
description of ALTID
).
Property name: DEATHPLACE
Supported versions: 4.0
public Deathplace getDeathplace()
Gets the person's deathplace.
Property name: DEATHPLACE
Supported versions: 4.0
public void setDeathplaceAlt(Collection<Deathplace> altRepresentations)
Sets the person's deathplace as a group of alternative representations
(see VCardParameters.getAltId()
for more details). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: DEATHPLACE
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void setDeathplaceAlt(Deathplace... altRepresentations)
Sets the person's deathplace as a group of alternative representations
(see VCardParameters.getAltId()
for more details). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: DEATHPLACE
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void setDeathplace(Deathplace deathplace)
Sets the person's deathplace.
Property name: DEATHPLACE
Supported versions: 4.0
deathplace
- the deathplace or null to removepublic List<Deathdate> getDeathdates()
Gets all death date property instances. There may be multiple instances
if alternative representations are defined (see:
description of ALTID
).
Property name: DEATHDATE
Supported versions: 4.0
public Deathdate getDeathdate()
Gets the person's time of death.
Property name: DEATHDATE
Supported versions: 4.0
public void setDeathdateAlt(Collection<Deathdate> altRepresentations)
Sets the deathdate property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: DEATHDATE
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void setDeathdateAlt(Deathdate... altRepresentations)
Sets the deathdate property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: DEATHDATE
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void setDeathdate(Deathdate deathdate)
Sets the person's time of death.
Property name: DEATHDATE
Supported versions: 4.0
deathdate
- the time of death or null to removepublic List<Birthday> getBirthdays()
Gets all birthday property instances. Version 4.0 vCards may have
multiple instances if alternative representations are defined (see:
description of ALTID
).
Property name: BDAY
Supported versions: 4.0*
* Only 4.0 supports alternative representations
public Birthday getBirthday()
Gets the person's birthday.
Property name: BDAY
Supported versions: 2.1, 3.0, 4.0
public void setBirthdayAlt(Collection<Birthday> altRepresentations)
Sets the person's birthday as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: BDAY
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void setBirthdayAlt(Birthday... altRepresentations)
Sets the person's birthday as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: BDAY
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void setBirthday(Birthday birthday)
Sets the person's birthday.
Property name: BDAY
Supported versions: 2.1, 3.0, 4.0
birthday
- the birthday or null to removepublic List<Anniversary> getAnniversaries()
Gets all anniversary property instances. There may be multiple instances
if alternative representations are defined (see:
description of ALTID
).
Property name: ANNIVERSARY
Supported versions: 4.0
public Anniversary getAnniversary()
Gets the person's anniversary.
Property name: ANNIVERSARY
Supported versions: 4.0
public void setAnniversaryAlt(Collection<Anniversary> altRepresentations)
Sets the person's anniversary as a group of alternative representations
(see VCardParameters.getAltId()
for more details). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: ANNIVERSARY
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void setAnniversaryAlt(Anniversary... altRepresentations)
Sets the person's anniversary as a group of alternative representations
(see VCardParameters.getAltId()
for more details). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: ANNIVERSARY
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void setAnniversary(Anniversary anniversary)
Sets the person's anniversary.
Property name: ANNIVERSARY
Supported versions: 4.0
anniversary
- the anniversary or null to removepublic Revision getRevision()
Property name: REV
Supported versions: 2.1, 3.0, 4.0
public void setRevision(Revision rev)
Property name: REV
Supported versions: 2.1, 3.0, 4.0
rev
- the last modified timepublic Revision setRevision(Date rev)
setRevision(Revision)
.
Property name: REV
Supported versions: 2.1, 3.0, 4.0
rev
- the last modified time or null to remove
public ProductId getProdId()
Property name: PRODID
Supported versions: 3.0, 4.0
public void setProdId(ProductId prodId)
Property name: PRODID
Supported versions: 3.0, 4.0
prodId
- the product IDpublic ProductId setProdId(String prodId)
setProdId(ProductId)
.
Property name: PRODID
Supported versions: 3.0, 4.0
prodId
- the product ID (e.g. "ez-vcard 1.0") or null to remove
public List<Address> getAddresses()
Property name: ADR
Supported versions: 2.1, 3.0, 4.0
public void addAddress(Address address)
Property name: ADR
Supported versions: 2.1, 3.0, 4.0
address
- the mailing address to addpublic void addAddressAlt(Collection<Address> altRepresentations)
Adds an address property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: ADR
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addAddressAlt(Address... altRepresentations)
Adds an address property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: ADR
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic List<Label> getOrphanedLabels()
Address.getLabel()
to get a label that has been assigned to an
address.
Property name: LABEL
Supported versions: 2.1, 3.0
public void addOrphanedLabel(Label label)
Address.setLabel(java.lang.String)
method.
Property name: LABEL
Supported versions: 2.1, 3.0
label
- the orphaned label to addpublic List<Email> getEmails()
Property name: EMAIL
Supported versions: 2.1, 3.0, 4.0
public void addEmail(Email email)
Property name: EMAIL
Supported versions: 2.1, 3.0, 4.0
email
- the email address to addpublic Email addEmail(String email, EmailType... types)
addEmail(Email)
.
Property name: EMAIL
Supported versions: 2.1, 3.0, 4.0
email
- the email address to add (e.g. "[email protected]")types
- the type(s) to assign to the email
public void addEmailAlt(Collection<Email> altRepresentations)
Adds an email property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: EMAIL
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addEmailAlt(Email... altRepresentations)
Adds an email property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: EMAIL
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic List<Telephone> getTelephoneNumbers()
Property name: TEL
Supported versions: 2.1, 3.0, 4.0
public void addTelephoneNumber(Telephone telephoneNumber)
Property name: TEL
Supported versions: 2.1, 3.0, 4.0
telephoneNumber
- the telephone number to addpublic Telephone addTelephoneNumber(String telephoneNumber, TelephoneType... types)
addTelephoneNumber(Telephone)
.
Property name: TEL
Supported versions: 2.1, 3.0, 4.0
telephoneNumber
- the telephone number to add (e.g.
"+1 555-555-5555")types
- the type(s) to assign to the telephone number (e.g. "cell",
"work", etc)
public void addTelephoneNumberAlt(Collection<Telephone> altRepresentations)
Adds a telephone property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: TEL
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addTelephoneNumberAlt(Telephone... altRepresentations)
Adds a telephone property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: TEL
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic Mailer getMailer()
Property name: MAILER
Supported versions: 2.1, 3.0
public void setMailer(Mailer mailer)
Property name: MAILER
Supported versions: 2.1, 3.0
mailer
- the email clientpublic Mailer setMailer(String mailer)
setMailer(Mailer)
.
Property name: MAILER
Supported versions: 2.1, 3.0
mailer
- the email client (e.g. "Thunderbird") or null to remove
public List<Url> getUrls()
Property name: URL
Supported versions: 2.1, 3.0, 4.0
public void addUrl(Url url)
Property name: URL
Supported versions: 2.1, 3.0, 4.0
url
- the URL to addpublic Url addUrl(String url)
addUrl(Url)
.
Property name: URL
Supported versions: 2.1, 3.0, 4.0
url
- the URL to add (e.g. "http://example.com")
public void addUrlAlt(Collection<Url> altRepresentations)
Adds a URL property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: URL
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addUrlAlt(Url... altRepresentations)
Adds a URL property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: URL
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic List<Timezone> getTimezones()
Gets all instances of the timezone property. Version 4.0 vCards may have
multiple instances if alternative representations are defined (see:
description of ALTID
) or if properties
with different TYPE parameters are defined.
Property name: TZ
Supported versions: 4.0*
* Only 4.0 supports multiple instances
public Timezone getTimezone()
Gets the timezone the person lives/works in.
Property name: TZ
Supported versions: 2.1, 3.0, 4.0
public void setTimezoneAlt(Collection<Timezone> altRepresentations)
Sets the timezone the person lives/works in as a group of alternative
representations (see: description of
ALTID
). An appropriate ALTID parameter value is automatically generated
and assigned to the properties.
Property name: TZ
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void setTimezoneAlt(Timezone... altRepresentations)
Sets the timezone the person lives/works in as a group of alternative
representations (see: description of
ALTID
). An appropriate ALTID parameter value is automatically generated
and assigned to the properties.
Property name: TZ
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addTimezoneAlt(Collection<Timezone> altRepresentations)
Adds a timezone the person lives/works in as a group of alternative
representations (see: description of
ALTID
). An appropriate ALTID parameter value is automatically generated
and assigned to the properties.
Property name: TZ
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addTimezoneAlt(Timezone... altRepresentations)
Adds a timezone the person lives/works in as a group of alternative
representations (see: description of
ALTID
). An appropriate ALTID parameter value is automatically generated
and assigned to the properties.
Property name: TZ
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void setTimezone(Timezone timezone)
Sets the timezone the person lives/works in.
Property name: TZ
Supported versions: 2.1, 3.0, 4.0
timezone
- the timezone or null to removepublic void addTimezone(Timezone timezone)
Adds a timezone the person lives/works in.
Property name: TZ
Supported versions: 4.0*
* Only 4.0 supports multiple instances
timezone
- the timezone or null to removepublic List<Geo> getGeos()
Gets all instances of the geo property. Version 4.0 vCards may have
multiple instances if alternative representations are defined (see:
description of ALTID
) or if properties
with different TYPE parameters are defined.
Property name: GEO
Supported versions: 4.0*
* Only 4.0 supports multiple instances
public Geo getGeo()
Gets the geographical position of where the person lives/works.
Property name: GEO
Supported versions: 2.1, 3.0, 4.0
public void setGeoAlt(Collection<Geo> altRepresentations)
Sets the geographical position of where the person lives/works as a group
of alternative representations (see: description of ALTID
). An appropriate ALTID parameter value is
automatically generated and assigned to the properties.
Property name: GEO
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addGeoAlt(Collection<Geo> altRepresentations)
Adds a geographical position of where the person lives/works as a group
of alternative representations (see: description of ALTID
). An appropriate ALTID parameter value is
automatically generated and assigned to the properties.
Property name: GEO
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addGeoAlt(Geo... altRepresentations)
Adds a geographical position of where the person lives/works as a group
of alternative representations (see: description of ALTID
). An appropriate ALTID parameter value is
automatically generated and assigned to the properties.
Property name: GEO
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void setGeo(Geo geo)
Sets the geographical position of where the person lives/works.
Property name: GEO
Supported versions: 2.1, 3.0, 4.0
geo
- the geographical position or null to removepublic void addGeo(Geo geo)
Adds a geographical position of where the person lives/works. Note that only version 4.0 vCards support multiple instances of this property.
Property name: GEO
Supported versions: 4.0*
* Only 4.0 supports multiple instances
geo
- the geographical positionpublic Geo setGeo(double latitude, double longitude)
Sets the geographical position of where the person lives/works. This is a
convenience method for setGeo(Geo)
.
Property name: GEO
Supported versions: 2.1, 3.0, 4.0
latitude
- the latitudelongitude
- the longitude
public List<Organization> getOrganizations()
Gets all instances of the organization property. Version 4.0 vCards may
have multiple instances if alternative representations are defined (see:
description of ALTID
) or if properties
with different TYPE parameters are defined.
Property name: ORG
Supported versions: 4.0*
* Only 4.0 supports multiple instances
public Organization getOrganization()
Gets the hierarchy of department(s) to which the person belongs.
Property name: ORG
Supported versions: 2.1, 3.0, 4.0
public void setOrganizationAlt(Collection<Organization> altRepresentations)
Sets the organization property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: ORG
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void setOrganizationAlt(Organization... altRepresentations)
Sets the organization property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: ORG
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addOrganizationAlt(Collection<Organization> altRepresentations)
Adds an organization property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: ORG
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addOrganizationAlt(Organization... altRepresentations)
Adds an organization property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: ORG
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void setOrganization(Organization organization)
Sets the hierarchy of departments to which the person belongs.
Property name: ORG
Supported versions: 2.1, 3.0, 4.0
organization
- the organization property or null to removepublic void addOrganization(Organization organization)
Adds a hierarchy of departments to which the person belongs. Note that only version 4.0 vCards support multiple instances of this property.
Property name: ORG
Supported versions: 4.0*
* Only 4.0 supports multiple instances
organization
- the organization propertypublic Organization setOrganization(String... departments)
Sets the hierarchy of departments to which the person belongs. This is a
convenience method for setOrganization(Organization)
.
Property name: ORG
Supported versions: 2.1, 3.0, 4.0
departments
- the ordered list of department(s), starting with the
broadest and ending with the most specific (e.g. "Google", "GMail Team",
"Spam Detection Squad") or null to remove
public List<Categories> getCategoriesList()
Gets all instances of the categories property. Version 4.0 vCards may
have multiple instances if alternative representations are defined (see:
description of ALTID
) or if properties
with different TYPE parameters are defined.
Property name: CATEGORIES
Supported versions: 4.0*
* Only 4.0 supports multiple instances
public Categories getCategories()
Gets the list of keywords (aka "tags") that can be used to describe the person.
Property name: CATEGORIES
Supported versions: 2.1, 3.0, 4.0
public void setCategoriesAlt(Collection<Categories> altRepresentations)
Sets the categories property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: CATEGORIES
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void setCategoriesAlt(Categories... altRepresentations)
Sets the categories property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: CATEGORIES
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addCategoriesAlt(Collection<Categories> altRepresentations)
Adds a categories property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: CATEGORIES
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addCategoriesAlt(Categories... altRepresentations)
Adds a categories property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: CATEGORIES
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void setCategories(Categories categories)
Sets the list of keywords (aka "tags") that can be used to describe the person.
Property name: CATEGORIES
Supported versions: 2.1, 3.0, 4.0
categories
- the categories or null to remove (note: multiple
categories may be added to this object)public void addCategories(Categories categories)
Adds a list of keywords (aka "tags") that can be used to describe the person. Note that only version 4.0 vCards support multiple instances of this property.
Property name: CATEGORIES
Supported versions: 4.0*
* Only 4.0 supports multiple instances
categories
- the categories (note: multiple categories may be added
to this object)public Categories setCategories(String... categories)
Sets the list of keywords (aka "tags") that can be used to describe the
person. This is a convenience method for
setCategories(Categories)
.
Property name: CATEGORIES
Supported versions: 2.1, 3.0, 4.0
categories
- the category or categories (e.g. "swimmer", "biker",
"knitter")
public Agent getAgent()
Property name: AGENT
Supported versions: 2.1, 3.0
public void setAgent(Agent agent)
Property name: AGENT
Supported versions: 2.1, 3.0
agent
- the agent informationpublic List<Note> getNotes()
Property name: NOTE
Supported versions: 2.1, 3.0, 4.0
public void addNote(Note note)
Property name: NOTE
Supported versions: 2.1, 3.0, 4.0
note
- the note to addpublic Note addNote(String note)
addNote(Note)
.
Property name: NOTE
Supported versions: 2.1, 3.0, 4.0
note
- the note to add
public void addNoteAlt(Collection<Note> altRepresentations)
Adds a note property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: NOTE
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addNoteAlt(Note... altRepresentations)
Adds a note property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: NOTE
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic Uid getUid()
Property name: UID
Supported versions: 2.1, 3.0, 4.0
public void setUid(Uid uid)
Property name: UID
Supported versions: 2.1, 3.0, 4.0
uid
- the unique identifierpublic List<Key> getKeys()
Property name: KEY
Supported versions: 2.1, 3.0, 4.0
public void addKey(Key key)
Property name: KEY
Supported versions: 2.1, 3.0, 4.0
key
- the key to addpublic void addKeyAlt(Collection<Key> altRepresentations)
Adds a key property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: KEY
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addKeyAlt(Key... altRepresentations)
Adds a key property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: KEY
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic List<Impp> getImpps()
Property name: IMPP
Supported versions: 3.0, 4.0
public void addImpp(Impp impp)
Property name: IMPP
Supported versions: 3.0, 4.0
impp
- the instant messaging handle to addpublic void addImppAlt(Collection<Impp> altRepresentations)
Adds an impp property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: IMPP
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic void addImppAlt(Impp... altRepresentations)
Adds an impp property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: IMPP
Supported versions: 4.0*
* Only 4.0 supports alternative representations
altRepresentations
- the alternative representations of the propertypublic List<Related> getRelations()
Property name: RELATED
Supported versions: 4.0
public void addRelated(Related related)
Property name: RELATED
Supported versions: 4.0
related
- the relation to addpublic void addRelatedAlt(Collection<Related> altRepresentations)
Adds a related property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: RELATED
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void addRelatedAlt(Related... altRepresentations)
Adds a related property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: RELATED
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic List<Language> getLanguages()
Property name: LANG
Supported versions: 4.0
public void addLanguage(Language language)
Property name: LANG
Supported versions: 4.0
language
- the language to addpublic Language addLanguage(String language)
addLanguage(Language)
.
Property name: LANG
Supported versions: 4.0
language
- the language to add (e.g. "en-us")
public void addLanguageAlt(Collection<Language> altRepresentations)
Adds a language property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: LANG
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void addLanguageAlt(Language... altRepresentations)
Adds a language property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: LANG
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic List<CalendarRequestUri> getCalendarRequestUris()
Property name: CALADRURI
Supported versions: 4.0
public void addCalendarRequestUri(CalendarRequestUri calendarRequestUri)
Property name: CALADRURI
Supported versions: 4.0
calendarRequestUri
- the calendar request URI to addpublic void addCalendarRequestUriAlt(Collection<CalendarRequestUri> altRepresentations)
Adds a calendar request URI property as a group of alternative
representations (see: description of
ALTID
). An appropriate ALTID parameter value is automatically generated
and assigned to the properties.
Property name: CALADRURI
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void addCalendarRequestUriAlt(CalendarRequestUri... altRepresentations)
Adds a calendar request URI property as a group of alternative
representations (see: description of
ALTID
). An appropriate ALTID parameter value is automatically generated
and assigned to the properties.
Property name: CALADRURI
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic List<CalendarUri> getCalendarUris()
Property name: CALURI
Supported versions: 4.0
public void addCalendarUri(CalendarUri calendarUri)
Property name: CALURI
Supported versions: 4.0
calendarUri
- the calendar URI to addpublic void addCalendarUriAlt(Collection<CalendarUri> altRepresentations)
Adds a calendar URI property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: CALURI
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void addCalendarUriAlt(CalendarUri... altRepresentations)
Adds a calendar URI property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: CALURI
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic List<FreeBusyUrl> getFbUrls()
Property name: FBURL
Supported versions: 4.0
public void addFbUrl(FreeBusyUrl fbUrl)
Property name: FBURL
Supported versions: 4.0
fbUrl
- the free-busy URL to addpublic void addFbUrlAlt(Collection<FreeBusyUrl> altRepresentations)
Adds an fburl property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: FBURL
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void addFbUrlAlt(FreeBusyUrl... altRepresentations)
Adds an fburl property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: FBURL
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic List<ClientPidMap> getClientPidMaps()
Property name: CLIENTPIDMAP
Supported versions: 4.0
public void addClientPidMap(ClientPidMap clientPidMap)
Property name: CLIENTPIDMAP
Supported versions: 4.0
clientPidMap
- the client PID map to addpublic List<Xml> getXmls()
Property name: XML
Supported versions: 4.0
public void addXml(Xml xml)
Property name: XML
Supported versions: 4.0
xml
- the XML data to addpublic void addXmlAlt(Collection<Xml> altRepresentations)
Adds an XML property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: XML
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void addXmlAlt(Xml... altRepresentations)
Adds an XML property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: XML
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic List<Expertise> getExpertise()
Property name: EXPERTISE
Supported versions: 4.0
public void addExpertise(Expertise expertise)
Property name: EXPERTISE
Supported versions: 4.0
expertise
- the professional skill to addpublic Expertise addExpertise(String expertise)
addExpertise(Expertise)
.
Property name: EXPERTISE
Supported versions: 4.0
expertise
- the professional skill to add (e.g. "programming")
public void addExpertiseAlt(Collection<Expertise> altRepresentations)
Adds an expertise property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: EXPERTISE
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void addExpertiseAlt(Expertise... altRepresentations)
Adds an expertise property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: EXPERTISE
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic List<Hobby> getHobbies()
Property name: HOBBY
Supported versions: 4.0
public void addHobby(Hobby hobby)
Property name: HOBBY
Supported versions: 4.0
hobby
- the hobby to addpublic Hobby addHobby(String hobby)
addHobby(Hobby)
.
Property name: HOBBY
Supported versions: 4.0
hobby
- the hobby to add (e.g. "photography")
public void addHobbyAlt(Collection<Hobby> altRepresentations)
Adds a hobby property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: HOBBY
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void addHobbyAlt(Hobby... altRepresentations)
Adds a hobby property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: HOBBY
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic List<Interest> getInterests()
Property name: INTEREST
Supported versions: 4.0
public void addInterest(Interest interest)
Property name: INTEREST
Supported versions: 4.0
interest
- the interest to addpublic Interest addInterest(String interest)
addInterest(Interest)
.
Property name: INTEREST
Supported versions: 4.0
interest
- the interest to add (e.g. "football")
public void addInterestAlt(Collection<Interest> altRepresentations)
Adds an interest property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: INTEREST
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void addInterestAlt(Interest... altRepresentations)
Adds an interest property as a group of alternative representations (see:
description of ALTID
). An appropriate
ALTID parameter value is automatically generated and assigned to the
properties.
Property name: INTEREST
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic List<OrgDirectory> getOrgDirectories()
Property name: ORG-DIRECTORY
Supported versions: 4.0
public void addOrgDirectory(OrgDirectory orgDirectory)
Property name: ORG-DIRECTORY
Supported versions: 4.0
orgDirectory
- the organization directory to addpublic OrgDirectory addOrgDirectory(String orgDirectory)
addOrgDirectory(OrgDirectory)
.
Property name: ORG-DIRECTORY
Supported versions: 4.0
orgDirectory
- the organization directory to add (e.g.
"http://company.com/staff")
public void addOrgDirectoryAlt(Collection<OrgDirectory> altRepresentations)
Adds an org directory property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: ORG-DIRECTORY
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic void addOrgDirectoryAlt(OrgDirectory... altRepresentations)
Adds an org directory property as a group of alternative representations
(see: description of ALTID
). An
appropriate ALTID parameter value is automatically generated and assigned
to the properties.
Property name: ORG-DIRECTORY
Supported versions: 4.0
altRepresentations
- the alternative representations of the propertypublic Iterator<VCardProperty> iterator()
iterator
in interface Iterable<VCardProperty>
public <T extends VCardProperty> T getProperty(Class<T> clazz)
clazz
- the property class
public <T extends VCardProperty> List<T> getProperties(Class<T> clazz)
clazz
- the property class
public <T extends VCardProperty & HasAltId> List<List<T>> getPropertiesAlt(Class<T> clazz)
description of ALTID
)
clazz
- the property class
public Collection<VCardProperty> getProperties()
public void addProperty(VCardProperty property)
property
- the property to addpublic <T extends VCardProperty> void setProperty(Class<T> clazz, T property)
clazz
- the property class (e.g. "Note.class")property
- the property or null to removepublic void removeProperty(VCardProperty property)
property
- the property to removepublic void removeProperties(Class<? extends VCardProperty> clazz)
clazz
- the class of the properties to remove (e.g. "Note.class")public RawProperty getExtendedProperty(String name)
name
- the property name (e.g. "X-ALT-DESC")
public List<RawProperty> getExtendedProperties(String name)
name
- the property name (e.g. "X-ALT-DESC")
public List<RawProperty> getExtendedProperties()
public RawProperty addExtendedProperty(String name, String value)
name
- the property name (e.g. "X-ALT-DESC")value
- the property value
public RawProperty setExtendedProperty(String name, String value)
name
- the property name (e.g. "X-ALT-DESC")value
- the property value
public void removeExtendedProperty(String name)
name
- the component name (e.g. "X-ALT-DESC")public <T extends VCardProperty & HasAltId> void addPropertyAlt(Class<T> propertyClass, T... altRepresentations)
description of ALTID
).
propertyClass
- the property classaltRepresentations
- the alternative representations of the property
to addpublic <T extends VCardProperty & HasAltId> void addPropertyAlt(Class<T> propertyClass, Collection<T> altRepresentations)
description of ALTID
).
propertyClass
- the property classaltRepresentations
- the alternative representations of the property
to addpublic <T extends VCardProperty & HasAltId> void setPropertyAlt(Class<T> propertyClass, T... altRepresentations)
description of ALTID
).
propertyClass
- the property classaltRepresentations
- the alternative representations of the property
to addpublic <T extends VCardProperty & HasAltId> void setPropertyAlt(Class<T> propertyClass, Collection<T> altRepresentations)
description of ALTID
).
propertyClass
- the property classaltRepresentations
- the alternative representations of the property
to addpublic ValidationWarnings validate(VCardVersion version)
version
- the version to check the vCard against (use 4.0 for xCard
and jCard)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |