public final class VCard extends Object
<vCard/> element in the vcard-temp namespace.| Modifier and Type | Class and Description |
|---|---|
static class |
VCard.Address
Represents structured address data.
|
static class |
VCard.AddressLabel
Represents the formatted text corresponding to a delivery address.
|
static class |
VCard.Classification |
static class |
VCard.Email
Represents an email address.
|
static class |
VCard.Geo
Stores information related to the global positioning.
|
static class |
VCard.Image
Represents an image.
|
static class |
VCard.Key
Represents an authentication credential or encryption key.
|
static class |
VCard.Name
Represents a name.
|
static class |
VCard.Organization
Represents an organization.
|
static class |
VCard.Sound
Represents an image.
|
static class |
VCard.TelephoneNumber
Represents a telephone number.
|
| Constructor and Description |
|---|
VCard() |
| Modifier and Type | Method and Description |
|---|---|
List<VCard.Address> |
getAddresses()
Gets the addresses.
|
String |
getAgent()
Gets information about another person who will act on behalf of the individual or resource associated with the vCard.
|
Date |
getBirthday()
Gets the birthday.
|
List<String> |
getCategories()
Gets application category information about the vCard.
|
VCard.Classification |
getClassification() |
String |
getDesc()
Gets free-form descriptive text.
|
List<VCard.Email> |
getEmails()
Gets the email addresses.
|
String |
getFormattedName()
Gets the formatted text corresponding to the name.
|
VCard.Geo |
getGeo()
Gets information related to the global positioning of the object the vCard represents.
|
Jid |
getJid()
Gets the JID.
|
VCard.Key |
getKey()
Gets the authentication credential or encryption key.
|
List<VCard.AddressLabel> |
getLabels()
Gets the labels.
|
VCard.Image |
getLogo()
Gets the logo.
|
String |
getMailer()
Gets the type of electronic mail software that is used by the individual associated with the vCard.
|
VCard.Name |
getName()
Gets the name.
|
String |
getNickName()
Gets the nick name.
|
String |
getNote()
Gets supplemental information or a comment that is associated with the vCard.
|
VCard.Organization |
getOrganization()
Gets the organization.
|
VCard.Image |
getPhoto()
Gets the photo.
|
String |
getProductId()
Gets the identifier for the product that created the vCard object.
|
Date |
getRevision()
Gets revision information about the current vCard.
|
String |
getRole()
Gets information concerning the role, occupation, or business category of the object the vCard represents.
|
String |
getSortString()
|
String |
getSound()
Gets the sound, zo specify a digital sound content information that annotates some aspect of the vCard.
|
List<VCard.TelephoneNumber> |
getTelephoneNumbers()
Gets the telephone numbers.
|
String |
getTimeZone()
Gets the time zone.
|
String |
getTitle()
Gets the job title, functional position or function of the object the vCard represents.
|
String |
getUid()
Gets the UID, to specify a value that represents a globally unique identifier corresponding to the individual or resource associated
with the vCard.
|
URL |
getUrl()
Gets an URL associated with the object that the vCard refers to.
|
void |
setAgent(String agent)
Sets the agent.
|
void |
setBirthday(Date birthday)
Sets the birthday.
|
void |
setClassification(VCard.Classification classification) |
void |
setDesc(String desc)
Sets free-form descriptive text.
|
void |
setFormattedName(String formattedName)
Sets the formatted name.
|
void |
setGeo(VCard.Geo geo)
Sets the geo location.
|
void |
setJid(Jid jid)
Sets the JID.
|
void |
setKey(VCard.Key key)
Sets the authentication credential or encryption key.
|
void |
setLogo(VCard.Image logo)
Sets the logo.
|
void |
setMailer(String mailer)
Sets the mailer.
|
void |
setName(VCard.Name name)
Sets the name.
|
void |
setNickName(String nickName)
Sets the nick name.
|
void |
setNote(String note)
Sets a note.
|
void |
setOrganization(VCard.Organization organization)
Sets the organization.
|
void |
setPhoto(VCard.Image photo)
Sets the photo.
|
void |
setProductId(String productId)
Sets the product id.
|
void |
setRevision(Date revision)
Sets revision information.
|
void |
setRole(String role)
Sets the role.
|
void |
setSortString(String sortString)
Sets the sort string.
|
void |
setSound(String sound)
Sets the sound.
|
void |
setTimeZone(String timezone)
Sets the time zone.
|
void |
setTitle(String title)
Sets the title.
|
void |
setUid(String uid)
Sets the UID.
|
void |
setUrl(URL url)
Sets an URL.
|
public static final String NAMESPACE
public String getFormattedName()
setFormattedName(String)public void setFormattedName(String formattedName)
formattedName - The formatted name.getFormattedName()public VCard.Name getName()
setName(VCard.Name)public void setName(VCard.Name name)
name - The name.getName()public String getNickName()
setNickName(String)public void setNickName(String nickName)
nickName - The nick name.getNickName()public VCard.Image getPhoto()
setPhoto(VCard.Image)public void setPhoto(VCard.Image photo)
photo - The photo.getPhoto()public Date getBirthday()
Code sample:
Calendar calendar = new GregorianCalendar();
calendar.setTime(vCard.getBirthday());
int year = calendar.get(Calendar.YEAR);
int month = calendar.get(Calendar.MONTH);
int day = calendar.get(Calendar.DATE);
setBirthday(java.util.Date)public void setBirthday(Date birthday)
Calendar calendar = new GregorianCalendar();
calendar.set(Calendar.YEAR, 2004);
calendar.set(Calendar.MONTH, Calendar.MARCH);
calendar.set(Calendar.DATE, 19);
vCard.setBirthday(calendar.getTime());
birthday - The birthday.getBirthday()public URL getUrl()
setUrl(java.net.URL)public VCard.Organization getOrganization()
setOrganization(VCard.Organization)public void setOrganization(VCard.Organization organization)
organization - The organization.getOrganization()public List<VCard.Address> getAddresses()
public List<VCard.TelephoneNumber> getTelephoneNumbers()
public List<VCard.Email> getEmails()
public List<VCard.AddressLabel> getLabels()
public Jid getJid()
setJid(rocks.xmpp.core.Jid)public String getMailer()
setMailer(String)public void setMailer(String mailer)
mailer - The mailer.getMailer()public String getTimeZone()
setTimeZone(String)public void setTimeZone(String timezone)
timezone - The time zone.getTimeZone()public VCard.Geo getGeo()
setGeo(VCard.Geo)public void setGeo(VCard.Geo geo)
geo - The geo location.getGeo()public String getTitle()
setTitle(String)public void setTitle(String title)
title - The title.getTitle()public String getRole()
setRole(String)public void setRole(String role)
role - The role.getRole()public String getAgent()
setAgent(String)public void setAgent(String agent)
agent - The agent.getAgent()public VCard.Image getLogo()
setLogo(VCard.Image)public void setLogo(VCard.Image logo)
logo - The logo.getLogo()public List<String> getCategories()
public String getNote()
setNote(String)public void setNote(String note)
note - The note.getNote()public String getProductId()
setProductId(String)public void setProductId(String productId)
productId - The product id.getProductId()public Date getRevision()
setRevision(java.util.Date)public void setRevision(Date revision)
revision - The revision information.getRevision()public String getSortString()
setSortString(String)public void setSortString(String sortString)
sortString - The sort string.getSortString()public String getSound()
setSound(String)public void setSound(String sound)
sound - The sound.getSound()public String getUid()
setUid(String)public VCard.Key getKey()
setKey(VCard.Key)public void setKey(VCard.Key key)
key - The key.getKey()public String getDesc()
setDesc(String)public void setDesc(String desc)
desc - The descriptive text.getDesc()public VCard.Classification getClassification()
public void setClassification(VCard.Classification classification)
Copyright © 2014 XMPP.rocks. All rights reserved.