fedora.oai
Class SimpleHeader

java.lang.Object
  extended by fedora.oai.SimpleHeader
All Implemented Interfaces:
Header

public class SimpleHeader
extends java.lang.Object
implements Header

Title: SimpleHeader.java

Description: A simple implementation of Header that provides getters on the values passed in the constructor.

Version:
$Id: SimpleHeader.java 3965 2005-04-21 12:52:40Z rlw $
Author:
cwilper@cs.cornell.edu

Constructor Summary
SimpleHeader(java.lang.String identifier, java.util.Date datestamp, java.util.Set setSpecs, boolean isAvailable)
           
 
Method Summary
 java.util.Date getDatestamp()
          Get the date of creation, modification or deletion of the record (in UTC) for the purpose of selective harvesting.
 java.lang.String getIdentifier()
          Get the unique identifier of the item.
 java.util.Set getSetSpecs()
          Get a (possibly empty) Set of Strings indicating the repository 'set' membership of the item, for the purpose of selective harvesting.
 boolean isAvailable()
          Tells whether the record is currently available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleHeader

public SimpleHeader(java.lang.String identifier,
                    java.util.Date datestamp,
                    java.util.Set setSpecs,
                    boolean isAvailable)
Method Detail

getIdentifier

public java.lang.String getIdentifier()
Description copied from interface: Header
Get the unique identifier of the item.

Specified by:
getIdentifier in interface Header

getDatestamp

public java.util.Date getDatestamp()
Description copied from interface: Header
Get the date of creation, modification or deletion of the record (in UTC) for the purpose of selective harvesting.

Specified by:
getDatestamp in interface Header

getSetSpecs

public java.util.Set getSetSpecs()
Description copied from interface: Header
Get a (possibly empty) Set of Strings indicating the repository 'set' membership of the item, for the purpose of selective harvesting.

Specified by:
getSetSpecs in interface Header

isAvailable

public boolean isAvailable()
Description copied from interface: Header
Tells whether the record is currently available. This should only return false if the repository supports deletions.

Specified by:
isAvailable in interface Header