nl.vpro.domain.constraint.media.AgeRatingConstraint 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.AgeRating;
import nl.vpro.domain.media.MediaObject;
/**
* @author Jeroen van Vianen
* @since 4.8
*/
@XmlAccessorType(XmlAccessType.NONE)
@XmlType(name = "ageRatingConstraintType")
public class AgeRatingConstraint extends EnumConstraint {
public AgeRatingConstraint() {
super(AgeRating.class);
}
public AgeRatingConstraint(AgeRating ageRating) {
super(AgeRating.class, ageRating);
}
@Override
public String getESPath() {
return "ageRating";
}
@Override
protected Collection getEnumValues(MediaObject input) {
return asCollection(input.getAgeRating());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy