edu.uiuc.ndiipp.hubandspoke.packager
Class OCAPackager
java.lang.Object
edu.uiuc.ndiipp.hubandspoke.packager.ToHubPackager
edu.uiuc.ndiipp.hubandspoke.packager.DirectoryPackager
edu.uiuc.ndiipp.hubandspoke.packager.OCAPackager
public class OCAPackager
- extends DirectoryPackager
Walks a supplied directory and creates an EchoDep Hub compliant METS file from the contents.
- Author:
- Matt Cordial
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OCAPackager
public OCAPackager()
main
public static void main(java.lang.String[] args)
- Command line interface...
createHubPackage
public HaSMETSProfile createHubPackage(java.io.File itemdir,
java.io.File metadata,
java.lang.String id,
METSProfile.PREMISIdentifierType idtype)
throws PackagerException
- Creates the Hub package from scratch
- Overrides:
createHubPackage in class DirectoryPackager
- Parameters:
itemdir - -- File representing the path to the itemsmetadata - -- File representing the path to the MODS metadata for the itemid - -- Identifier of the item. If not supplied, a UUID will be created for the item.idtype - -- Indicator of which identifier scheme is used.
- Returns:
- HasMETSProfile object
- Throws:
PackagerException
createHubPackage
public HaSMETSProfile createHubPackage(java.io.File itemdir,
java.io.File metadata)
throws PackagerException
- Overload to allow internal generation of an identifier
- Overrides:
createHubPackage in class DirectoryPackager
- Parameters:
itemdir - -- File representing the path to the itemsmetadata - -- File representing the path to the MODS metadata for the item
- Returns:
- - HasMETSProfile object
- Throws:
PackagerException
Copyright © 2006, University of Illinois.