nl.vpro.openarchives.oai.Header Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gtaa-domain Show documentation
Show all versions of gtaa-domain Show documentation
Contains java bindings for the objects served out by Openskos/GTAA
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;
}