nl.vpro.domain.media.ParentChildRelation 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.domain.media;
/**
* Represents a parent/child relation between two {@link MidIdentifiable}s. In practice between two {@link MediaObject}s.
*
* Poms recognizes three types of such relations:
*
*
* - 'member of' {@link MediaObject#getMemberOf()}
* - 'episode of' {@link Program#getEpisodeOf()}
* - 'segment of' {@link Segment#getSegmentOf()}
*
*
* @author Michiel Meeuwissen
* @since 5.13.1
*/
public interface ParentChildRelation {
default String getParentMid() {
return getMidRef();
}
String getMidRef();
String getChildMid();
/**
* The type of the parent
*/
MediaType getType();
}