org.dspace.sword
Class ItemEntryGenerator

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

public class ItemEntryGenerator
extends DSpaceATOMEntry

Author:
Richard Jones Class to generate an ATOM Entry document for a DSpace Item

Field Summary
 
Fields inherited from class org.dspace.sword.DSpaceATOMEntry
bitstream, deposit, entry, item, result, swordService
 
Constructor Summary
protected ItemEntryGenerator(SWORDService service)
           
 
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

ItemEntryGenerator

protected ItemEntryGenerator(SWORDService 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. This is just "application/zip" in this default implementation.

Throws:
DSpaceSWORDException

addIdentifier

protected void addIdentifier()
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).


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.