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

io.gdcc.xoai.serviceprovider.parameters.GetRecordParameters Maven / Gradle / Ivy

Go to download

OAI-PMH service provider implementation. Use it as a harvesting client to read remote repositories.

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/
 */

package io.gdcc.xoai.serviceprovider.parameters;

public class GetRecordParameters {
    public static GetRecordParameters request() {
        return new GetRecordParameters();
    }

    private String identifier;
    private String metadataPrefix;

    public String getIdentifier() {
        return identifier;
    }

    public GetRecordParameters withIdentifier(String identifier) {
        this.identifier = identifier;
        return this;
    }

    public String getMetadataPrefix() {
        return metadataPrefix;
    }

    public GetRecordParameters withMetadataFormatPrefix(String metadataFormatPrefix) {
        this.metadataPrefix = metadataFormatPrefix;
        return this;
    }

    public boolean areValid() {
        return identifier != null && metadataPrefix != null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy