se.kb.oai.pmh
Class Identification

java.lang.Object
  extended by se.kb.oai.pmh.ResponseBase
      extended by se.kb.oai.pmh.Identification

public class Identification
extends ResponseBase

Class that represents the information returned from an Identify request.

Author:
Oskar Grenholm, National Library of Sweden

Field Summary
 
Fields inherited from class se.kb.oai.pmh.ResponseBase
OAI_NS_PREFIX, OAI_NS_URI, response, responseDate, resumptionToken, xpath
 
Constructor Summary
Identification(Document document)
          Creates an Identification from the returned response.
 
Method Summary
 List<String> getAdminEmails()
          Get a list of e-mails to the administrators of this repository.
 String getBaseUrl()
          Get the base URL of the repository.
 String getCompression()
          Get the compression type supported by this repository.
 String getDeletedRecord()
          Get the support for deletes this repository has.
 List<Element> getDescriptions()
          Get a list of descriptions of this repositories.
 String getEarliestDatestamp()
          Get the earliest datestamp that exists in the repository.
 String getGranularity()
          Get the granularity for datestamps in the repository.
 String getProtocolVersion()
          Get the protocol version of OAI-PMH this repository supports.
 String getRepositoryName()
          Get the name of this repository.
 
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

Identification

public Identification(Document document)
               throws ErrorResponseException
Creates an Identification from the returned response.

Parameters:
document - the response
Throws:
ErrorResponseException
Method Detail

getAdminEmails

public List<String> getAdminEmails()
Get a list of e-mails to the administrators of this repository.

Returns:
a list of e-mails

getBaseUrl

public String getBaseUrl()
Get the base URL of the repository.

Returns:
the base URL

getCompression

public String getCompression()
Get the compression type supported by this repository.

Returns:
the compression

getDeletedRecord

public String getDeletedRecord()
Get the support for deletes this repository has. Legitimate values are:

Returns:
the deleted record support

getDescriptions

public List<Element> getDescriptions()
Get a list of descriptions of this repositories. Can be in any xml-format.

Returns:
a list of descriptions

getEarliestDatestamp

public String getEarliestDatestamp()
Get the earliest datestamp that exists in the repository.

Returns:
the earliest datestamp

getGranularity

public String getGranularity()
Get the granularity for datestamps in the repository. Two possible values:

Returns:
the granularity

getProtocolVersion

public String getProtocolVersion()
Get the protocol version of OAI-PMH this repository supports.

Returns:
the version

getRepositoryName

public String getRepositoryName()
Get the name of this repository.

Returns:
the name


Copyright © 2008. All Rights Reserved.