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

nl.vpro.domain.media.gtaa.GTAARecordManaged Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 8.3.1
Show newest version
package nl.vpro.domain.media.gtaa;

import java.util.ArrayList;
import java.util.List;

import jakarta.xml.bind.annotation.XmlAttribute;

/**
 * @author Michiel Meeuwissen
 * @since 5.12
 */
public interface GTAARecordManaged extends GTAAManaged {


    GTAARecord getGtaaRecord();

    void setGtaaRecord(GTAARecord gtaaRecord);

    @Override
    default String getName() {
        return getGtaaRecord().getName();
    }
    @Override
    default void setName(String name) {
        getGtaaRecord().setName(name);
    }
    @Override
    default List getScopeNotes() {
        return getGtaaRecord().getScopeNotes();
    }

    @Override
    default void setScopeNotes(List scopeNotes) {
        GTAARecord gtaaRecord = getGtaaRecord();
        if (scopeNotes != null) {
            gtaaRecord.setScopeNotes(scopeNotes);
        } else {
            gtaaRecord.setScopeNotes(new ArrayList<>());
        }
    }


    /**
     * The URI in GTAA of this thesaurus item
     */
    @Override
    @XmlAttribute
    default String getGtaaUri() {
        return getGtaaRecord().getUri();
    }

    @Override
    default void setGtaaUri(String uri) {
        getGtaaRecord().setUri(uri);
    }

    /**
     * The status in GTAA of this thesaurus item.
     */
    @Override
    @XmlAttribute
    default GTAAStatus getGtaaStatus() {
        return getGtaaRecord().getStatus();
    }
    @Override
    default void setGtaaStatus(GTAAStatus status) {
        getGtaaRecord().setStatus(status);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy