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

nl.vpro.domain.api.media.ScheduleForm Maven / Gradle / Ivy

Go to download

Contains the objects used by the Frontend API, like forms and result objects

There is a newer version: 8.3.3
Show newest version
/*
 * Copyright (C) 2013 All rights reserved
 * VPRO The Netherlands
 */
package nl.vpro.domain.api.media;

import java.util.function.Predicate;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import nl.vpro.domain.api.Form;
import nl.vpro.domain.media.MediaObject;

/**
 *
 * @author Michiel Meeuwissen
 * @since 4.2
 */
@SuppressWarnings("WSReferenceInspection")         // Intellij warnings are incorrect since parent class is @XmlTransient
@XmlRootElement(name = "scheduleForm")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "scheduleFormType",
    propOrder = {
        "searches"
    })
public class ScheduleForm extends AbstractMediaForm implements Form, Predicate {

    public static ScheduleForm from(MediaForm form) {
        ScheduleForm scheduleForm = new ScheduleForm();
        scheduleForm.setSearches(form.getSearches());
        scheduleForm.setHighlight(form.isHighlight());
        return scheduleForm;
    }


    @Override
    public boolean isFaceted() {
        return false;

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy