nl.vpro.domain.constraint.page.Not Maven / Gradle / Ivy
package nl.vpro.domain.constraint.page;
import nl.vpro.domain.constraint.AbstractNot;
import nl.vpro.domain.constraint.Constraint;
import nl.vpro.domain.page.Page;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
/**
* @author Michiel Meeuwissen
* @since 2.0
*/
public class Not extends AbstractNot {
protected Not() {
}
public Not(Constraint constraint) {
super(constraint);
}
@Override
@XmlElements({
@XmlElement(name = "and", type = And.class),
@XmlElement(name = "or", type = Or.class),
@XmlElement(name = "not", type = Not.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 Constraint getConstraint() {
return constraint;
}
@Override
public void setConstraint(Constraint constraint) {
this.constraint = constraint;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy