org.mnode.ical4j.json.schema.SchemaPersonSerializer 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.schema;
import com.fasterxml.jackson.databind.JsonNode;
import net.fortuna.ical4j.vcard.VCard;
public class SchemaPersonSerializer extends AbstractSchemaCardSerializer {
public SchemaPersonSerializer(Class t) {
super(t);
}
@Override
protected JsonNode buildSchema(VCard card) {
AbstractSchemaBuilder builder = new SchemaPersonBuilder().component(card);
return builder.build();
}
}