C# Class CustomConfigurations.ObjectCreation.ObjectCreationSettingsCollection

ファイルを表示 Open project: twistedtwig/CustomConfigurations Class Usage Examples

Public Methods

Method Description
AddMapping ( string originalName, string mapToName ) : void
AddMapping ( string originalName, string mapToName, string defaultValue ) : void
AddMapping ( string originalName, string mapToName, string defaultValue, ObjectCreationSettingType creationType ) : void
ContainsMapToName ( string name ) : bool
ContainsOriginalMappingName ( string name ) : bool
GetValidConstructorSettings ( ) : IList
GetValidConstructorSettings ( bool allowNullorEmptyValues ) : IList
GetValidPropertySettings ( ) : IList
GetValidPropertySettings ( bool allowNullorEmptyValues ) : IList
ObjectCreationSettingsCollection ( IList mappings ) : System
SetValue ( string originalName, string value ) : void

Will override the original value and default value for any item already in the collection with that original name

Private Methods

Method Description
GetSettingItem ( string originalName ) : ObjectCreationSettingItem
ObjectCreationSettingsCollection ( ) : System

No mappings given to the constructor, will only set public properties

ObjectCreationSettingsCollection ( ConfigValueDictionary fieldMappings ) : System

Maps the dictionry key to the dictionary value for a field, only set public properties.

ObjectCreationSettingsCollection ( ConfigValueDictionary fieldMappings, ConfigValueDictionary fieldValues, bool onlySetPublicProperties ) : System
ObjectCreationSettingsCollection ( ConfigValueDictionary fieldMappings, bool onlySetPublicProperties ) : System
SetupMappings ( ConfigValueDictionary fieldMappings ) : void
SetupValues ( ConfigValueDictionary fieldValues ) : void

Method Details

AddMapping() public method

public AddMapping ( string originalName, string mapToName ) : void
originalName string
mapToName string
return void

AddMapping() public method

public AddMapping ( string originalName, string mapToName, string defaultValue ) : void
originalName string
mapToName string
defaultValue string
return void

AddMapping() public method

public AddMapping ( string originalName, string mapToName, string defaultValue, ObjectCreationSettingType creationType ) : void
originalName string
mapToName string
defaultValue string
creationType ObjectCreationSettingType
return void

ContainsMapToName() public method

public ContainsMapToName ( string name ) : bool
name string
return bool

ContainsOriginalMappingName() public method

public ContainsOriginalMappingName ( string name ) : bool
name string
return bool

GetValidConstructorSettings() public method

public GetValidConstructorSettings ( ) : IList
return IList

GetValidConstructorSettings() public method

public GetValidConstructorSettings ( bool allowNullorEmptyValues ) : IList
allowNullorEmptyValues bool
return IList

GetValidPropertySettings() public method

public GetValidPropertySettings ( ) : IList
return IList

GetValidPropertySettings() public method

public GetValidPropertySettings ( bool allowNullorEmptyValues ) : IList
allowNullorEmptyValues bool
return IList

ObjectCreationSettingsCollection() public method

public ObjectCreationSettingsCollection ( IList mappings ) : System
mappings IList
return System

SetValue() public method

Will override the original value and default value for any item already in the collection with that original name
public SetValue ( string originalName, string value ) : void
originalName string
value string
return void