nl.vpro.domain.constraint.media.ContentRatingConstraint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-domain Show documentation
Show all versions of api-domain Show documentation
Contains the objects used by the Frontend API, like forms and result objects
/*
* Copyright (C) 2016 All rights reserved
* VPRO The Netherlands
*/
package nl.vpro.domain.constraint.media;
import java.util.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import nl.vpro.domain.constraint.EnumConstraint;
import nl.vpro.domain.media.ContentRating;
import nl.vpro.domain.media.MediaObject;
/**
* @author Jeroen van Vianen
* @since 4.8
*/
@XmlAccessorType(XmlAccessType.NONE)
@XmlType(name = "contentRatingConstraintType")
public class ContentRatingConstraint extends EnumConstraint {
public ContentRatingConstraint() {
super(ContentRating.class);
}
public ContentRatingConstraint(ContentRating contentRating) {
super(ContentRating.class, contentRating);
}
@Override
public String getESPath() {
return "contentRatings";
}
@Override
protected Collection getEnumValues(MediaObject input) {
return input.getContentRatings();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy