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

nl.vpro.openarchives.oai.OAI_PMH 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.openarchives.oai;

import jakarta.xml.bind.annotation.*;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import lombok.Data;

import java.time.ZonedDateTime;

import javax.xml.XMLConstants;

import nl.vpro.xml.bind.ZonedDateTimeXmlAdapter;

/**
 * See https://docs.google.com/document/d/16L_Gp2awzwa3GHOPNIcK-9LNB0iMZgif-JUfFCMOkkg/edit?pref=2&pli=1
 * @author Roelof Jan Koekoek
 *
 * @since 3.7
 */
@XmlAccessorType(XmlAccessType.NONE)
@XmlRootElement(name = "OAI-PMH")
@Data
public class OAI_PMH {

    @XmlAttribute(namespace = XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI)
    private String schemaLocation;

    @XmlElement
    @XmlJavaTypeAdapter(ZonedDateTimeXmlAdapter.class)
    private ZonedDateTime responseDate;

    @XmlElement
    private Request request;

    @XmlElement(name = "error")
    private Error error;

    @XmlElement(name = "ListRecords")
    private ListRecord listRecord;


}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy