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

nl.vpro.domain.constraint.page.And 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
package nl.vpro.domain.constraint.page;

import nl.vpro.domain.constraint.AbstractAnd;
import nl.vpro.domain.constraint.Constraint;
import nl.vpro.domain.page.Page;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import java.util.List;

/**
 * @author Michiel Meeuwissen
 * @since 2.0
 */
public class And extends AbstractAnd {

    public And() {

    }

    @SafeVarargs
    public And(Constraint... constraints) {
        super(constraints);
    }

    @Override
    @XmlElements({
            @XmlElement(name = "and", type = And.class),
            @XmlElement(name = "or", type = Or.class),
            @XmlElement(name = "broadcaster", type = BroadcasterConstraint.class),
            @XmlElement(name = "type", type = PageTypeConstraint.class),
            @XmlElement(name = "portal", type = PortalConstraint.class),
            @XmlElement(name = "section", type = SectionConstraint.class),
            @XmlElement(name = "genre", type = GenreConstraint.class),
    })
    public List> getConstraints() {
        return constraints;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy