nl.vpro.nicam.NicamRated Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of media-domain Show documentation
Show all versions of media-domain Show documentation
The basic domain classes for 'media', the core of POMS. Also, the 'update' XML bindings for it.
It also contains some closely related domain classes like the enum to contain NICAM kijkwijzer settings.
package nl.vpro.nicam;
import java.util.List;
import nl.vpro.domain.media.AgeRating;
import nl.vpro.domain.media.ContentRating;
/**
* See NICAM
* @author Michiel Meeuwissen
* @since 4.3
*/
public interface NicamRated {
AgeRating getAgeRating();
List getContentRatings();
default boolean isNicamRated() {
List cr = getContentRatings();
return getAgeRating() != null || (cr != null && !cr.isEmpty());
}
}