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

org.mnode.ical4j.json.jot.OrganizerBuilder Maven / Gradle / Ivy

The newest version!
package org.mnode.ical4j.json.jot;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import net.fortuna.ical4j.model.property.Organizer;

public class OrganizerBuilder extends AbstractJotBuilder {

    @Override
    public JsonNode build() {
        ObjectNode node = createObjectNode();
        putIfNotNull("cal-address", node, component.getValue());
        component.getParameters().forEach(parameter -> {
            node.put(parameter.getName().toLowerCase(), parameter.getValue());
        });
        return node;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy