Class DataProvider
- java.lang.Object
-
- nl.b3p.commons.oai.dataprovider20.DataProvider
-
- All Implemented Interfaces:
DataProviderInterface
public class DataProvider extends Object implements DataProviderInterface
Data provider class
-
-
Constructor Summary
Constructors Constructor Description DataProvider(Identity config, RecordFactory rf)ConstructorDataProvider(Identity config, RecordFactory rf, Document doc)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementgetRecord(String handle, String metaformat)Elementidentify()ElementlistIdentifiers(String resumptionToken)ElementlistIdentifiers(String fileafter, String filebefore, String setspec, String metaformat)ElementlistMetadataFormats(String id)ElementlistRecords(String resumptionToken)ElementlistRecords(String fileafter, String filebefore, String setspec, String metaformat)ElementlistSets()ElementlistSets(String resumptionToken)voidsetDocument(Document doc)
-
-
-
Constructor Detail
-
DataProvider
public DataProvider(Identity config, RecordFactory rf, Document doc)
Constructor.- Parameters:
config-rf-doc-
-
DataProvider
public DataProvider(Identity config, RecordFactory rf)
Constructor- Parameters:
config-rf-
-
-
Method Detail
-
setDocument
public void setDocument(Document doc)
- Parameters:
doc-
-
identify
public Element identify()
- Specified by:
identifyin interfaceDataProviderInterface- Returns:
- Element
-
listSets
public Element listSets() throws OAIError
- Specified by:
listSetsin interfaceDataProviderInterface- Returns:
- Element
- Throws:
OAIError
-
listSets
public Element listSets(String resumptionToken) throws OAIError
- Specified by:
listSetsin interfaceDataProviderInterface- Parameters:
resumptionToken-- Returns:
- Element
- Throws:
OAIError
-
listMetadataFormats
public Element listMetadataFormats(String id) throws OAIError
- Specified by:
listMetadataFormatsin interfaceDataProviderInterface- Parameters:
id-- Returns:
- Element
- Throws:
OAIError
-
listIdentifiers
public Element listIdentifiers(String fileafter, String filebefore, String setspec, String metaformat) throws OAIError
- Specified by:
listIdentifiersin interfaceDataProviderInterface- Parameters:
fileafter-filebefore-setspec-metaformat-- Returns:
- Element
- Throws:
OAIError
-
listIdentifiers
public Element listIdentifiers(String resumptionToken) throws OAIError
- Specified by:
listIdentifiersin interfaceDataProviderInterface- Parameters:
resumptionToken-- Returns:
- Element
- Throws:
OAIError
-
listRecords
public Element listRecords(String fileafter, String filebefore, String setspec, String metaformat) throws OAIError
- Specified by:
listRecordsin interfaceDataProviderInterface- Parameters:
fileafter-filebefore-setspec-metaformat-- Returns:
- Element
- Throws:
OAIError
-
listRecords
public Element listRecords(String resumptionToken) throws OAIError
- Specified by:
listRecordsin interfaceDataProviderInterface- Parameters:
resumptionToken-- Returns:
- Element
- Throws:
OAIError
-
-