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

net.fortuna.ical4j.vcard.ExplanatoryPropertyAccessor Maven / Gradle / Ivy

package net.fortuna.ical4j.vcard;

import net.fortuna.ical4j.model.PropertyContainer;
import net.fortuna.ical4j.vcard.property.*;

import java.util.List;
import java.util.Optional;

public interface ExplanatoryPropertyAccessor extends PropertyContainer {

    default List getCategories() {
        return getProperties(PropertyName.CATEGORIES.toString());
    }

    default List getNotes() {
        return getProperties(PropertyName.NOTE.toString());
    }

    default Optional getProdId() {
        return getProperty(PropertyName.PRODID);
    }

    default Optional getRevision() {
        return getProperty(PropertyName.REV);
    }

    default List getSounds() {
        return getProperties(PropertyName.SOUND.toString());
    }

    default Optional getUid() {
        return getProperty(PropertyName.UID);
    }

    default List getClientPidMaps() {
        return getProperties(PropertyName.CLIENTPIDMAP.toString());
    }

    default List getUrls() {
        return getProperties(PropertyName.URL.toString());
    }

    default Version getVersion() {
        return getRequiredProperty(PropertyName.VERSION);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy