C# Класс SobekCM.Resource_Object.Utilities.METS_Validator_Object

Validates a METS file with references to the SobekCM custom schema
Written by Gus Clifton and Mark Sullivan ( 2005 ).
Показать файл Открыть проект

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

Метод Описание
METS_Validator_Object ( bool load_all_schemas ) : System

Constructor for a new instance of the METS_Validator_Object class.

Validate_Against_Schema ( string METS_File ) : bool

Validates a single METS XML file

If this does not validate, the accumulated errors can be reached through the 'Errors' property.

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

Метод Описание
MyValidationEventHandler ( object sender, ValidationEventArgs args ) : void

EventHandler is called when there is an error during validation

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

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

Constructor for a new instance of the METS_Validator_Object class.
public METS_Validator_Object ( bool load_all_schemas ) : System
load_all_schemas bool Flag indicates whether third-party schemas should be loaded for validation
Результат System

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

Validates a single METS XML file
If this does not validate, the accumulated errors can be reached through the 'Errors' property.
public Validate_Against_Schema ( string METS_File ) : bool
METS_File string Location and name of file to validate
Результат bool