nl.vpro.domain.media.update.CreditsUpdate 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.update;
import lombok.Getter;
import lombok.ToString;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.xml.bind.annotation.XmlAttribute;
import nl.vpro.domain.media.*;
/**
* @see nl.vpro.domain.media.update
* @see Credits
*/
@ToString(of = { "role" })
public abstract class CreditsUpdate {
@XmlAttribute(required = true)
@Enumerated(EnumType.STRING)
@Getter
protected RoleType role;
public CreditsUpdate(RoleType role) {
this.role = role;
}
protected CreditsUpdate() {
// needed for jaxb
}
public abstract Credits toCredits();
}