org.dspace.sword
Class CollectionCollectionGenerator

java.lang.Object
  extended by org.dspace.sword.ATOMCollectionGenerator
      extended by org.dspace.sword.CollectionCollectionGenerator

public class CollectionCollectionGenerator
extends ATOMCollectionGenerator

Class to generate ATOM Collection Elements which represent DSpace Collections


Field Summary
 
Fields inherited from class org.dspace.sword.ATOMCollectionGenerator
swordService
 
Constructor Summary
CollectionCollectionGenerator(SWORDService service)
          Construct an object taking the sword service instance an argument
 
Method Summary
 Collection buildCollection(DSpaceObject dso)
          Build the collection for the given DSpaceObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionCollectionGenerator

public CollectionCollectionGenerator(SWORDService service)
Construct an object taking the sword service instance an argument

Parameters:
service -
Method Detail

buildCollection

public Collection buildCollection(DSpaceObject dso)
                           throws DSpaceSWORDException
Build the collection for the given DSpaceObject. In this implementation, if the object is not a DSpace COllection, it will throw an exception

Specified by:
buildCollection in class ATOMCollectionGenerator
Parameters:
dso -
Returns:
Throws:
DSpaceSWORDException


Copyright © 2010 DuraSpace. All Rights Reserved.