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

net.fortuna.ical4j.data.DefaultPropertyFactorySupplier Maven / Gradle / Ivy

package net.fortuna.ical4j.data;

import net.fortuna.ical4j.model.Property;
import net.fortuna.ical4j.model.PropertyFactory;
import net.fortuna.ical4j.model.property.*;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.function.Supplier;

public class DefaultPropertyFactorySupplier implements Supplier>> {

    @Override
    public List> get() {
        List> rfc5545 =
                Arrays.asList(
                        new Acknowledged.Factory(),
                        new Action.Factory(),
                        new Attach.Factory(),
                        new Attendee.Factory(),
                        new BusyType.Factory(),
                        new CalScale.Factory(),
                        new Categories.Factory(),
                        new Clazz.Factory(),
                        new Comment.Factory(),
                        new Completed.Factory(),
                        new Contact.Factory(),
                        new Created.Factory(),
                        new Description.Factory(),
                        new DtEnd.Factory(),
                        new DtStamp.Factory(),
                        new DtStart.Factory(),
                        new Due.Factory(),
                        new Duration.Factory(),
                        new ExDate.Factory(),
                        new ExRule.Factory(),
                        new FreeBusy.Factory(),
                        new Geo.Factory(),
                        new LastModified.Factory(),
                        new Location.Factory(),
                        new Method.Factory(),
                        new Organizer.Factory(),
                        new PercentComplete.Factory(),
                        new Priority.Factory(),
                        new ProdId.Factory(),
                        new RDate.Factory(),
                        new RecurrenceId.Factory(),
                        new RelatedTo.Factory(),
                        new Repeat.Factory(),
                        new RequestStatus.Factory(),
                        new Resources.Factory(),
                        new RRule.Factory(),
                        new Sequence.Factory(),
                        new Status.Factory(),
                        new Summary.Factory(),
                        new Transp.Factory(),
                        new Trigger.Factory(),
                        new TzId.Factory(),
                        new TzName.Factory(),
                        new TzOffsetFrom.Factory(),
                        new TzOffsetTo.Factory(),
                        new TzUrl.Factory(),
                        new Uid.Factory(),
                        new Url.Factory(),
                        new Version.Factory());

        List> rfc7808 =
                Arrays.asList(
                        new TzidAliasOf.Factory(),
                        new TzUntil.Factory());

        List> rfc7986 =
                Arrays.asList(
                        new Color.Factory(),
                        new Conference.Factory(),
                        new Image.Factory(),
                        new Name.Factory(),
                        new RefreshInterval.Factory(),
                        new Source.Factory());

        List> vvenue =
                Arrays.asList(
                        new Country.Factory(),
                        new ExtendedAddress.Factory(),
                        new Locality.Factory(),
                        new Postalcode.Factory(),
                        new Region.Factory(),
                        new StreetAddress.Factory(),
                        new Tel.Factory()
                );

        final List> vpollDraft =
                Arrays.asList(
                        new AcceptResponse.Factory(),
                        new PollCompletion.Factory(),
                        new PollItemId.Factory(),
                        new PollMode.Factory(),
                        new PollProperties.Factory(),
                        new PollWinner.Factory(),
                        new ReplyUrl.Factory(),
                        new Response.Factory());

        final List> relationsDraft =
                Arrays.asList(
                        new Concept.Factory(),
                        new Link.Factory());

        final List> eventPubDraft =
                Arrays.asList(
                        new CalendarAddress.Factory(),
                        new LocationType.Factory(),
                        new ParticipantType.Factory(),
                        new ResourceType.Factory(),
                        new StructuredData.Factory(),
                        new StyledDescription.Factory());

        final List> factories =
                new ArrayList<>(rfc5545);

        factories.addAll(rfc7808);
        factories.addAll(rfc7986);
        factories.addAll(relationsDraft);
        factories.addAll(eventPubDraft);
        factories.addAll(vpollDraft);

        return factories;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy