C# Class SobekCM.Resource_Object.Utilities.SobekCM_METS_Validator

Validates a METS file with SobekCM METS file standards
Object created by Ying Tang and Mark V Sullivan (2006) for University of Florida's Digital Library Center.
Exibir arquivo Open project: MarkVSullivan/SobekCM-Web-Application

Public Methods

Method Description
Check_Files ( string dirName, bool matchCheckSums ) : bool

Check if specified file exists in the search directory

METS_Existence_Check ( string dirName ) : bool

Check if mets file exists for a SobekCM package.

METS_Update_Only_Check ( string newMetsFile, string oldMetsFile ) : bool

Compare only the file group section between the new mets file and the old mets file. Use the string comparision method to determine if the file group sections have the same contents after removing all white spaces.

SobekCM_METS_Validator ( ) : System

Constructor for a new instance of the SobekCM_METS_Validator class

SobekCM_METS_Validator ( SobekCM_Item thisPackage ) : System

Constructor for a new instance of the SobekCM_METS_Validator class

SobekCM_METS_Validator ( string iconBaseUrl ) : System

Constructor for a new instance of the SobekCM_METS_Validator class

SobekCM_Standard_Check ( SobekCM_Item bibPackagetoCheck, string packageDir ) : bool

Check the Bibliographic package agaist the SobekCM METS standard

Private Methods

Method Description
IsValidIconImage ( string iconUrl ) : bool

Private method used to check if a icon file is a valid file

Method Details

Check_Files() public method

Check if specified file exists in the search directory
public Check_Files ( string dirName, bool matchCheckSums ) : bool
dirName string Directory name
matchCheckSums bool Should there be checksum matching?
return bool

METS_Existence_Check() public method

Check if mets file exists for a SobekCM package.
public METS_Existence_Check ( string dirName ) : bool
dirName string Directory name
return bool

METS_Update_Only_Check() public method

Compare only the file group section between the new mets file and the old mets file. Use the string comparision method to determine if the file group sections have the same contents after removing all white spaces.
public METS_Update_Only_Check ( string newMetsFile, string oldMetsFile ) : bool
newMetsFile string New METS file (METADATA_UPDATE)
oldMetsFile string Existing METS file
return bool

SobekCM_METS_Validator() public method

Constructor for a new instance of the SobekCM_METS_Validator class
public SobekCM_METS_Validator ( ) : System
return System

SobekCM_METS_Validator() public method

Constructor for a new instance of the SobekCM_METS_Validator class
public SobekCM_METS_Validator ( SobekCM_Item thisPackage ) : System
thisPackage SobekCM_Item Bibliographic package to validate
return System

SobekCM_METS_Validator() public method

Constructor for a new instance of the SobekCM_METS_Validator class
public SobekCM_METS_Validator ( string iconBaseUrl ) : System
iconBaseUrl string Base URL to validate
return System

SobekCM_Standard_Check() public method

Check the Bibliographic package agaist the SobekCM METS standard
public SobekCM_Standard_Check ( SobekCM_Item bibPackagetoCheck, string packageDir ) : bool
bibPackagetoCheck SobekCM_Item Package to validate
packageDir string Directory for the package
return bool