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

nl.vpro.domain.media.search.TitleForm 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.support.OwnerType;
import nl.vpro.domain.media.support.TextualType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "titleFormType")
public class TitleForm {

    @XmlValue
    final private String text;

    @XmlAttribute
    final private TextualType type;

    @XmlAttribute
    final private OwnerType owner;

    @XmlAttribute
    final private boolean tokenized;

    private TitleForm() {
        this(null, false);
    }

    public TitleForm(String title, boolean tokenized) {
        this(title, TextualType.MAIN, null, tokenized);
    }

    public TitleForm(String title,  TextualType type, OwnerType owner, boolean tokenized) {
        this.text = title;
        this.type = type;
        this.owner = owner;
        this.tokenized = tokenized;
    }

    public String getTitle() {
        return text;
    }

    public TextualType getType() {
        return type;
    }

    public OwnerType getOwner() {
        return owner;
    }

    public boolean isTokenized() {
        return tokenized;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy