|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectezvcard.VCard
public class VCard
Represents the data in a vCard.
Constructor Summary | |
---|---|
VCard()
|
Method Summary | ||
---|---|---|
void |
addAddress(AddressType address)
Adds a mailing address. |
|
void |
addAnniversary(AnniversaryType anniversary)
Adds an anniversary property. |
|
void |
addBirthday(BirthdayType birthday)
Adds a birthday property. |
|
void |
addBirthplace(BirthplaceType birthplace)
Adds a birthplace property. |
|
void |
addCalendarRequestUri(CalendarRequestUriType calendarRequestUri)
Adds a URI that can be used to schedule a meeting with the person on his or her calendar. |
|
void |
addCalendarUri(CalendarUriType calendarUri)
Adds a URI that points to the person's calendar. |
|
void |
addCategories(CategoriesType categories)
Adds a CATEGORIES property to the vCard. |
|
void |
addClientPidMap(ClientPidMapType clientPidMap)
Adds a property that is used to assign a globally-unique identifier to an individual property instance. |
|
void |
addDeathdate(DeathdateType deathdate)
Adds a death date property. |
|
void |
addDeathplace(DeathplaceType deathplace)
Adds a deathplace property. |
|
void |
addEmail(EmailType email)
Adds an email address. |
|
EmailType |
addEmail(String email,
EmailTypeParameter... types)
Adds an email address. |
|
void |
addExpertise(ExpertiseType expertise)
Adds a professional subject area of which the the person is knowledgeable. |
|
ExpertiseType |
addExpertise(String expertise)
Adds a professional subject area of which the the person is knowledgeable. |
|
RawType |
addExtendedType(String name,
String value)
Adds an extended type to the vCard. |
|
void |
addExtendedType(VCardType type)
Adds an extended type to the vCard. |
|
void |
addFbUrl(FbUrlType fbUrl)
Adds a URL that can be used to determine when the person is free and/or busy. |
|
void |
addFormattedName(FormattedNameType formattedName)
Adds a text value used for displaying the person's name. |
|
void |
addGeo(GeoType geo)
Adds a geographical position to the vCard. |
|
void |
addHobby(HobbyType hobby)
Adds a hobby that the person actively engages in. |
|
HobbyType |
addHobby(String hobby)
Adds a hobby that the person actively engages in. |
|
void |
addImpp(ImppType impp)
Adds an instant messaging handle. |
|
void |
addInterest(InterestType interest)
Adds an interest. |
|
InterestType |
addInterest(String interest)
Adds an interest. |
|
void |
addKey(KeyType key)
Adds a public encryption key. |
|
void |
addLanguage(LanguageType language)
Adds a language that the person speaks. |
|
LanguageType |
addLanguage(String language)
Adds a language that the person speaks. |
|
void |
addLogo(LogoType logo)
Adds a logo to the vCard, such as a company logo. |
|
void |
addMember(MemberType member)
Adds a member to the group. |
|
void |
addNickname(NicknameType nickname)
Adds an instance of the NICKNAME property to the vCard. |
|
void |
addNote(NoteType note)
Adds a note. |
|
NoteType |
addNote(String note)
Adds a note. |
|
void |
addOrganization(OrganizationType organization)
Adds an organization property to the vCard. |
|
void |
addOrgDirectory(OrgDirectoryType orgDirectory)
Adds an organization directory. |
|
OrgDirectoryType |
addOrgDirectory(String orgDirectory)
Adds an organization directory. |
|
void |
addOrphanedLabel(LabelType label)
Adds a mailing label which is not associated with any address. |
|
void |
addPhoto(PhotoType photo)
Adds a photo to the vCard, such as a picture of the person's face. |
|
void |
addRelated(RelatedType related)
Adds someone that the person is related to. |
|
void |
addRole(RoleType role)
Adds a role associated with the person. |
|
RoleType |
addRole(String role)
Adds a role associated with the person. |
|
void |
addSound(SoundType sound)
Adds a sound to the vCard, such as a pronunciation of the person's name. |
|
void |
addSource(SourceType source)
Adds a URI that can be used to retrieve the most up-to-date version of the person's vCard. |
|
SourceType |
addSource(String source)
Adds a URI that can be used to retrieve the most up-to-date version of the person's vCard. |
|
void |
addStructuredName(StructuredNameType structuredName)
Adds a property that contains the individual components of the person's name. |
|
TelephoneType |
addTelephoneNumber(String telephoneNumber,
TelephoneTypeParameter... types)
Adds a telephone number. |
|
void |
addTelephoneNumber(TelephoneType telephoneNumber)
Adds a telephone number. |
|
void |
addTimezone(TimezoneType timezone)
Adds a timezone to the vCard. |
|
TitleType |
addTitle(String title)
Adds a title associated with the person. |
|
void |
addTitle(TitleType title)
Adds a title associated with the person. |
|
UrlType |
addUrl(String url)
Adds a URL. |
|
void |
addUrl(UrlType url)
Adds a URL. |
|
void |
addXml(XmlType xml)
Adds XML data to the vCard. |
|
List<AddressType> |
getAddresses()
Gets the mailing addresses. |
|
AgentType |
getAgent()
Gets information about the person's agent. |
|
Collection<VCardType> |
getAllTypes()
Gets all of the vCard's properties. |
|
List<AnniversaryType> |
getAnniversaries()
Gets all anniversary property instances. |
|
AnniversaryType |
getAnniversary()
Gets the person's anniversary. |
|
BirthdayType |
getBirthday()
Gets the person's birthday. |
|
List<BirthdayType> |
getBirthdays()
Gets all birthday property instances. |
|
BirthplaceType |
getBirthplace()
Gets the person's birthplace. |
|
List<BirthplaceType> |
getBirthplaces()
Gets all birthplace property instances. |
|
List<CalendarRequestUriType> |
getCalendarRequestUris()
Gets the URIs that can be used to schedule a meeting with the person on his or her calendar. |
|
List<CalendarUriType> |
getCalendarUris()
Gets the URIs that point to the person's calendar. |
|
CategoriesType |
getCategories()
Gets the list of keywords (aka "tags") that can be used to describe the person. |
|
List<CategoriesType> |
getCategoriesList()
Gets all CATEGORIES properties. |
|
ClassificationType |
getClassification()
Gets the classification of the vCard, which describes the sensitivity of the information in the vCard. |
|
List<ClientPidMapType> |
getClientPidMaps()
Gets the properties that are used to assign globally-unique identifiers to individual property instances. |
|
DeathdateType |
getDeathdate()
Gets the person's time of death. |
|
List<DeathdateType> |
getDeathdates()
Gets all death date property instances. |
|
DeathplaceType |
getDeathplace()
Gets the person's deathplace. |
|
List<DeathplaceType> |
getDeathplaces()
Gets all deathplace property instances. |
|
List<EmailType> |
getEmails()
Gets the email addresses. |
|
List<ExpertiseType> |
getExpertise()
Gets the professional subject areas of which the the person is knowledgeable. |
|
|
getExtendedType(Class<T> clazz)
Gets all extended types that are an instance of a particular class. |
|
List<RawType> |
getExtendedType(String typeName)
Gets all extended types that have a particular name. |
|
|
getExtendedType(String typeName,
Class<T> clazz)
Gets all extended types that have a particular name and that are an instance of a particular class. |
|
Map<String,List<VCardType>> |
getExtendedTypes()
Gets all extended types. |
|
List<FbUrlType> |
getFbUrls()
Gets the URLs that can be used to determine when the person is free and/or busy. |
|
FormattedNameType |
getFormattedName()
Gets the text value used for displaying the person's name. |
|
List<FormattedNameType> |
getFormattedNames()
Gets the text values for displaying the person's name. |
|
GenderType |
getGender()
Gets the gender of the person. |
|
GeoType |
getGeo()
Gets the geographical position of where the person lives/works. |
|
List<GeoType> |
getGeos()
Gets all geographical position properties. |
|
List<HobbyType> |
getHobbies()
Gets the hobbies that the person actively engages in. |
|
List<ImppType> |
getImpps()
Gets the instant messaging handles. |
|
List<InterestType> |
getInterests()
Gets the person's interests. |
|
List<KeyType> |
getKeys()
Gets the public encryption keys. |
|
KindType |
getKind()
Gets the type of entity this vCard represents. |
|
List<LanguageType> |
getLanguages()
Gets the languages that the person speaks. |
|
List<LogoType> |
getLogos()
Gets the logos attached to the vCard, such a company logo. |
|
MailerType |
getMailer()
Gets the email client that the person uses. |
|
List<MemberType> |
getMembers()
Gets the members of the group. |
|
NicknameType |
getNickname()
Gets the person's nicknames. |
|
List<NicknameType> |
getNicknames()
Gets all instances of the NICKNAME property. |
|
List<NoteType> |
getNotes()
Gets the notes. |
|
OrganizationType |
getOrganization()
Gets the hierarchy of department(s) to which the person belongs. |
|
List<OrganizationType> |
getOrganizations()
Gets all organization properties. |
|
List<OrgDirectoryType> |
getOrgDirectories()
Gets the organization directories. |
|
List<LabelType> |
getOrphanedLabels()
Gets all mailing labels that could not be assigned to an address. |
|
List<PhotoType> |
getPhotos()
Gets the photos attached to the vCard, such as a picture of the person's face. |
|
ProdIdType |
getProdId()
Gets the product ID, which identifies the software that created the vCard. |
|
ProfileType |
getProfile()
Gets the PROFILE property. |
|
List<RelatedType> |
getRelations()
Gets a list of people that the person is related to. |
|
RevisionType |
getRevision()
Gets the time that the vCard was last modified. |
|
List<RoleType> |
getRoles()
Gets the roles associated with the person. |
|
SortStringType |
getSortString()
Gets the string that should be used to sort the vCard. |
|
List<SoundType> |
getSounds()
Gets the sounds attached to the vCard, such as a pronunciation of the person's name. |
|
SourceDisplayTextType |
getSourceDisplayText()
Gets a textual representation of the SOURCE property. |
|
List<SourceType> |
getSources()
Gets the URIs that can be used to retrieve the most up-to-date version of the person's vCard. |
|
StructuredNameType |
getStructuredName()
Gets the individual components of the person's name. |
|
List<StructuredNameType> |
getStructuredNames()
Gets all structured name properties. |
|
List<TelephoneType> |
getTelephoneNumbers()
Gets the telephone numbers. |
|
TimezoneType |
getTimezone()
Gets the timezone the person lives/works in. |
|
List<TimezoneType> |
getTimezones()
Gets all instances of the timezone property. |
|
List<TitleType> |
getTitles()
Gets the titles associated with the person. |
|
UidType |
getUid()
Gets the unique identifier of the vCard. |
|
List<UrlType> |
getUrls()
Gets the URLs. |
|
VCardVersion |
getVersion()
Gets the version attached to this vCard. |
|
List<XmlType> |
getXmls()
Gets any XML data that is attached to the vCard. |
|
Iterator<VCardType> |
iterator()
Iterates through each of the vCard's properties in no particular order. |
|
void |
setAgent(AgentType agent)
Sets information about the person's agent. |
|
void |
setAnniversary(AnniversaryType anniversary)
Sets the person's anniversary. |
|
void |
setBirthday(BirthdayType birthday)
Sets the person's birthday. |
|
void |
setBirthplace(BirthplaceType birthplace)
Sets the person's birthplace. |
|
void |
setCategories(CategoriesType categories)
Sets the list of keywords (aka "tags") that can be used to describe the person. |
|
CategoriesType |
setCategories(String... categories)
Sets the list of keywords (aka "tags") that can be used to describe the person. |
|
void |
setClassification(ClassificationType classification)
Sets the classification of the vCard, which describes the sensitivity of the information in the vCard. |
|
ClassificationType |
setClassification(String classification)
Sets the classification of the vCard, which describes the sensitivity of the information in the vCard. |
|
void |
setDeathdate(DeathdateType deathdate)
Sets the person's time of death. |
|
void |
setDeathplace(DeathplaceType deathplace)
Sets the person's deathplace. |
|
void |
setFormattedName(FormattedNameType formattedName)
Sets the text value used for displaying the person's name. |
|
FormattedNameType |
setFormattedName(String formattedName)
Sets the text value used for displaying the person's name. |
|
void |
setGender(GenderType gender)
Sets the gender of the person. |
|
GeoType |
setGeo(double latitude,
double longitude)
Sets the geographical position of where the person lives/works. |
|
void |
setGeo(GeoType geo)
Sets the geographical position of where the person lives/works. |
|
void |
setKind(KindType kind)
Sets the type of entity this vCard represents. |
|
void |
setMailer(MailerType mailer)
Sets the email client that the person uses. |
|
MailerType |
setMailer(String mailer)
Sets the email client that the person uses. |
|
void |
setNickname(NicknameType nickname)
Sets one or more nicknames. |
|
NicknameType |
setNickname(String... nicknames)
Sets one or more nicknames. |
|
void |
setOrganization(OrganizationType organization)
Sets the hierarchy of departments to which the person belongs. |
|
OrganizationType |
setOrganization(String... departments)
Sets the hierarchy of departments to which the person belongs. |
|
void |
setProdId(ProdIdType prodId)
Sets the product ID, which identifies the software that created the vCard. |
|
ProdIdType |
setProdId(String prodId)
Sets the product ID, which identifies the software that created the vCard. |
|
void |
setProfile(ProfileType profile)
Sets the PROFILE property. |
|
RevisionType |
setRevision(Date rev)
Sets the time that the vCard was last modified. |
|
void |
setRevision(RevisionType rev)
Sets the time that the vCard was last modified. |
|
void |
setSortString(SortStringType sortString)
Sets the string that should be used to sort the vCard. |
|
SortStringType |
setSortString(String sortString)
Sets the string that should be used to sort the vCard. |
|
void |
setSourceDisplayText(SourceDisplayTextType sourceDisplayText)
Sets a textual representation of the SOURCE property. |
|
SourceDisplayTextType |
setSourceDisplayText(String sourceDisplayText)
Sets a textual representation of the SOURCE property. |
|
void |
setStructuredName(StructuredNameType structuredName)
Sets the individual components of the person's name. |
|
void |
setTimezone(TimezoneType timezone)
Sets the timezone the person lives/works in. |
|
void |
setUid(UidType uid)
Sets the unique identifier of the vCard. |
|
void |
setVersion(VCardVersion version)
Sets the version of this vCard. |
|
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 |
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() throws TemplateException
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.
TemplateException
Ezvcard
,
hCard 1.0public void writeHtml(File file) throws IOException, TemplateException
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 file
TemplateException
- if there's a problem with the freemarker
templateEzvcard
,
hCard 1.0public void writeHtml(OutputStream out) throws IOException, TemplateException
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 stream
TemplateException
- if there's a problem with the freemarker
templateEzvcard
,
hCard 1.0public void writeHtml(Writer writer) throws IOException, TemplateException
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 writer
TemplateException
- if there's a problem with the freemarker
templateEzvcard
,
hCard 1.0public 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 KindType getKind()
vCard property name: KIND
vCard versions: 4.0
public void setKind(KindType kind)
vCard property name: KIND
vCard versions: 4.0
kind
- the kindpublic GenderType getGender()
vCard property name: GENDER
vCard versions: 4.0
public void setGender(GenderType gender)
vCard property name: GENDER
vCard versions: 4.0
gender
- the genderpublic List<MemberType> getMembers()
VCard vcard = ... KindType kind = vcard.getKind(); if (kind != null && kind.isGroup()){ for (MemberType member : vcard.getMembers(){ ... } }
vCard property name: MEMBER
vCard versions: 4.0
public void addMember(MemberType member)
VCard vcard = new VCard(); vcard.setKind(KindType.group()); vcard.addMember(...);
vCard property name: MEMBER
vCard versions: 4.0
member
- the member to addpublic ProfileType getProfile()
vCard property name: PROFILE
vCard versions: 3.0
public void setProfile(ProfileType profile)
vCard property name: PROFILE
vCard versions: 3.0
profile
- the propertypublic ClassificationType getClassification()
vCard property name: CLASS
vCard versions: 3.0
public void setClassification(ClassificationType classification)
vCard property name: CLASS
vCard versions: 3.0
classification
- the classificationpublic ClassificationType setClassification(String classification)
setClassification(ClassificationType)
.
vCard property name: CLASS
vCard versions: 3.0
classification
- the classification (e.g. "PUBLIC", "PRIVATE",
"CONFIDENTIAL")
public List<SourceType> getSources()
vCard property name: SOURCE
vCard versions: 3.0, 4.0
public void addSource(SourceType source)
vCard property name: SOURCE
vCard versions: 3.0, 4.0
source
- the sourcepublic SourceType addSource(String source)
addSource(SourceType)
.
vCard property name: SOURCE
vCard versions: 3.0, 4.0
source
- the source URI (e.g. "http://example.com/vcard.vcf")
public SourceDisplayTextType getSourceDisplayText()
vCard property name: NAME
vCard versions: 3.0
public void setSourceDisplayText(SourceDisplayTextType sourceDisplayText)
vCard property name: NAME
vCard versions: 3.0
sourceDisplayText
- a textual representation of the vCard sourcepublic SourceDisplayTextType setSourceDisplayText(String sourceDisplayText)
setSourceDisplayText(SourceDisplayTextType)
.
vCard property name: NAME
vCard versions: 3.0
sourceDisplayText
- a textual representation of the vCard source
public List<FormattedNameType> getFormattedNames()
Gets the text values for displaying the person's name.
This method should only be used on the rare occasion when there are
alternative representations of this property (see:
explanation of ALTID
). Otherwise, use
getFormattedName()
.
vCard property name: FN
vCard versions: 2.1, 3.0, 4.0
FormattedNameType.getAltId()
public FormattedNameType getFormattedName()
Gets the text value used for displaying the person's name.
Use getFormattedNames()
to get the alternative representations of
this property (see: explanation of ALTID
).
vCard property name: FN
vCard versions: 2.1, 3.0, 4.0
public void addFormattedName(FormattedNameType formattedName)
Adds a text value used for displaying the person's name.
This method should only be used on the rare occasion when alternative
representations of this property are needed (see:
explanation of ALTID
). Otherwise, use
setFormattedName(FormattedNameType)
.
vCard property name: FN
vCard versions: 2.1, 3.0, 4.0
formattedName
- the formatted name propertyFormattedNameType.setAltId(java.lang.String)
public void setFormattedName(FormattedNameType formattedName)
Sets the text value used for displaying the person's name.
Use addFormattedName(ezvcard.types.FormattedNameType)
to add alternative representations of this
property (see: explanation of ALTID
).
vCard property name: FN
vCard versions: 2.1, 3.0, 4.0
formattedName
- the formatted name propertypublic FormattedNameType setFormattedName(String formattedName)
Sets the text value used for displaying the person's name. This is a
convenience method for setFormattedName(FormattedNameType)
.
Use addFormattedName(ezvcard.types.FormattedNameType)
to add alternative representations of this
property (see: explanation of ALTID
).
vCard property name: FN
vCard versions: 2.1, 3.0, 4.0
formattedName
- the formatted name (e.g. "John Doe")
public List<StructuredNameType> getStructuredNames()
Gets all structured name properties.
This method should only be used on the rare occasion when there are
alternative representations of this property (see:
explanation of ALTID
). Otherwise, use
getStructuredName()
.
vCard property name: N
vCard versions: 2.1, 3.0, 4.0
StructuredNameType.getAltId()
public StructuredNameType getStructuredName()
Gets the individual components of the person's name.
Use getStructuredNames()
to get the alternative representations of
this property (see: explanation of ALTID
).
vCard property name: N
vCard versions: 2.1, 3.0, 4.0
public void addStructuredName(StructuredNameType structuredName)
Adds a property that contains the individual components of the person's name.
This method should only be used on the rare occasion when alternative
representations of this property are needed (see:
explanation of ALTID
). Otherwise, use
setStructuredName(ezvcard.types.StructuredNameType)
.
vCard property name: N
vCard versions: 2.1, 3.0, 4.0
structuredName
- the components of the person's nameStructuredNameType.setAltId(java.lang.String)
public void setStructuredName(StructuredNameType structuredName)
vCard property name: N
vCard versions: 2.1, 3.0, 4.0
structuredName
- the components of the person's namepublic List<NicknameType> getNicknames()
Gets all instances of the NICKNAME property.
This method should only be used on the rare occasion when there are
alternative representations of this property (see:
explanation of ALTID
). Otherwise, use
getNickname()
.
vCard property name: NICKNAME
vCard versions: 3.0, 4.0
NicknameType.getAltId()
public NicknameType getNickname()
Gets the person's nicknames.
Use getNicknames()
to get the alternative representations of this
property (see: explanation of ALTID
).
vCard property name: NICKNAME
vCard versions: 3.0, 4.0
public void addNickname(NicknameType nickname)
Adds an instance of the NICKNAME property to the vCard.
This method should only be used on the rare occasion when alternative
representations of this property are needed (see:
explanation of ALTID
). Otherwise, use
setNickname(NicknameType)
.
vCard property name: NICKNAME
vCard versions: 3.0, 4.0
nickname
- the NICKNAME property to addNicknameType.setAltId(java.lang.String)
public void setNickname(NicknameType nickname)
Sets one or more nicknames.
Use addNickname(ezvcard.types.NicknameType)
to add alternative representations of this
property (see: explanation of ALTID
).
vCard property name: NICKNAME
vCard versions: 3.0, 4.0
nickname
- the nicknames (multiple nicknames can be added to this
object)public NicknameType setNickname(String... nicknames)
Sets one or more nicknames. This is a convenience method for
setNickname(NicknameType)
.
Use addNickname(ezvcard.types.NicknameType)
to add alternative representations of this
property (see: explanation of ALTID
).
vCard property name: NICKNAME
vCard versions: 3.0, 4.0
nicknames
- the nickname(s)
public SortStringType getSortString()
Gets the string that should be used to sort the vCard.
For 4.0 vCards, use the StructuredNameType.getSortAs()
and/or
OrganizationType.getSortAs()
methods.
vCard property name: SORT-STRING
vCard versions: 2.1, 3.0
public void setSortString(SortStringType sortString)
Sets the string that should be used to sort the vCard.
For 4.0 vCards, use the StructuredNameType.setSortAs(java.lang.String)
and/or
OrganizationType.setSortAs(java.lang.String...)
methods.
vCard property name: SORT-STRING
vCard versions: 2.1, 3.0
sortString
- the sort stringpublic SortStringType setSortString(String sortString)
Sets the string that should be used to sort the vCard. This is a
convenience method for setSortString(SortStringType)
.
For 4.0 vCards, use the StructuredNameType.setSortAs(java.lang.String)
and/or
OrganizationType.setSortAs(java.lang.String...)
methods.
vCard property name: SORT-STRING
vCard versions: 2.1, 3.0
sortString
- the sort string (e.g. "Armour" if the person's last
name is "d'Armour")
public List<TitleType> getTitles()
vCard property name: TITLE
vCard versions: 2.1, 3.0, 4.0
public void addTitle(TitleType title)
vCard property name: TITLE
vCard versions: 2.1, 3.0, 4.0
title
- the titlepublic TitleType addTitle(String title)
addTitle(TitleType)
.
vCard property name: TITLE
vCard versions: 2.1, 3.0, 4.0
title
- the title (e.g. "V.P. Research and Development")
public List<RoleType> getRoles()
vCard property name: ROLE
vCard versions: 2.1, 3.0, 4.0
public void addRole(RoleType role)
vCard property name: ROLE
vCard versions: 2.1, 3.0, 4.0
role
- the rolepublic RoleType addRole(String role)
addRole(RoleType)
.
vCard property name: ROLE
vCard versions: 2.1, 3.0, 4.0
role
- the role (e.g. "Executive")
public List<PhotoType> getPhotos()
vCard property name: PHOTO
vCard versions: 2.1, 3.0, 4.0
public void addPhoto(PhotoType photo)
vCard property name: PHOTO
vCard versions: 2.1, 3.0, 4.0
photo
- the photo to addpublic List<LogoType> getLogos()
vCard property name: LOGO
vCard versions: 2.1, 3.0, 4.0
public void addLogo(LogoType logo)
vCard property name: LOGO
vCard versions: 2.1, 3.0, 4.0
logo
- the logo to addpublic List<SoundType> getSounds()
vCard property name: SOUND
vCard versions: 2.1, 3.0, 4.0
public void addSound(SoundType sound)
vCard property name: SOUND
vCard versions: 2.1, 3.0, 4.0
sound
- the sound to addpublic List<BirthplaceType> getBirthplaces()
Gets all birthplace property instances.
This method should only be used on the rare occasion when there are
alternative representations of this property (see:
explanation of ALTID
). Otherwise, use
getBirthplace()
.
vCard property name: BIRTHPLACE
vCard versions: 4.0
BirthplaceType.getAltId()
,
RFC 6474public void addBirthplace(BirthplaceType birthplace)
Adds a birthplace property.
This method should only be used on the rare occasion when alternative
representations of this property are needed (see:
explanation of ALTID
). Otherwise, use
setBirthplace(ezvcard.types.BirthplaceType)
.
vCard property name: BIRTHPLACE
vCard versions: 4.0
birthplace
- the birthplace to addBirthplaceType.setAltId(java.lang.String)
,
RFC 6474public BirthplaceType getBirthplace()
Gets the person's birthplace.
Use getBirthplaces()
to get the alternative representations of
this property (see: explanation of ALTID
).
vCard property name: BIRTHPLACE
vCard versions: 4.0
public void setBirthplace(BirthplaceType birthplace)
Sets the person's birthplace.
Use addBirthplace(ezvcard.types.BirthplaceType)
to add alternative representations of this
property (see: explanation of ALTID
).
vCard property name: BIRTHPLACE
vCard versions: 4.0
birthplace
- the birthplacepublic List<DeathplaceType> getDeathplaces()
Gets all deathplace property instances.
This method should only be used on the rare occasion when there are
alternative representations of this property (see:
explanation of ALTID
). Otherwise, use
getDeathplace()
.
vCard property name: DEATHPLACE
vCard versions: 4.0
DeathplaceType.getAltId()
,
RFC 6474public void addDeathplace(DeathplaceType deathplace)
Adds a deathplace property.
This method should only be used on the rare occasion when alternative
representations of this property are needed (see:
explanation of ALTID
). Otherwise, use
setDeathplace(ezvcard.types.DeathplaceType)
.
vCard property name: DEATHPLACE
vCard versions: 4.0
deathplace
- the deathplace to addDeathplaceType.setAltId(java.lang.String)
,
RFC 6474public DeathplaceType getDeathplace()
Gets the person's deathplace.
Use getDeathplaces()
to get the alternative representations of
this property (see: explanation of ALTID
).
vCard property name: DEATHPLACE
vCard versions: 4.0
public void setDeathplace(DeathplaceType deathplace)
Sets the person's deathplace.
Use addDeathplace(ezvcard.types.DeathplaceType)
to add alternative representations of this
property (see: explanation of ALTID
).
vCard property name: DEATHPLACE
vCard versions: 4.0
deathplace
- the deathplacepublic List<DeathdateType> getDeathdates()
Gets all death date property instances.
This method should only be used on the rare occasion when there are
alternative representations of this property (see:
explanation of ALTID
). Otherwise, use
getDeathdate()
.
vCard property name: DEATHDATE
vCard versions: 4.0
DateOrTimeType.getAltId()
,
RFC 6474public void addDeathdate(DeathdateType deathdate)
Adds a death date property.
This method should only be used on the rare occasion when alternative
representations of this property are needed (see:
explanation of ALTID
). Otherwise, use
setDeathdate(ezvcard.types.DeathdateType)
.
vCard property name: DEATHDATE
vCard versions: 4.0
deathdate
- the death date to addDateOrTimeType.setAltId(java.lang.String)
,
RFC 6474public DeathdateType getDeathdate()
Gets the person's time of death.
Use getDeathdates()
to get the alternative representations of this
property (see: explanation of ALTID
).
vCard property name: DEATHDATE
vCard versions: 4.0
public void setDeathdate(DeathdateType deathdate)
Sets the person's time of death.
Use addDeathdate(ezvcard.types.DeathdateType)
to add alternative representations of this
property (see: explanation of ALTID
).
vCard property name: DEATHDATE
vCard versions: 4.0
deathdate
- the time of deathpublic List<BirthdayType> getBirthdays()
Gets all birthday property instances.
This method should only be used on the rare occasion when there are
alternative representations of this property (see:
explanation of ALTID
). Otherwise, use
getBirthday()
.
vCard property name: BDAY
vCard versions: 2.1, 3.0, 4.0
DateOrTimeType.getAltId()
public void addBirthday(BirthdayType birthday)
Adds a birthday property.
This method should only be used on the rare occasion when alternative
representations of this property are needed (see:
explanation of ALTID
). Otherwise, use
setBirthday(ezvcard.types.BirthdayType)
.
vCard property name: BDAY
vCard versions: 2.1, 3.0, 4.0
birthday
- the birthday to addDateOrTimeType.setAltId(java.lang.String)
public BirthdayType getBirthday()
Gets the person's birthday.
Use getBirthdays()
to get the alternative representations of this
property (see: explanation of ALTID
).
vCard property name: BDAY
vCard versions: 2.1, 3.0, 4.0
public void setBirthday(BirthdayType birthday)
Sets the person's birthday.
Use addBirthday(ezvcard.types.BirthdayType)
to add alternative representations of this
property (see: explanation of ALTID
).
vCard property name: BDAY
vCard versions: 2.1, 3.0, 4.0
birthday
- the birthdaypublic List<AnniversaryType> getAnniversaries()
Gets all anniversary property instances.
This method should only be used on the rare occasion when there are
alternative representations of this property (see:
explanation of ALTID
). Otherwise, use
getAnniversary()
.
vCard property name: ANNIVERSARY
vCard versions: 4.0
DateOrTimeType.getAltId()
public void addAnniversary(AnniversaryType anniversary)
Adds an anniversary property.
This method should only be used on the rare occasion when alternative
representations of this property are needed (see:
explanation of ALTID
). Otherwise, use
setAnniversary(ezvcard.types.AnniversaryType)
.
vCard property name: ANNIVERSARY
vCard versions: 4.0
anniversary
- the anniversary to addDateOrTimeType.setAltId(java.lang.String)
public AnniversaryType getAnniversary()
Gets the person's anniversary.
Use getAnniversaries()
to get the alternative representations of
this property (see: explanation of ALTID
).
vCard property name: ANNIVERSARY
vCard versions: 4.0
public void setAnniversary(AnniversaryType anniversary)
Sets the person's anniversary.
Use addAnniversary(ezvcard.types.AnniversaryType)
to add alternative representations of this
property (see: explanation of ALTID
).
vCard property name: ANNIVERSARY
vCard versions: 4.0
anniversary
- the anniversarypublic RevisionType getRevision()
vCard property name: REV
vCard versions: 2.1, 3.0, 4.0
public void setRevision(RevisionType rev)
vCard property name: REV
vCard versions: 2.1, 3.0, 4.0
rev
- the last modified timepublic RevisionType setRevision(Date rev)
setRevision(RevisionType)
.
vCard property name: REV
vCard versions: 2.1, 3.0, 4.0
rev
- the last modified time
public ProdIdType getProdId()
vCard property name: PRODID
vCard versions: 3.0, 4.0
public void setProdId(ProdIdType prodId)
vCard property name: PRODID
vCard versions: 3.0, 4.0
prodId
- the product IDpublic ProdIdType setProdId(String prodId)
setProdId(ProdIdType)
.
vCard property name: PRODID
vCard versions: 3.0, 4.0
prodId
- the product ID (e.g. "ez-vcard 1.0")
public List<AddressType> getAddresses()
vCard property name: ADR
vCard versions: 2.1, 3.0, 4.0
public void addAddress(AddressType address)
vCard property name: ADR
vCard versions: 2.1, 3.0, 4.0
address
- the mailing address to addpublic List<LabelType> getOrphanedLabels()
AddressType.getLabel()
to get a label that has been assigned to an
address.
vCard property name: LABEL
vCard versions: 2.1, 3.0
public void addOrphanedLabel(LabelType label)
AddressType.setLabel(java.lang.String)
method.
vCard property name: LABEL
vCard versions: 2.1, 3.0
label
- the orphaned label to addpublic List<EmailType> getEmails()
vCard property name: EMAIL
vCard versions: 2.1, 3.0, 4.0
public void addEmail(EmailType email)
vCard property name: EMAIL
vCard versions: 2.1, 3.0, 4.0
email
- the email address to addpublic EmailType addEmail(String email, EmailTypeParameter... types)
addEmail(EmailType)
.
vCard property name: EMAIL
vCard versions: 2.1, 3.0, 4.0
email
- the email address to add (e.g. "johndoe@aol.com")types
- the type(s) to assign to the email
public List<TelephoneType> getTelephoneNumbers()
vCard property name: TEL
vCard versions: 2.1, 3.0, 4.0
public void addTelephoneNumber(TelephoneType telephoneNumber)
vCard property name: TEL
vCard versions: 2.1, 3.0, 4.0
telephoneNumber
- the telephone number to addpublic TelephoneType addTelephoneNumber(String telephoneNumber, TelephoneTypeParameter... types)
addTelephoneNumber(TelephoneType)
.
vCard property name: TEL
vCard 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 MailerType getMailer()
vCard property name: MAILER
vCard versions: 2.1, 3.0
public void setMailer(MailerType mailer)
vCard property name: MAILER
vCard versions: 2.1, 3.0
mailer
- the email clientpublic MailerType setMailer(String mailer)
setMailer(MailerType)
.
vCard property name: MAILER
vCard versions: 2.1, 3.0
mailer
- the email client (e.g. "Thunderbird")
public List<UrlType> getUrls()
vCard property name: URL
vCard versions: 2.1, 3.0, 4.0
public void addUrl(UrlType url)
vCard property name: URL
vCard versions: 2.1, 3.0, 4.0
url
- the URL to addpublic UrlType addUrl(String url)
addUrl(UrlType)
.
vCard property name: URL
vCard versions: 2.1, 3.0, 4.0
url
- the URL to add (e.g. "http://example.com")
public List<TimezoneType> getTimezones()
Gets all instances of the timezone property.
This method should only be used on the rare occasion when there are
alternative representations of this property (see:
explanation of ALTID
). Otherwise, use
getTimezone()
.
vCard property name: TZ
vCard versions: 2.1, 3.0, 4.0
TimezoneType.getAltId()
public TimezoneType getTimezone()
Gets the timezone the person lives/works in.
Use getTimezones()
to get the alternative representations of this
property (see: explanation of ALTID
).
vCard property name: TZ
vCard versions: 2.1, 3.0, 4.0
public void setTimezone(TimezoneType timezone)
Sets the timezone the person lives/works in.
Use addTimezone(ezvcard.types.TimezoneType)
to add alternative representations of this
property (see: explanation of ALTID
).
vCard property name: TZ
vCard versions: 2.1, 3.0, 4.0
timezone
- the timezonepublic void addTimezone(TimezoneType timezone)
Adds a timezone to the vCard.
This method should only be used on the rare occasion when alternative
representations of this property are needed (see:
explanation of ALTID
). Otherwise, use
setTimezone(ezvcard.types.TimezoneType)
.
vCard property name: TZ
vCard versions: 2.1, 3.0, 4.0
timezone
- the timezone to addTimezoneType.setAltId(java.lang.String)
public List<GeoType> getGeos()
Gets all geographical position properties.
This method should only be used on the rare occasion when there are
alternative representations of this property (see:
explanation of ALTID
). Otherwise, use
getGeo()
.
vCard property name: GEO
vCard versions: 2.1, 3.0, 4.0
GeoType.getAltId()
public GeoType getGeo()
Gets the geographical position of where the person lives/works.
Use getGeos()
to get the alternative representations of this
property (see: explanation of ALTID
).
vCard property name: GEO
vCard versions: 2.1, 3.0, 4.0
public void setGeo(GeoType geo)
Sets the geographical position of where the person lives/works.
Use addGeo(ezvcard.types.GeoType)
to add alternative representations of this property
(see: explanation of ALTID
).
vCard property name: GEO
vCard versions: 2.1, 3.0, 4.0
geo
- the geographical positionpublic GeoType setGeo(double latitude, double longitude)
Sets the geographical position of where the person lives/works. This is a
convenience method for setGeo(GeoType)
.
Use addGeo(ezvcard.types.GeoType)
to add alternative representations of this property
(see: explanation of ALTID
).
vCard property name: GEO
vCard versions: 2.1, 3.0, 4.0
latitude
- the latitudelongitude
- the longitude
public void addGeo(GeoType geo)
Adds a geographical position to the vCard.
This method should only be used on the rare occasion when alternative
representations of this property are needed (see:
explanation of ALTID
). Otherwise, use
setGeo(GeoType)
.
vCard property name: GEO
vCard versions: 2.1, 3.0, 4.0
geo
- the geographical position to addGeoType.setAltId(java.lang.String)
public OrganizationType getOrganization()
Gets the hierarchy of department(s) to which the person belongs.
Use getOrganizations()
to get the alternative representations of
this property (see: explanation of ALTID
).
vCard property name: ORG
vCard versions: 2.1, 3.0, 4.0
public List<OrganizationType> getOrganizations()
Gets all organization properties.
This method should only be used on the rare occasion when there are
alternative representations of this property (see:
explanation of ALTID
). Otherwise, use
getOrganization()
.
vCard property name: ORG
vCard versions: 2.1, 3.0, 4.0
OrganizationType.getAltId()
public void addOrganization(OrganizationType organization)
Adds an organization property to the vCard.
This method should only be used on the rare occasion when alternative
representations of this property are needed (see:
explanation of ALTID
). Otherwise, use
setOrganization(OrganizationType)
.
vCard property name: ORG
vCard versions: 2.1, 3.0, 4.0
organization
- the organization type object to addOrganizationType.setAltId(java.lang.String)
public void setOrganization(OrganizationType organization)
Sets the hierarchy of departments to which the person belongs.
Use addOrganization(ezvcard.types.OrganizationType)
to add alternative representations of this
property (see: explanation of ALTID
).
vCard property name: ORG
vCard versions: 2.1, 3.0, 4.0
organization
- the organization type objectpublic OrganizationType setOrganization(String... departments)
Sets the hierarchy of departments to which the person belongs. This is a
convenience method for setOrganization(OrganizationType)
.
Use addOrganization(ezvcard.types.OrganizationType)
to add alternative representations of this
property (see: explanation of ALTID
).
vCard property name: ORG
vCard 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")public List<CategoriesType> getCategoriesList()
Gets all CATEGORIES properties.
This method should only be used on the rare occasion when there are
alternative representations of this property (see:
explanation of ALTID
). Otherwise, use
getCategories()
.
vCard property name: CATEGORIES
vCard versions: 2.1, 3.0, 4.0
CategoriesType.getAltId()
public CategoriesType getCategories()
Gets the list of keywords (aka "tags") that can be used to describe the person.
Use getCategoriesList()
to get the alternative representations of
this property (see: explanation of ALTID
).
vCard property name: CATEGORIES
vCard versions: 2.1, 3.0, 4.0
public void addCategories(CategoriesType categories)
Adds a CATEGORIES property to the vCard.
This method should only be used on the rare occasion when alternative
representations of this property are needed (see:
explanation of ALTID
). Otherwise, use
setCategories(CategoriesType)
.
vCard property name: CATEGORIES
vCard versions: 2.1, 3.0, 4.0
categories
- the CATEGORIES property to addCategoriesType.setAltId(java.lang.String)
public void setCategories(CategoriesType categories)
Sets the list of keywords (aka "tags") that can be used to describe the person.
Use addCategories(ezvcard.types.CategoriesType)
to add alternative representations of this
property (see: explanation of ALTID
).
vCard property name: CATEGORIES
vCard versions: 2.1, 3.0, 4.0
categories
- the categories (multiple categories can be added to
this object)public CategoriesType 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(CategoriesType)
.
Use addCategories(ezvcard.types.CategoriesType)
to add alternative representations of this
property (see: explanation of ALTID
).
vCard property name: CATEGORIES
vCard versions: 2.1, 3.0, 4.0
categories
- the category or categories (e.g. "swimmer", "biker",
"knitter")
public AgentType getAgent()
vCard property name: AGENT
vCard versions: 2.1, 3.0
public void setAgent(AgentType agent)
vCard property name: AGENT
vCard versions: 2.1, 3.0
agent
- the agent informationpublic List<NoteType> getNotes()
vCard property name: NOTE
vCard versions: 2.1, 3.0, 4.0
public void addNote(NoteType note)
vCard property name: NOTE
vCard versions: 2.1, 3.0, 4.0
note
- the note to addpublic NoteType addNote(String note)
addNote(NoteType)
.
vCard property name: NOTE
vCard versions: 2.1, 3.0, 4.0
note
- the note to add
public UidType getUid()
vCard property name: UID
vCard versions: 2.1, 3.0, 4.0
public void setUid(UidType uid)
vCard property name: UID
vCard versions: 2.1, 3.0, 4.0
uid
- the unique identifierpublic List<KeyType> getKeys()
vCard property name: KEY
vCard versions: 2.1, 3.0, 4.0
public void addKey(KeyType key)
vCard property name: KEY
vCard versions: 2.1, 3.0, 4.0
key
- the key to addpublic List<ImppType> getImpps()
vCard property name: IMPP
vCard versions: 3.0, 4.0
public void addImpp(ImppType impp)
vCard property name: IMPP
vCard versions: 3.0, 4.0
impp
- the instant messaging handle to addpublic List<RelatedType> getRelations()
vCard property name: RELATED
vCard versions: 4.0
public void addRelated(RelatedType related)
vCard property name: RELATED
vCard versions: 4.0
related
- the relation to addpublic List<LanguageType> getLanguages()
vCard property name: LANG
vCard versions: 4.0
public void addLanguage(LanguageType language)
vCard property name: LANG
vCard versions: 4.0
language
- the language to addpublic LanguageType addLanguage(String language)
addLanguage(LanguageType)
.
vCard property name: LANG
vCard versions: 4.0
language
- the language to add (e.g. "en-us")
public List<CalendarRequestUriType> getCalendarRequestUris()
vCard property name: CALADRURI
vCard versions: 4.0
public void addCalendarRequestUri(CalendarRequestUriType calendarRequestUri)
vCard property name: CALADRURI
vCard versions: 4.0
calendarRequestUri
- the calendar request URI to addpublic List<CalendarUriType> getCalendarUris()
vCard property name: CALURI
vCard versions: 4.0
public void addCalendarUri(CalendarUriType calendarUri)
vCard property name: CALURI
vCard versions: 4.0
calendarUri
- the calendar URI to addpublic List<FbUrlType> getFbUrls()
vCard property name: FBURL
vCard versions: 4.0
public void addFbUrl(FbUrlType fbUrl)
vCard property name: FBURL
vCard versions: 4.0
fbUrl
- the free-busy URL to addpublic List<ClientPidMapType> getClientPidMaps()
vCard property name: CLIENTPIDMAP
vCard versions: 4.0
public void addClientPidMap(ClientPidMapType clientPidMap)
vCard property name: CLIENTPIDMAP
vCard versions: 4.0
clientPidMap
- the client PID map to addpublic List<XmlType> getXmls()
vCard property name: XML
vCard versions: 4.0
public void addXml(XmlType xml)
vCard property name: XML
vCard versions: 4.0
xml
- the XML data to addpublic List<ExpertiseType> getExpertise()
vCard property name: EXPERTISE
vCard versions: 4.0
public void addExpertise(ExpertiseType expertise)
vCard property name: EXPERTISE
vCard versions: 4.0
expertise
- the professional skill to addpublic ExpertiseType addExpertise(String expertise)
addExpertise(ExpertiseType)
.
vCard property name: EXPERTISE
vCard versions: 4.0
expertise
- the professional skill to add (e.g. "programming")
public List<HobbyType> getHobbies()
vCard property name: HOBBY
vCard versions: 4.0
public void addHobby(HobbyType hobby)
vCard property name: HOBBY
vCard versions: 4.0
hobby
- the hobby to addpublic HobbyType addHobby(String hobby)
addHobby(HobbyType)
.
vCard property name: HOBBY
vCard versions: 4.0
hobby
- the hobby to add (e.g. "photography")
public List<InterestType> getInterests()
vCard property name: INTEREST
vCard versions: 4.0
public void addInterest(InterestType interest)
vCard property name: INTEREST
vCard versions: 4.0
interest
- the interest to addpublic InterestType addInterest(String interest)
addInterest(InterestType)
.
vCard property name: INTEREST
vCard versions: 4.0
interest
- the interest to add (e.g. "football")
public List<OrgDirectoryType> getOrgDirectories()
vCard property name: ORG-DIRECTORY
vCard versions: 4.0
public void addOrgDirectory(OrgDirectoryType orgDirectory)
vCard property name: ORG-DIRECTORY
vCard versions: 4.0
orgDirectory
- the organization directory to addpublic OrgDirectoryType addOrgDirectory(String orgDirectory)
addOrgDirectory(OrgDirectoryType)
.
vCard property name: ORG-DIRECTORY
vCard versions: 4.0
orgDirectory
- the organization directory to add (e.g.
"http://company.com/staff")
public void addExtendedType(VCardType type)
type
- the extended type to addpublic RawType addExtendedType(String name, String value)
name
- the name of the extended type. It MUST begin with "X-" (for
example, "X-GENDER").value
- the value of the extended type
public List<RawType> getExtendedType(String typeName)
typeName
- the type name
public <T extends VCardType> List<T> getExtendedType(String typeName, Class<T> clazz)
typeName
- the type nameclazz
- the type class
public <T extends VCardType> List<T> getExtendedType(Class<T> clazz)
clazz
- the type class
public Map<String,List<VCardType>> getExtendedTypes()
public Collection<VCardType> getAllTypes()
public Iterator<VCardType> iterator()
iterator
in interface Iterable<VCardType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |