edu.uiuc.ndiipp.hubandspoke.profile
Class HaSMETSWebValidator

java.lang.Object
  extended by edu.uiuc.ndiipp.hubandspoke.profile.HaSMETSValidator
      extended by edu.uiuc.ndiipp.hubandspoke.profile.HaSMETSWebValidator

public class HaSMETSWebValidator
extends HaSMETSValidator


Constructor Summary
HaSMETSWebValidator()
           
 
Method Summary
 boolean validateFiles(HaSMETSProfile metsP, METSProfile.PackageType pt, boolean openEachFile)
          Validate the file elements against the requirements of the Web METS HaS Profile
 boolean validatePrimaryStructMap(HaSMETSProfile metsP, METSProfile.PackageType pt)
          Validate the primary structMap against the requirements of the Web METS HaS Profile
 boolean validatePrimaryStructMapFptr(HaSMETSProfile metsP, METSProfile.PackageType pt, gov.loc.mets.MetsDivType div)
          Validate that the div of the PRIMARY_STRUCTMAP contains a valid fptr
 boolean validateProfile(HaSMETSProfile metsP, METSProfile.PackageType pt)
          Validate the METS document against the requirements of the METS HaS Profile
 boolean validateProfile(HaSMETSProfile metsP, METSProfile.PackageType pt, boolean openEachFile)
          Validate the METS document against the requirements of the METS HaS Profile
 
Methods inherited from class edu.uiuc.ndiipp.hubandspoke.profile.HaSMETSValidator
getValidationProfileAppender, setValidationProfileAppender, validateAquiferModsDocument, validateDigiprovMDPremisEventForDmdSec, validateDigiprovMDPremisEventForFile, validateDigiprovMDPremisEventForStructMap, validateTechMDPremisObjectForFile, validateTechMDPremisObjectForStructMap
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HaSMETSWebValidator

public HaSMETSWebValidator()
Method Detail

validateProfile

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

Overrides:
validateProfile in class HaSMETSValidator
pt - The package type for the METS document, AIP, SIP, or DIP
Returns:
true if it is valid, else false

validateProfile

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

Overrides:
validateProfile in class HaSMETSValidator
pt - The package type for the METS document, AIP, SIP, or DIP
Returns:
true if it is valid, else false

validatePrimaryStructMapFptr

public boolean validatePrimaryStructMapFptr(HaSMETSProfile metsP,
                                            METSProfile.PackageType pt,
                                            gov.loc.mets.MetsDivType div)
Validate that the div of the PRIMARY_STRUCTMAP contains a valid fptr

Overrides:
validatePrimaryStructMapFptr in class HaSMETSValidator
Parameters:
metsP - HaSMETSProfile
pt - PackageType
div - the div whose fptr is neing validated
Returns:
true if it is valid, else false

validatePrimaryStructMap

public boolean validatePrimaryStructMap(HaSMETSProfile metsP,
                                        METSProfile.PackageType pt)
Validate the primary structMap against the requirements of the Web METS HaS Profile

Overrides:
validatePrimaryStructMap in class HaSMETSValidator
Parameters:
metsP - HaSMETSProfile
pt - PackageType
Returns:
true if it is valid, else false

validateFiles

public boolean validateFiles(HaSMETSProfile metsP,
                             METSProfile.PackageType pt,
                             boolean openEachFile)
Validate the file elements against the requirements of the Web METS HaS Profile

Overrides:
validateFiles in class HaSMETSValidator
Parameters:
metsP - HaSMETSProfile
pt - PackageType
Returns:
true if it is valid, else false


Copyright © 2006, University of Illinois.