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

nl.vpro.openarchives.oai.Header Maven / Gradle / Ivy

There is a newer version: 8.3.0
Show newest version
package nl.vpro.openarchives.oai;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.ZonedDateTime;
import java.util.List;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import nl.vpro.xml.bind.ZonedDateTimeXmlAdapter;

/**
 * @author Michiel Meeuwissen
 * @since 5.3
 */
@XmlAccessorType(XmlAccessType.NONE)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Header {

    public Header(String identifier, ZonedDateTime dt) {
        this(null, identifier, dt, null);
    }
    @XmlAttribute
    String status;
    @XmlElement
    String identifier;
    @XmlElement
    @XmlJavaTypeAdapter(ZonedDateTimeXmlAdapter.class)
    ZonedDateTime datestamp;
    @XmlElement
    List setSpec;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy