C# 클래스 SobekCM.Core.Configuration.QualityControl_Division_Config

Configuration information for a single possible division type
파일 보기 프로젝트 열기: MarkVSullivan/SobekCM-Web-Application 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Convert_String_To_XML_Safe string
Write_Translations void

공개 메소드들

메소드 설명
Add_Translation ( Web_Language_Enum Language, string Translation ) : void

Add a translated type for this division

Get_Translation ( Web_Language_Enum Language, bool useDefaultIfNotPresent ) : string

Get the type translated into the language specified

QualityControl_Division_Config ( ) : System

Constructor for a new instance of the QualityControl_Division_Config class

QualityControl_Division_Config ( int ID, string TypeName, bool isActive, bool isNameable ) : System

Constructor for a new instance of the QualityControl_Division_Config class

QualityControl_Division_Config ( int ID, string TypeName, bool isActive, bool isNameable, string BaseTypeName ) : System

Constructor for a new instance of the QualityControl_Division_Config class

ShouldSerializeBaseTypeName ( ) : bool

Method suppresses XML Serialization of the BaseTypeName property if it is empty

ShouldSerializeTypeTranslations ( ) : bool

Method suppresses XML Serialization of the TypeTranslations collection if it is empty

비공개 메소드들

메소드 설명
Convert_String_To_XML_Safe ( string element ) : string

Converts a basic string into an XML-safe string

Write_Translations ( StreamWriter writer ) : void

메소드 상세

Add_Translation() 공개 메소드

Add a translated type for this division
public Add_Translation ( Web_Language_Enum Language, string Translation ) : void
Language Web_Language_Enum Language for this translation
Translation string Translation of the type of this division
리턴 void

Get_Translation() 공개 메소드

Get the type translated into the language specified
public Get_Translation ( Web_Language_Enum Language, bool useDefaultIfNotPresent ) : string
Language Web_Language_Enum UI language
useDefaultIfNotPresent bool Flag determines if the default type should be returned /// if the specified language does not exist
리턴 string

QualityControl_Division_Config() 공개 메소드

Constructor for a new instance of the QualityControl_Division_Config class
public QualityControl_Division_Config ( ) : System
리턴 System

QualityControl_Division_Config() 공개 메소드

Constructor for a new instance of the QualityControl_Division_Config class
public QualityControl_Division_Config ( int ID, string TypeName, bool isActive, bool isNameable ) : System
ID int Key for this division configuration information
TypeName string Name of this type, which the user selects. This is also the default name, if /// a translation for this name is not provided in a requested language
isActive bool Flag indicates if this division is currently active
isNameable bool Flag indicates if the user will be asked for a name when this division is chosen
리턴 System

QualityControl_Division_Config() 공개 메소드

Constructor for a new instance of the QualityControl_Division_Config class
public QualityControl_Division_Config ( int ID, string TypeName, bool isActive, bool isNameable, string BaseTypeName ) : System
ID int Key for this division configuration information
TypeName string Name of this type, which the user selects. This is also the default name, if /// a translation for this name is not provided in a requested language
isActive bool Flag indicates if this division is currently active
isNameable bool Flag indicates if the user will be asked for a name when this division is chosen
BaseTypeName string If this is set, then the typename is actually used as the division label /// and this is used as the type within the METS structure map
리턴 System

ShouldSerializeBaseTypeName() 공개 메소드

Method suppresses XML Serialization of the BaseTypeName property if it is empty
public ShouldSerializeBaseTypeName ( ) : bool
리턴 bool

ShouldSerializeTypeTranslations() 공개 메소드

Method suppresses XML Serialization of the TypeTranslations collection if it is empty
public ShouldSerializeTypeTranslations ( ) : bool
리턴 bool