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

The newest version!
/*
 * Copyright (C) 2013 Licensed under the Apache License, Version 2.0
 * VPRO The Netherlands
 */
package nl.vpro.domain.api.media;

import java.util.function.Predicate;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.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