
org.dspace.xoai.model.oaipmh.MetadataFormat Maven / Gradle / Ivy
The newest version!
/*
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
//
// 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 org.dspace.xoai.model.oaipmh;
import com.lyncode.xml.exceptions.XmlWriteException;
import org.dspace.xoai.xml.XmlWritable;
import org.dspace.xoai.xml.XmlWriter;
public class MetadataFormat implements XmlWritable {
protected String metadataPrefix;
protected String schema;
protected String metadataNamespace;
public String getMetadataPrefix() {
return metadataPrefix;
}
public MetadataFormat withMetadataPrefix(String value) {
this.metadataPrefix = value;
return this;
}
public String getSchema() {
return schema;
}
public MetadataFormat withSchema(String value) {
this.schema = value;
return this;
}
public String getMetadataNamespace() {
return metadataNamespace;
}
public MetadataFormat withMetadataNamespace(String value) {
this.metadataNamespace = value;
return this;
}
@Override
public void write(XmlWriter writer) throws XmlWriteException {
if (metadataPrefix != null)
writer.writeElement("metadataPrefix", metadataPrefix);
if (schema != null)
writer.writeElement("schema", schema);
if (metadataNamespace != null)
writer.writeElement("metadataNamespace", metadataNamespace);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy