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

nl.vpro.domain.gtaa.XLLabel Maven / Gradle / Ivy

There is a newer version: 8.3.0
Show newest version
/*
 * Copyright (C) 2015 Licensed under the Apache License, Version 2.0
 * VPRO The Netherlands
 */
package nl.vpro.domain.gtaa;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.extern.slf4j.Slf4j;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;

import nl.vpro.openarchives.oai.Label;
import nl.vpro.openarchives.oai.Namespaces;
import nl.vpro.w3.rdf.LabelDescription;
import nl.vpro.w3.rdf.ResourceElement;

import static nl.vpro.openarchives.oai.Namespaces.SKOS_XL_LABEL;

/**
 * @author Roelof Jan Koekoek
 * @since 3.7
 */
@XmlAccessorType(XmlAccessType.NONE)
@Slf4j
@Data
@EqualsAndHashCode(callSuper = true)
public class XLLabel extends AbstractGTAAObject {

    @XmlElement(name ="Description", namespace = Namespaces.RDF)
    private LabelDescription description;

    private XLLabel() {
    }
    public XLLabel(String label, String tenant) {
        description = LabelDescription.builder()
            .type(new ResourceElement(SKOS_XL_LABEL, null))
            .literalForm(new Label(label))
            .tenant(tenant)
            .build();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy