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

nl.vpro.domain.media.search.RelationForm 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.search;

import jakarta.xml.bind.annotation.*;

import nl.vpro.domain.media.RelationDefinition;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "relationFormType", propOrder = {
        "text"
        })
public class RelationForm {

    @XmlAttribute
    final private String type;

    @XmlAttribute
    final private String broadcaster;

    @XmlAttribute
    final private String uriRef;

    @XmlValue
    final private String text;

    private RelationForm() {
        this(null, null, null, null);
    }

    public RelationForm(String type, String broadcaster, String uriRef, String text) {
        this.broadcaster = broadcaster;
        this.type = type;
        this.uriRef = uriRef;
        this.text = text;
    }

    public RelationForm(RelationDefinition def, String uriRef, String text) {
        this(def.getType(), def.getBroadcaster(), uriRef, text);
    }

    public String getType() {
        return type;
    }

    public String getBroadcaster() {
        return broadcaster;
    }

    public String getUriRef() {
        return uriRef;
    }

    public String getText() {
        return text;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy