edu.uiuc.ndiipp.hubandspoke.profile
Class HaSMETSWebProfile

java.lang.Object
  extended by edu.uiuc.ndiipp.hubandspoke.profile.METSProfile
      extended by edu.uiuc.ndiipp.hubandspoke.profile.HaSMETSProfile
          extended by edu.uiuc.ndiipp.hubandspoke.profile.HaSMETSWebProfile

public class HaSMETSWebProfile
extends HaSMETSProfile

This class represents a METS XML document that conforms to the UIUC Hub and Spoke METS Web Profile. This is basically a wrapper around various XMLBeans class libraries for the different XML Schema used by the profile.

Author:
thabing

Nested Class Summary
static class HaSMETSWebProfile.ArcFileDecomposition
           
static class HaSMETSWebProfile.WebCaptureDivision
           
 
Nested classes/interfaces inherited from class edu.uiuc.ndiipp.hubandspoke.profile.METSProfile
METSProfile.AMD_SECTION, METSProfile.DMDSecStatus, METSProfile.PackageType, METSProfile.PREMISAgentType, METSProfile.PREMISEventType, METSProfile.PREMISIdentifierType, METSProfile.PREMISLinkingAgentRole, METSProfile.PREMISObjectCategory, METSProfile.PREMISSwType, METSProfile.StructMapType, METSProfile.TechMDStatus
 
Field Summary
 
Fields inherited from class edu.uiuc.ndiipp.hubandspoke.profile.METSProfile
AMD_NS, JHOVE_NS, METS_NS, MIX_NS, MODS_NS, PREMIS_NS, TEXTMD_NS, VMD_NS, XLINK_NS
 
Method Summary
 void decomposeARCFiles(java.lang.String destinationPath)
          If this METS document uses ARC files, decompose them and convert the METS file appropriately including generation of digiprov.
 void dumpArcFileRecordList()
          Dump to stdout a list of all records in the each referenced ARC along with their offsets Mostly for debugging purposes
 java.io.InputStream getFileInputStream(gov.loc.mets.MetsFileType file)
          Return an InputStream for the MetsFileType object, can accomodat either the FContent or FLocat sub-elements or sections from an ARC file
 boolean validateProfile(METSProfile.PackageType pt)
          Validate the METS document against the requirements of the METS HaS Profile
 boolean validateProfile(METSProfile.PackageType pt, HaSMETSAppender app)
          Validate the METS document against the requirements of the METS HaS Profile
 
Methods inherited from class edu.uiuc.ndiipp.hubandspoke.profile.HaSMETSProfile
addAgentToEvent, addAlternateDmdSec, addAlternateDmdSec, addEventToXmlObject, addEventToXmlObject, addFile, addNewChecksum, addNewPREMISObjectTechMDToAllFile, addNewPrimaryRepresentation, addPremisObjectIdentifierToFile, addTechMDXmlObjectToFile, associateAmdSecToXmlObject, augmentAquiferModsDocument, compareFiles, convertPrimaryDmdSecToAquifer, createBasicAquiferModsDocument, createBasicPremisEvent, createBasicPremisEvent, getAllAmdSecMDs, getAllFiles, getAlternateDmdSecArray, getAlternateDmdSecArray, getBaseURIMinusFile, getDefaultHumanAgent, getDefaultSoftwareAgent, getFiles, getFiles, getFLocat, getMDSecXmlObject, getNewID, getPackageType, getPrimaryDmdSec, getPrimaryRepresentation, getPrimaryStructMap, getSpecificAmdSecXmlData, getTechMDsForFile, getXmlObject, guessPackageType, hasSpecificAmdSecXmlData, resolveURIAgainstBaseURI, resolveURIAgainstBaseURI, save, saveFile, setBaseURI, setLabelFromPrimaryDmdSec, setMDSecXmlObject, setNewPrimaryID, setPackageType
 
Methods inherited from class edu.uiuc.ndiipp.hubandspoke.profile.METSProfile
createBasicPremisObject, createPremisObjectFromFile, getBaseURI, getMetsDocument, newPREMISObjectTechMD, newPREMISObjectTechMD, newPREMISObjectTechMD
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

dumpArcFileRecordList

public void dumpArcFileRecordList()
Dump to stdout a list of all records in the each referenced ARC along with their offsets Mostly for debugging purposes


getFileInputStream

public java.io.InputStream getFileInputStream(gov.loc.mets.MetsFileType file)
                                       throws HaSMETSProfileException
Return an InputStream for the MetsFileType object, can accomodat either the FContent or FLocat sub-elements or sections from an ARC file

Overrides:
getFileInputStream in class HaSMETSProfile
Parameters:
file - the MetsFileType object for the file of interest
Returns:
the InputStream
Throws:
HaSMETSProfileException - if the stream is not accessible

decomposeARCFiles

public void decomposeARCFiles(java.lang.String destinationPath)
                       throws HaSMETSProfileException
If this METS document uses ARC files, decompose them and convert the METS file appropriately including generation of digiprov. If the fileSec lists the ARC and subordinate ARC-URL-RECORD then only the listed ARC-URL-RECORD will be extracted. If the fileSec lists only the ARC files, all records in the ARC files will be extracted

Parameters:
destinationPath -
Throws:
HaSMETSProfileException

validateProfile

public boolean validateProfile(METSProfile.PackageType pt)
Description copied from class: HaSMETSProfile
Validate the METS document against the requirements of the METS HaS Profile

Overrides:
validateProfile in class HaSMETSProfile
Parameters:
pt - the PackageType to assume for validation purposes

validateProfile

public boolean validateProfile(METSProfile.PackageType pt,
                               HaSMETSAppender app)
Description copied from class: HaSMETSProfile
Validate the METS document against the requirements of the METS HaS Profile

Overrides:
validateProfile in class HaSMETSProfile
Parameters:
pt - the PackageType to assume for validation purposes
app - HaSMETSAppender which will accumulate the log events, may be null


Copyright © 2006, University of Illinois.