se.kb.oai.pmh
Class MetadataFormatsList
java.lang.Object
se.kb.oai.pmh.ResponseBase
se.kb.oai.pmh.ListBase<MetadataFormat>
se.kb.oai.pmh.MetadataFormatsList
public class MetadataFormatsList
- extends ListBase<MetadataFormat>
This class represents the response from a ListMetadataFormats
request
to the OAI-PMH server. Can be used to get a list of MetadataFormats
,
i.e. asList()
will return a List<MetadataFormat>
.
- Author:
- Oskar Grenholm, National Library of Sweden
Method Summary |
ResumptionToken |
getResumptionToken()
Overrides getResumptionToken in ListBase and because
the response from a ListMetadataFormats request will never
have a resumption token this method will throw a NoSuchMethodError
to prevent it from being used in that way. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetadataFormatsList
public MetadataFormatsList(Document document)
throws ErrorResponseException
- Creates a
MetadataFormatsList
from the returned response.
- Parameters:
document
- the response
- Throws:
ErrorResponseException
getResumptionToken
public ResumptionToken getResumptionToken()
- Overrides
getResumptionToken
in ListBase
and because
the response from a ListMetadataFormats
request will never
have a resumption token this method will throw a NoSuchMethodError
to prevent it from being used in that way.
- Overrides:
getResumptionToken
in class ListBase<MetadataFormat>
- Returns:
- the
ResumptionToken
, or null
if none available
Copyright © 2008. All Rights Reserved.