Skip to content

iCal4j vCard - Examples

This page provides examples of using an iCal4j VCard model to generate VCard objects.

Creating a simple vCard

List<Property> props = new ArrayList<Property>();
props.add(new Source(URI.create("ldap://,%20o=Babsco,%20c=US")));
props.add(new Name("Babs Jensen's Contact Information"));
// add a custom property..
props.add(new Property("test") {
    public String getValue() {
        return null;

    public void validate() throws ValidationException {

VCard vcard = new VCard(props);