edu.uiuc.ndiipp.hubandspoke.utils.jhove
Class PremisIDGenerator

java.lang.Object
  extended by edu.uiuc.ndiipp.hubandspoke.utils.jhove.PremisIDGenerator
Direct Known Subclasses:
TrivialPremisIDGenerator

public abstract class PremisIDGenerator
extends java.lang.Object

This class is a helper for the METSAugmenter that is responsible for returning the PREMIS idType and idValue for a given file. Subclass to enable it to do this, and construct an instance of this class to pass to the METSAugmenter constructor for each METS file. The methods receive a filePath and Harvard METS API File object for each target file (I don't think there is any more information that they can get to help them, but if so, please feel free to correct it).

Author:
Howard Ding

Constructor Summary
PremisIDGenerator()
           
 
Method Summary
abstract  java.lang.String idType(java.lang.String filePath, edu.harvard.hul.ois.mets.File file)
           
abstract  java.lang.String idValue(java.lang.String filePath, edu.harvard.hul.ois.mets.File file)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PremisIDGenerator

public PremisIDGenerator()
Method Detail

idType

public abstract java.lang.String idType(java.lang.String filePath,
                                        edu.harvard.hul.ois.mets.File file)
Parameters:
filePath - - path to the file
file - - Harvard METS API File object from the METS file
Returns:
- PREMIS id type

idValue

public abstract java.lang.String idValue(java.lang.String filePath,
                                         edu.harvard.hul.ois.mets.File file)
Parameters:
filePath - - path to the file
file - - Harvard METS API File object from the METS file
Returns:
- PREMIS id value


Copyright © 2006, University of Illinois.