Coverage Summary for Class: SearchInterfaceType (org.kitodo.api.externaldatamanagement)
Class |
Class, %
|
Method, %
|
Line, %
|
SearchInterfaceType |
100%
(1/1)
|
63,6%
(7/11)
|
83,3%
(20/24)
|
/*
* (c) Kitodo. Key to digital objects e. V. <contact@kitodo.org>
*
* This file is part of the Kitodo project.
*
* It is licensed under GNU General Public License version 3 or later.
*
* For the full copyright and license information, please read the
* GPL3-License.txt file that was distributed with this source code.
*/
package org.kitodo.api.externaldatamanagement;
public enum SearchInterfaceType {
SRU("sru", "http://www.loc.gov/zing/srw/", "record", "startRecord", "1",
"maximumRecords", "query", "numberOfRecords",
".//*[local-name()='diagnostic']/*[local-name()='message']/text()"),
OAI("oai", "http://www.openarchives.org/OAI/2.0/", "record", null, null,
null, null, null, ".//*[local-name()='error']/text()"),
FTP("ftp", null, null, null, null,null, null, null, null),
CUSTOM("custom", null, null, null, null, null, null, null, null);
private final String typeString;
private final String namespace;
private final String recordString;
private final String startRecordString;
private final String defaultStartValue;
private final String maxRecordsString;
private final String queryString;
private final String numberOfRecordsString;
private final String errorMessageXpath;
SearchInterfaceType(String type, String namespace, String record, String startRecord, String defaultStartValue,
String maxRecords, String query, String numberOfRecords, String errorMessageXpath) {
this.typeString = type;
this.namespace = namespace;
this.recordString = record;
this.startRecordString = startRecord;
this.defaultStartValue = defaultStartValue;
this.maxRecordsString = maxRecords;
this.queryString = query;
this.numberOfRecordsString = numberOfRecords;
this.errorMessageXpath = errorMessageXpath;
}
public String getTypeString() {
return this.typeString;
}
public String getNamespace() {
return this.namespace;
}
public String getRecordString() {
return this.recordString;
}
public String getStartRecordString() {
return this.startRecordString;
}
public String getMaxRecordsString() {
return this.maxRecordsString;
}
public String getQueryString() {
return this.queryString;
}
public String getNumberOfRecordsString() {
return this.numberOfRecordsString;
}
public String getErrorMessageXpath() {
return this.errorMessageXpath;
}
/**
* Get defaultStartIndex.
*
* @return value of defaultStartIndex
*/
public String getDefaultStartValue() {
return defaultStartValue;
}
}