Class VCard
- java.lang.Object
-
- rocks.xmpp.extensions.vcard.temp.model.VCard
-
- All Implemented Interfaces:
Addressable
public final class VCard extends Object implements Addressable
The implementation of the<vCard/>element in thevcard-tempnamespace.- See Also:
- XEP-0054: vcard-temp, DTD
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVCard.AddressRepresents structured address data.static classVCard.AddressLabelRepresents the formatted text corresponding to a delivery address.static classVCard.Classificationstatic classVCard.EmailRepresents an email address.static classVCard.GeoStores information related to the global positioning.static classVCard.ImageRepresents an image.static classVCard.KeyRepresents an authentication credential or encryption key.static classVCard.NameRepresents a name.static classVCard.OrganizationRepresents an organization.static classVCard.SoundRepresents an image.static classVCard.TelephoneNumberRepresents a telephone number.
-
Constructor Summary
Constructors Constructor Description VCard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<VCard.Address>getAddresses()Gets the addresses.StringgetAgent()Gets information about another person who will act on behalf of the individual or resource associated with the vCard.LocalDategetBirthday()Gets the birthday.List<String>getCategories()Gets application category information about the vCard.VCard.ClassificationgetClassification()StringgetDesc()Gets free-form descriptive text.List<VCard.Email>getEmails()Gets the email addresses.StringgetFormattedName()Gets the formatted text corresponding to the name.VCard.GeogetGeo()Gets information related to the global positioning of the object the vCard represents.JidgetJid()Gets the JID.VCard.KeygetKey()Gets the authentication credential or encryption key.List<VCard.AddressLabel>getLabels()Gets the labels.VCard.ImagegetLogo()Gets the logo.StringgetMailer()Gets the type of electronic mail software that is used by the individual associated with the vCard.VCard.NamegetName()Gets the name.StringgetNickname()Gets the nickname.StringgetNote()Gets supplemental information or a comment that is associated with the vCard.VCard.OrganizationgetOrganization()Gets the organization.VCard.ImagegetPhoto()Gets the photo.StringgetProductId()Gets the identifier for the product that created the vCard object.InstantgetRevision()Gets revision information about the current vCard.StringgetRole()Gets information concerning the role, occupation, or business category of the object the vCard represents.StringgetSortString()StringgetSound()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.StringgetTimeZone()Gets the time zone.StringgetTitle()Gets the job title, functional position or function of the object the vCard represents.StringgetUid()Gets the UID, to specify a value that represents a globally unique identifier corresponding to the individual or resource associated with the vCard.URLgetUrl()Gets an URL associated with the object that the vCard refers to.voidsetAgent(String agent)Sets the agent.voidsetBirthday(LocalDate birthday)Sets the birthday.voidsetClassification(VCard.Classification classification)voidsetDesc(String desc)Sets free-form descriptive text.voidsetFormattedName(String formattedName)Sets the formatted name.voidsetGeo(VCard.Geo geo)Sets the geo location.voidsetJid(Jid jid)Sets the JID.voidsetKey(VCard.Key key)Sets the authentication credential or encryption key.voidsetLogo(VCard.Image logo)Sets the logo.voidsetMailer(String mailer)Sets the mailer.voidsetName(VCard.Name name)Sets the name.voidsetNickname(String nickname)Sets the nickname.voidsetNote(String note)Sets a note.voidsetOrganization(VCard.Organization organization)Sets the organization.voidsetPhoto(VCard.Image photo)Sets the photo.voidsetProductId(String productId)Sets the product id.voidsetRevision(Instant revision)Sets revision information.voidsetRole(String role)Sets the role.voidsetSortString(String sortString)Sets the sort string.voidsetSound(String sound)Sets the sound.voidsetTimeZone(String timezone)Sets the time zone.voidsetTitle(String title)Sets the title.voidsetUid(String uid)Sets the UID.voidsetUrl(URL url)Sets an URL.
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
vcard-temp- See Also:
- Constant Field Values
-
-
Method Detail
-
getFormattedName
public String getFormattedName()
Gets the formatted text corresponding to the name.- Returns:
- The formatted name.
- See Also:
setFormattedName(String)
-
setFormattedName
public void setFormattedName(String formattedName)
Sets the formatted name.- Parameters:
formattedName- The formatted name.- See Also:
getFormattedName()
-
getName
public VCard.Name getName()
Gets the name.- Returns:
- The name.
- See Also:
setName(VCard.Name)
-
setName
public void setName(VCard.Name name)
Sets the name.- Parameters:
name- The name.- See Also:
getName()
-
getNickname
public String getNickname()
Gets the nickname.- Returns:
- The nickname.
- See Also:
setNickname(String)
-
setNickname
public void setNickname(String nickname)
Sets the nickname.- Parameters:
nickname- The nickname.- See Also:
getNickname()
-
getPhoto
public VCard.Image getPhoto()
Gets the photo.- Returns:
- Either a URL to a photo or a base64 encoded photo.
- See Also:
setPhoto(VCard.Image)
-
setPhoto
public void setPhoto(VCard.Image photo)
Sets the photo.- Parameters:
photo- The photo.- See Also:
getPhoto()
-
getBirthday
public LocalDate getBirthday()
Gets the birthday.- Returns:
- The birth day.
- See Also:
setBirthday(LocalDate)
-
setBirthday
public void setBirthday(LocalDate birthday)
Sets the birthday.- Parameters:
birthday- The birthday.- See Also:
getBirthday()
-
getUrl
public URL getUrl()
Gets an URL associated with the object that the vCard refers to.- Returns:
- The URL.
- See Also:
setUrl(java.net.URL)
-
getOrganization
public VCard.Organization getOrganization()
Gets the organization.- Returns:
- The organization.
- See Also:
setOrganization(VCard.Organization)
-
setOrganization
public void setOrganization(VCard.Organization organization)
Sets the organization.- Parameters:
organization- The organization.- See Also:
getOrganization()
-
getAddresses
public List<VCard.Address> getAddresses()
Gets the addresses.- Returns:
- The addresses.
-
getTelephoneNumbers
public List<VCard.TelephoneNumber> getTelephoneNumbers()
Gets the telephone numbers.- Returns:
- The telephone numbers.
-
getEmails
public List<VCard.Email> getEmails()
Gets the email addresses.- Returns:
- The email addresses.
-
getLabels
public List<VCard.AddressLabel> getLabels()
Gets the labels.- Returns:
- The labels.
-
getJid
public Jid getJid()
Gets the JID.- Specified by:
getJidin interfaceAddressable- Returns:
- The JID.
- See Also:
setJid(Jid)
-
getMailer
public String getMailer()
Gets the type of electronic mail software that is used by the individual associated with the vCard.- Returns:
- The mailer.
- See Also:
setMailer(String)
-
setMailer
public void setMailer(String mailer)
Sets the mailer.- Parameters:
mailer- The mailer.- See Also:
getMailer()
-
getTimeZone
public String getTimeZone()
Gets the time zone.- Returns:
- The time zone.
- See Also:
setTimeZone(String)
-
setTimeZone
public void setTimeZone(String timezone)
Sets the time zone.- Parameters:
timezone- The time zone.- See Also:
getTimeZone()
-
getGeo
public VCard.Geo getGeo()
Gets information related to the global positioning of the object the vCard represents.- Returns:
- The geo location.
- See Also:
setGeo(VCard.Geo)
-
setGeo
public void setGeo(VCard.Geo geo)
Sets the geo location.- Parameters:
geo- The geo location.- See Also:
getGeo()
-
getTitle
public String getTitle()
Gets the job title, functional position or function of the object the vCard represents.- Returns:
- The title.
- See Also:
setTitle(String)
-
setTitle
public void setTitle(String title)
Sets the title.- Parameters:
title- The title.- See Also:
getTitle()
-
getRole
public String getRole()
Gets information concerning the role, occupation, or business category of the object the vCard represents.- Returns:
- The role.
- See Also:
setRole(String)
-
setRole
public void setRole(String role)
Sets the role.- Parameters:
role- The role.- See Also:
getRole()
-
getAgent
public String getAgent()
Gets information about another person who will act on behalf of the individual or resource associated with the vCard.- Returns:
- The agent.
- See Also:
setAgent(String)
-
setAgent
public void setAgent(String agent)
Sets the agent.- Parameters:
agent- The agent.- See Also:
getAgent()
-
getLogo
public VCard.Image getLogo()
Gets the logo.- Returns:
- Either an URL to an image or a base64 encoded image.
- See Also:
setLogo(VCard.Image)
-
setLogo
public void setLogo(VCard.Image logo)
Sets the logo.- Parameters:
logo- The logo.- See Also:
getLogo()
-
getCategories
public List<String> getCategories()
Gets application category information about the vCard.- Returns:
- The categories.
-
getNote
public String getNote()
Gets supplemental information or a comment that is associated with the vCard.- Returns:
- The note.
- See Also:
setNote(String)
-
setNote
public void setNote(String note)
Sets a note.- Parameters:
note- The note.- See Also:
getNote()
-
getProductId
public String getProductId()
Gets the identifier for the product that created the vCard object.- Returns:
- The product id.
- See Also:
setProductId(String)
-
setProductId
public void setProductId(String productId)
Sets the product id.- Parameters:
productId- The product id.- See Also:
getProductId()
-
getRevision
public Instant getRevision()
Gets revision information about the current vCard.- Returns:
- The revision.
- See Also:
setRevision(Instant)
-
setRevision
public void setRevision(Instant revision)
Sets revision information.- Parameters:
revision- The revision information.- See Also:
getRevision()
-
getSortString
public String getSortString()
Gets the sort string, specifying the family name or given name text to be used for national-language-specific sorting of the FN and N types.- Returns:
- The sort string.
- See Also:
setSortString(String)
-
setSortString
public void setSortString(String sortString)
Sets the sort string.- Parameters:
sortString- The sort string.- See Also:
getSortString()
-
getSound
public String getSound()
Gets the sound, zo specify a digital sound content information that annotates some aspect of the vCard. By default this type is used to specify the proper pronunciation of the name type value of the vCard.- Returns:
- The sound, either as pronunciation string, as URL or as base64 encoded binary.
- See Also:
setSound(String)
-
setSound
public void setSound(String sound)
Sets the sound.- Parameters:
sound- The sound.- See Also:
getSound()
-
getUid
public 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.- Returns:
- The UID.
- See Also:
setUid(String)
-
getKey
public VCard.Key getKey()
Gets the authentication credential or encryption key.- Returns:
- The key.
- See Also:
setKey(VCard.Key)
-
setKey
public void setKey(VCard.Key key)
Sets the authentication credential or encryption key.- Parameters:
key- The key.- See Also:
getKey()
-
getDesc
public String getDesc()
Gets free-form descriptive text.- Returns:
- The descriptive text.
- See Also:
setDesc(String)
-
setDesc
public void setDesc(String desc)
Sets free-form descriptive text.- Parameters:
desc- The descriptive text.- See Also:
getDesc()
-
getClassification
public VCard.Classification getClassification()
-
setClassification
public void setClassification(VCard.Classification classification)
-
-