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

nl.vpro.domain.constraint.media.AgeRatingConstraint 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
/*
 * 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