org.fcrepo.oai
Class SimpleHeader

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

public class SimpleHeader
extends Object
implements Header

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

Author:
Chris Wilper

Constructor Summary
SimpleHeader(String identifier, Date datestamp, Set setSpecs, boolean isAvailable)
           
 
Method Summary
 Date getDatestamp()
          Get the date of creation, modification or deletion of the record (in UTC) for the purpose of selective harvesting.
 String getIdentifier()
          Get the unique identifier of the item.
 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(String identifier,
                    Date datestamp,
                    Set setSpecs,
                    boolean isAvailable)
Method Detail

getIdentifier

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

Specified by:
getIdentifier in interface Header

getDatestamp

public 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 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


Copyright © 2011 DuraSpace. All Rights Reserved.