se.kb.oai.pmh
Class MetadataFormatsList

java.lang.Object
  extended by se.kb.oai.pmh.ResponseBase
      extended by se.kb.oai.pmh.ListBase<MetadataFormat>
          extended by 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

Field Summary
 
Fields inherited from class se.kb.oai.pmh.ListBase
list
 
Fields inherited from class se.kb.oai.pmh.ResponseBase
OAI_NS_PREFIX, OAI_NS_URI, response, responseDate, resumptionToken, xpath
 
Constructor Summary
MetadataFormatsList(Document document)
          Creates a MetadataFormatsList from the returned response.
 
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 se.kb.oai.pmh.ListBase
asList, size
 
Methods inherited from class se.kb.oai.pmh.ResponseBase
getResponse, getResponseDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataFormatsList

public MetadataFormatsList(Document document)
                    throws ErrorResponseException
Creates a MetadataFormatsList from the returned response.

Parameters:
document - the response
Throws:
ErrorResponseException
Method Detail

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.