edu.uiuc.ndiipp.hubandspoke.packager
Class OCAPackager

java.lang.Object
  extended by edu.uiuc.ndiipp.hubandspoke.packager.ToHubPackager
      extended by edu.uiuc.ndiipp.hubandspoke.packager.DirectoryPackager
          extended by 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

Constructor Summary
OCAPackager()
           
 
Method Summary
 HaSMETSProfile createHubPackage(java.io.File itemdir, java.io.File metadata)
          Overload to allow internal generation of an identifier
 HaSMETSProfile createHubPackage(java.io.File itemdir, java.io.File metadata, java.lang.String id, METSProfile.PREMISIdentifierType idtype)
          Creates the Hub package from scratch
static void main(java.lang.String[] args)
          Command line interface...
 
Methods inherited from class edu.uiuc.ndiipp.hubandspoke.packager.DirectoryPackager
createHubPackage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OCAPackager

public OCAPackager()
Method Detail

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 items
metadata - -- File representing the path to the MODS metadata for the item
id - -- 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 items
metadata - -- File representing the path to the MODS metadata for the item
Returns:
- HasMETSProfile object
Throws:
PackagerException


Copyright © 2006, University of Illinois.