public class VCard extends Object
Constructor and Description |
---|
VCard()
Instantiates an empty VCard.
|
VCard(org.jdom2.Element element)
Instantiates a new VCard from an entity of the Omex description.
|
VCard(String familyName,
String givenName,
String email,
String organization)
Instantiates a new VCard.
|
Modifier and Type | Method and Description |
---|---|
String |
getEmail()
Gets the email address.
|
String |
getFamilyName()
Gets the family name.
|
String |
getGivenName()
Gets the given name.
|
String |
getOrganization()
Gets the organization.
|
boolean |
isEmpty()
Checks if the VCard is empty.
|
void |
setEmail(String email)
Sets the email.
|
void |
setFamilyName(String familyName)
Sets the family name.
|
void |
setGivenName(String givenName)
Sets the given name.
|
void |
setOrganization(String organization)
Sets the organization.
|
Object |
toJsonObject()
Export this VCard as a JSON object.
|
void |
toXml(org.jdom2.Element parent)
Appends the VCard tree to an XML element.
|
public VCard()
public VCard(String familyName, String givenName, String email, String organization)
familyName
- the family namegivenName
- the given nameemail
- the emailorganization
- the organizationpublic VCard(org.jdom2.Element element)
element
- the XML element which roots the VCard entitypublic boolean isEmpty()
public void toXml(org.jdom2.Element parent)
parent
- the parent element in the XML treepublic String getFamilyName()
public String getGivenName()
public String getEmail()
public String getOrganization()
public void setFamilyName(String familyName)
familyName
- the new family namepublic void setGivenName(String givenName)
givenName
- the new given namepublic void setEmail(String email)
email
- the new emailpublic void setOrganization(String organization)
organization
- the new organizationpublic Object toJsonObject()
Copyright © 2015. All rights reserved.