org.dspace.sword
Class BitstreamEntryGenerator

java.lang.Object
  extended by org.dspace.sword.DSpaceATOMEntry
      extended by org.dspace.sword.BitstreamEntryGenerator

public class BitstreamEntryGenerator
extends DSpaceATOMEntry

Author:
Richard Jones Class to generate ATOM Entry documents for DSpace Bitstreams

Field Summary
 
Fields inherited from class org.dspace.sword.DSpaceATOMEntry
bitstream, deposit, entry, item, result, swordService
 
Constructor Summary
protected BitstreamEntryGenerator(SWORDService service)
          Create a new ATOM Entry generator which can provide a SWORD Entry for a bitstream
 
Method Summary
protected  void addCategories()
          Add all the subject classifications from the bibliographic metadata.
protected  void addContentElement()
          Set the content type that DSpace received.
protected  void addIdentifier()
          Add the identifier for the item.
protected  void addLastUpdatedDate()
          Add the date that this item was last updated
protected  void addLinks()
          Add links associated with this item.
protected  void addPublishDate()
          Add the date of publication from the bibliographic metadata
protected  void addRights()
          Add rights information.
protected  void addSummary()
          Add the summary/abstract from the bibliographic metadata
protected  void addTitle()
          Add the title from the bibliographic metadata
 
Methods inherited from class org.dspace.sword.DSpaceATOMEntry
addAuthors, addContributors, addGenerator, addPackagingElement, addTreatment, constructEntry, getSWORDEntry, getSWORDEntry, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitstreamEntryGenerator

protected BitstreamEntryGenerator(SWORDService service)
Create a new ATOM Entry generator which can provide a SWORD Entry for a bitstream

Parameters:
service -
Method Detail

addCategories

protected void addCategories()
Add all the subject classifications from the bibliographic metadata.


addContentElement

protected void addContentElement()
                          throws DSpaceSWORDException
Set the content type that DSpace received.

Throws:
DSpaceSWORDException

addIdentifier

protected void addIdentifier()
                      throws DSpaceSWORDException
Add the identifier for the item. If the item object has a handle already assigned, this is used, otherwise, the passed handle is used. It is set in the form that they can be used to access the resource over http (i.e. a real URL).

Throws:
DSpaceSWORDException

addLinks

protected void addLinks()
                 throws DSpaceSWORDException
Add links associated with this item.

Throws:
DSpaceSWORDException

addPublishDate

protected void addPublishDate()
Add the date of publication from the bibliographic metadata


addRights

protected void addRights()
                  throws DSpaceSWORDException
Add rights information. This attaches an href to the URL of the item's licence file

Throws:
DSpaceSWORDException

addSummary

protected void addSummary()
Add the summary/abstract from the bibliographic metadata


addTitle

protected void addTitle()
Add the title from the bibliographic metadata


addLastUpdatedDate

protected void addLastUpdatedDate()
Add the date that this item was last updated



Copyright © 2009 The DSpace Foundation. All Rights Reserved.