C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
IsValidIconImage ( string iconUrl ) : bool

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

Описание методов

Check_Files() публичный Метод

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?
Результат bool

METS_Existence_Check() публичный Метод

Check if mets file exists for a SobekCM package.
public METS_Existence_Check ( string dirName ) : bool
dirName string Directory name
Результат bool

METS_Update_Only_Check() публичный Метод

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
Результат bool

SobekCM_METS_Validator() публичный Метод

Constructor for a new instance of the SobekCM_METS_Validator class
public SobekCM_METS_Validator ( ) : System
Результат System

SobekCM_METS_Validator() публичный Метод

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
Результат System

SobekCM_METS_Validator() публичный Метод

Constructor for a new instance of the SobekCM_METS_Validator class
public SobekCM_METS_Validator ( string iconBaseUrl ) : System
iconBaseUrl string Base URL to validate
Результат System

SobekCM_Standard_Check() публичный Метод

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
Результат bool