org.mnode.ical4j.json.jot.OrganizerBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ical4j-json Show documentation
Show all versions of ical4j-json Show documentation
Custom marshalling between iCal4j objects and JSON formats
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;
}
}