C# Class SobekCM.Resource_Object.Configuration.Metadata_Configuration

Metadata configuration for all the classes used to read/write metadata files or sections within a METS file
Afficher le fichier Open project: MarkVSullivan/SobekCM-Web-Application Class Usage Examples

Private Properties

Свойство Type Description
Convert_String_To_XML_Safe string
post_unserialization_single_list_fix void

Méthodes publiques

Méthode Description
Add_METS_Section_ReaderWriter ( METS_Section_ReaderWriter_Config New_ReaderWriter ) : void

Adds a new METS section reader/writer configuration

This instantiates the actual reader/writer class to determine which interfaces are implemeneted.

Add_METS_Writing_Profile ( METS_Writing_Profile NewProfile ) : void

Adds a new METS writing profile to this metadata configuration

Add_Metadata_File_ReaderWriter ( Metadata_File_ReaderWriter_Config New_ReaderWriter ) : void

Add a new metadata file reader/writer configuration

Add_Metadata_Mapper ( Metadata_Mapping_Config Mapper ) : void

Add a new metadata mapping configuration object

Add_Metadata_Module_Config ( Additional_Metadata_Module_Config MetadatModuleConfig ) : void

Add new metadata module configuration information for a module which should always be included

Clear ( ) : void

Clear all the current metadata configuration information

Clear_METS_Writing_Profiles ( ) : void

Clear all the METS writing profiles from this configuration

Clear_Metadata_File_ReaderWriter_Config ( ) : void

Clears all the existing metadata file reader write configuration information

Clear_Metadata_Mappers ( ) : void

Clear the metadata mapper configurations

Clear_Metadata_Modules_To_Include ( ) : void

Clears all the existing metadata modules to include

Finalize_Metadata_Configuration ( ) : void

Finalize the metadata configuration and create all the individual reader/writers

Get_Division_AmdSec_ReaderWriter ( string MdType, string OtherMdType ) : iDivision_amdSec_ReaderWriter

Get a division-level amdSec METS section reader/writer by the METS file MDTYPE and OTHERMDTYPE attributes present in the METS section tag

Get_Division_DmdSec_ReaderWriter ( string MdType, string OtherMdType ) : iDivision_dmdSec_ReaderWriter

Get a division-level dmdSec METS section reader/writer by the METS file MDTYPE and OTHERMDTYPE attributes present in the METS section tag

Get_File_AmdSec_ReaderWriter ( string MdType, string OtherMdType ) : iFile_amdSec_ReaderWriter

Get a file-level amdSec METS section reader/writer by the METS file MDTYPE and OTHERMDTYPE attributes present in the METS section tag

Get_File_DmdSec_ReaderWriter ( string MdType, string OtherMdType ) : iFile_dmdSec_ReaderWriter

Get a file-level dmdSec METS section reader/writer by the METS file MDTYPE and OTHERMDTYPE attributes present in the METS section tag

Get_Package_AmdSec_ReaderWriter ( string MdType, string OtherMdType ) : iPackage_amdSec_ReaderWriter

Get a package-level amdSec METS section reader/writer by the METS file MDTYPE and OTHERMDTYPE attributes present in the METS section tag

Get_Package_DmdSec_ReaderWriter ( string MdType, string OtherMdType ) : iPackage_dmdSec_ReaderWriter

Get a package-level dmdSec METS section reader/writer by the METS file MDTYPE and OTHERMDTYPE attributes present in the METS section tag

Get_Writing_Profile ( string ProfileName ) : METS_Writing_Profile

Gets an individual METS writing profile, by profile name

Metadata_Configuration ( ) : System

constructor for the Metadata_Configuration class

PostUnSerialization ( ) : void

Runs a number of post-serialization fixes to ensure the objects in the profiles are the same objects as in the lists of configs

Save_To_Config_File ( string FilePath ) : bool

Save this metadata configuration to a XML config file

Set_Default_Values ( ) : void

Clears the current metadata configuration and restores all the values to the default reader/writers and profiles

Private Methods

Méthode Description
Convert_String_To_XML_Safe ( string Element ) : string

Converts a basic string into an XML-safe string

post_unserialization_single_list_fix ( METS_Section_ReaderWriter_Config>.Dictionary tempDictionary, List configList ) : void

Method Details

Add_METS_Section_ReaderWriter() public méthode

Adds a new METS section reader/writer configuration
This instantiates the actual reader/writer class to determine which interfaces are implemeneted.
public Add_METS_Section_ReaderWriter ( METS_Section_ReaderWriter_Config New_ReaderWriter ) : void
New_ReaderWriter METS_Section_ReaderWriter_Config New METS section reader/writer
Résultat void

Add_METS_Writing_Profile() public méthode

Adds a new METS writing profile to this metadata configuration
public Add_METS_Writing_Profile ( METS_Writing_Profile NewProfile ) : void
NewProfile METS_Writing_Profile New metadata profile to add
Résultat void

Add_Metadata_File_ReaderWriter() public méthode

Add a new metadata file reader/writer configuration
public Add_Metadata_File_ReaderWriter ( Metadata_File_ReaderWriter_Config New_ReaderWriter ) : void
New_ReaderWriter Metadata_File_ReaderWriter_Config New metadata file reader/writer configuration
Résultat void

Add_Metadata_Mapper() public méthode

Add a new metadata mapping configuration object
public Add_Metadata_Mapper ( Metadata_Mapping_Config Mapper ) : void
Mapper Metadata_Mapping_Config All the information needed to create a new instance of the mapper
Résultat void

Add_Metadata_Module_Config() public méthode

Add new metadata module configuration information for a module which should always be included
public Add_Metadata_Module_Config ( Additional_Metadata_Module_Config MetadatModuleConfig ) : void
MetadatModuleConfig Additional_Metadata_Module_Config New metadata module to include with all new items
Résultat void

Clear() public méthode

Clear all the current metadata configuration information
public Clear ( ) : void
Résultat void

Clear_METS_Writing_Profiles() public méthode

Clear all the METS writing profiles from this configuration
public Clear_METS_Writing_Profiles ( ) : void
Résultat void

Clear_Metadata_File_ReaderWriter_Config() public méthode

Clears all the existing metadata file reader write configuration information
public Clear_Metadata_File_ReaderWriter_Config ( ) : void
Résultat void

Clear_Metadata_Mappers() public méthode

Clear the metadata mapper configurations
public Clear_Metadata_Mappers ( ) : void
Résultat void

Clear_Metadata_Modules_To_Include() public méthode

Clears all the existing metadata modules to include
public Clear_Metadata_Modules_To_Include ( ) : void
Résultat void

Finalize_Metadata_Configuration() public méthode

Finalize the metadata configuration and create all the individual reader/writers
public Finalize_Metadata_Configuration ( ) : void
Résultat void

Get_Division_AmdSec_ReaderWriter() public méthode

Get a division-level amdSec METS section reader/writer by the METS file MDTYPE and OTHERMDTYPE attributes present in the METS section tag
public Get_Division_AmdSec_ReaderWriter ( string MdType, string OtherMdType ) : iDivision_amdSec_ReaderWriter
MdType string MDTYPE attribute from the METS file section being read
OtherMdType string OTHERMDTYPE attribute from the METS file section being read
Résultat iDivision_amdSec_ReaderWriter

Get_Division_DmdSec_ReaderWriter() public méthode

Get a division-level dmdSec METS section reader/writer by the METS file MDTYPE and OTHERMDTYPE attributes present in the METS section tag
public Get_Division_DmdSec_ReaderWriter ( string MdType, string OtherMdType ) : iDivision_dmdSec_ReaderWriter
MdType string MDTYPE attribute from the METS file section being read
OtherMdType string OTHERMDTYPE attribute from the METS file section being read
Résultat iDivision_dmdSec_ReaderWriter

Get_File_AmdSec_ReaderWriter() public méthode

Get a file-level amdSec METS section reader/writer by the METS file MDTYPE and OTHERMDTYPE attributes present in the METS section tag
public Get_File_AmdSec_ReaderWriter ( string MdType, string OtherMdType ) : iFile_amdSec_ReaderWriter
MdType string MDTYPE attribute from the METS file section being read
OtherMdType string OTHERMDTYPE attribute from the METS file section being read
Résultat iFile_amdSec_ReaderWriter

Get_File_DmdSec_ReaderWriter() public méthode

Get a file-level dmdSec METS section reader/writer by the METS file MDTYPE and OTHERMDTYPE attributes present in the METS section tag
public Get_File_DmdSec_ReaderWriter ( string MdType, string OtherMdType ) : iFile_dmdSec_ReaderWriter
MdType string MDTYPE attribute from the METS file section being read
OtherMdType string OTHERMDTYPE attribute from the METS file section being read
Résultat iFile_dmdSec_ReaderWriter

Get_Package_AmdSec_ReaderWriter() public méthode

Get a package-level amdSec METS section reader/writer by the METS file MDTYPE and OTHERMDTYPE attributes present in the METS section tag
public Get_Package_AmdSec_ReaderWriter ( string MdType, string OtherMdType ) : iPackage_amdSec_ReaderWriter
MdType string MDTYPE attribute from the METS file section being read
OtherMdType string OTHERMDTYPE attribute from the METS file section being read
Résultat iPackage_amdSec_ReaderWriter

Get_Package_DmdSec_ReaderWriter() public méthode

Get a package-level dmdSec METS section reader/writer by the METS file MDTYPE and OTHERMDTYPE attributes present in the METS section tag
public Get_Package_DmdSec_ReaderWriter ( string MdType, string OtherMdType ) : iPackage_dmdSec_ReaderWriter
MdType string MDTYPE attribute from the METS file section being read
OtherMdType string OTHERMDTYPE attribute from the METS file section being read
Résultat iPackage_dmdSec_ReaderWriter

Get_Writing_Profile() public méthode

Gets an individual METS writing profile, by profile name
public Get_Writing_Profile ( string ProfileName ) : METS_Writing_Profile
ProfileName string Name of the profile to get
Résultat METS_Writing_Profile

Metadata_Configuration() public méthode

constructor for the Metadata_Configuration class
public Metadata_Configuration ( ) : System
Résultat System

PostUnSerialization() public méthode

Runs a number of post-serialization fixes to ensure the objects in the profiles are the same objects as in the lists of configs
public PostUnSerialization ( ) : void
Résultat void

Save_To_Config_File() public méthode

Save this metadata configuration to a XML config file
public Save_To_Config_File ( string FilePath ) : bool
FilePath string File/path for the resulting XML config file
Résultat bool

Set_Default_Values() public méthode

Clears the current metadata configuration and restores all the values to the default reader/writers and profiles
public Set_Default_Values ( ) : void
Résultat void