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

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

package net.fortuna.ical4j.vcard;

import net.fortuna.ical4j.model.PropertyContainer;
import net.fortuna.ical4j.vcard.property.Kind;
import net.fortuna.ical4j.vcard.property.Source;
import net.fortuna.ical4j.vcard.property.Xml;

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

public interface GeneralPropertyAccessor extends PropertyContainer {

    default List getSources() {
        return getProperties(PropertyName.SOURCE.toString());
    }

    default Optional getKind() {
        return getProperty(PropertyName.KIND);
    }

    default List getXmls() {
        return getProperties(PropertyName.XML.toString());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy