All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.cnr.iit.jscontact.tools.vcard.converters.AbstractConverter Maven / Gradle / Ivy

package it.cnr.iit.jscontact.tools.vcard.converters;

import com.fasterxml.jackson.databind.ObjectMapper;

import java.util.HashMap;
import java.util.Map;

/**
 * Abstract class for converting a JSContact object from/to a vCard 4.0 [RFC6350] and its transliterations.
 *
 * @see RFC6350
 * @author Mario Loffredo
 */
public abstract class AbstractConverter {

    protected static final Map fakeExtensionsMapping = new HashMap() {{
        put("contact-uri","links");
        put("created","created");
        put("language","language");
        put("gramgender","speakToAs/grammaticalGender");
        put("pronouns","speakToAs/pronouns");
        put("contact-by","contactBy");
        put("jsprop",null);
        put("x-ablabel",null);
        put("socialprofile","onlineServices");
    }};

    protected static final ObjectMapper mapper = new ObjectMapper();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy