
com.lyncode.xoai.model.oaipmh.ListSets Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.2-147
// See client://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.01.13 at 08:24:23 PM WET
//
package com.lyncode.xoai.model.oaipmh;
import com.lyncode.xml.exceptions.XmlWriteException;
import com.lyncode.xoai.xml.XmlWriter;
import java.util.ArrayList;
import java.util.List;
public class ListSets implements Verb {
protected List sets = new ArrayList();
protected ResumptionToken resumptionToken;
public List getSets() {
return this.sets;
}
public ResumptionToken getResumptionToken() {
return resumptionToken;
}
public ListSets withResumptionToken(ResumptionToken value) {
this.resumptionToken = value;
return this;
}
@Override
public void write(XmlWriter writer) throws XmlWriteException {
if (!this.sets.isEmpty())
for (Set set : this.sets)
writer.writeElement("set", set);
writer.writeElement("resumptionToken", resumptionToken);
}
@Override
public Type getType() {
return Type.ListSets;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy