C# 클래스 NStub.CSharp.ObjectGeneration.BuildDataDictionary

Lookup of IBuilderData organized as a dictionary of strings, categorized into main categories.
상속: IBuildDataDictionary
파일 보기 프로젝트 열기: Jedzia/NStub 1 사용 예제들

공개 메소드들

메소드 설명
AddDataItem ( string key, IBuilderData item ) : void

Adds the specified data item to the "General" topic of this list.

AddDataItem ( string key, IBuilderData item, bool replace ) : void

Adds the specified data item to the "General" topic of this list.

AddDataItem ( string category, string key, IBuilderData item ) : void

Adds the specified data item to the specified category of this list.

AddDataItem ( string category, string key, IBuilderData item, bool replace ) : void

Adds the specified data item to the specified category of this list.

If the item is already present, then the add operation throws an exception.

AddDataItem ( string category, string key, IBuilderData item, bool replace, bool skip ) : void

Adds the specified data item to the specified category of this list.

If replace is true, skip is true and the item is already present, then the add operation is skipped. if skip is false an exception is thrown.

AddGeneralString ( string key, string value ) : void

Adds a NStub.CSharp.ObjectGeneration.Builders.StringConstantBuildParameter.Value to the general category data set associated with the specified key.

Already present items are skipped (not replaced) and no exception is thrown.

AddGeneralString ( string category, string key, string value ) : void

Adds a NStub.CSharp.ObjectGeneration.Builders.StringConstantBuildParameter.Value to the specified category data set associated with the specified key.

Already present items are skipped (not replaced) and no exception is thrown.

BuildDataDictionary ( ) : System

Initializes a new instance of the BuildDataDictionary class.

Data ( ) : IBuildDataReadOnlyDictionary

Gets the data of this instance.

GeneralString ( string key ) : string

Gets the NStub.CSharp.ObjectGeneration.Builders.StringConstantBuildParameter.Value out of the general data set associated with the specified key.

GeneralString ( string category, string key ) : string

Gets the NStub.CSharp.ObjectGeneration.Builders.StringConstantBuildParameter.Value out of the general data set associated with the specified key.

GetEnumerator ( ) : IEnumerator

Returns an enumerator that iterates through the collection.

Save ( ) : void

Resets the dirty flag ( Save this instance not implemented ).

TryGetCategory ( string category, IBuilderData>.IDictionary &value ) : bool

Gets the value out of the specified category, associated with the specified key.

TryGetValue ( string key, IBuilderData &value ) : bool

Gets the value out of the general data set associated with the specified key.

TryGetValue ( string category, string key, IBuilderData &value ) : bool

Gets the value associated with the specified category and key.

this ( string category ) : IBuilderData>.IDictionary

Gets the IBuilderData lookup of the specified category.

비공개 메소드들

메소드 설명
IEnumerable ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

메소드 상세

AddDataItem() 공개 메소드

Adds the specified data item to the "General" topic of this list.
public AddDataItem ( string key, IBuilderData item ) : void
key string The key of the item.
item IBuilderData The data item to add.
리턴 void

AddDataItem() 공개 메소드

Adds the specified data item to the "General" topic of this list.
public AddDataItem ( string key, IBuilderData item, bool replace ) : void
key string The key of the item.
item IBuilderData The data item to add.
replace bool if set to true replaces the data if present.
리턴 void

AddDataItem() 공개 메소드

Adds the specified data item to the specified category of this list.
public AddDataItem ( string category, string key, IBuilderData item ) : void
category string The category of the item.
key string The key of the item.
item IBuilderData The data item to add.
리턴 void

AddDataItem() 공개 메소드

Adds the specified data item to the specified category of this list.
If the item is already present, then the add operation throws an exception.
public AddDataItem ( string category, string key, IBuilderData item, bool replace ) : void
category string The category of the item.
key string The key of the item.
item IBuilderData The data item to add.
replace bool if set to true replaces the data if present.
리턴 void

AddDataItem() 공개 메소드

Adds the specified data item to the specified category of this list.
If replace is true, skip is true and the item is already present, then the add operation is skipped. if skip is false an exception is thrown.
public AddDataItem ( string category, string key, IBuilderData item, bool replace, bool skip ) : void
category string The category of the item.
key string The key of the item.
item IBuilderData The data item to add.
replace bool if set to true replaces the data if present.
skip bool if set to true skip already present items.
리턴 void

AddGeneralString() 공개 메소드

Adds a NStub.CSharp.ObjectGeneration.Builders.StringConstantBuildParameter.Value to the general category data set associated with the specified key.
Already present items are skipped (not replaced) and no exception is thrown.
public AddGeneralString ( string key, string value ) : void
key string The key of the item.
value string The string value of the item.
리턴 void

AddGeneralString() 공개 메소드

Adds a NStub.CSharp.ObjectGeneration.Builders.StringConstantBuildParameter.Value to the specified category data set associated with the specified key.
Already present items are skipped (not replaced) and no exception is thrown.
public AddGeneralString ( string category, string key, string value ) : void
category string The category of the item.
key string The key of the item.
value string The string value of the item.
리턴 void

BuildDataDictionary() 공개 메소드

Initializes a new instance of the BuildDataDictionary class.
public BuildDataDictionary ( ) : System
리턴 System

Data() 공개 메소드

Gets the data of this instance.
public Data ( ) : IBuildDataReadOnlyDictionary
리턴 IBuildDataReadOnlyDictionary

GeneralString() 공개 메소드

Gets the NStub.CSharp.ObjectGeneration.Builders.StringConstantBuildParameter.Value out of the general data set associated with the specified key.
public GeneralString ( string key ) : string
key string The key of the value to get.
리턴 string

GeneralString() 공개 메소드

Gets the NStub.CSharp.ObjectGeneration.Builders.StringConstantBuildParameter.Value out of the general data set associated with the specified key.
public GeneralString ( string category, string key ) : string
category string The category of the value to get.
key string The key of the value to get.
리턴 string

GetEnumerator() 공개 메소드

Returns an enumerator that iterates through the collection.
public GetEnumerator ( ) : IEnumerator
리턴 IEnumerator

Save() 공개 메소드

Resets the dirty flag ( Save this instance not implemented ).
public Save ( ) : void
리턴 void

TryGetCategory() 공개 메소드

Gets the value out of the specified category, associated with the specified key.
key is null.
public TryGetCategory ( string category, IBuilderData>.IDictionary &value ) : bool
category string The category of the value to get.
value IBuilderData>.IDictionary When this method returns, contains the value associated with the specified /// key, if the key is found; otherwise, the default value for the type of the /// value parameter. This parameter is passed uninitialized.
리턴 bool

TryGetValue() 공개 메소드

Gets the value out of the general data set associated with the specified key.
key is null.
public TryGetValue ( string key, IBuilderData &value ) : bool
key string The key of the value to get.
value IBuilderData When this method returns, contains the value associated with the specified /// key, if the key is found; otherwise, the default value for the type of the /// value parameter. This parameter is passed uninitialized.
리턴 bool

TryGetValue() 공개 메소드

Gets the value associated with the specified category and key.
key is null.
public TryGetValue ( string category, string key, IBuilderData &value ) : bool
category string The requested category.
key string The key of the value to get.
value IBuilderData When this method returns, contains the value associated with the specified /// key, if the key is found; otherwise, the default value for the type of the /// value parameter. This parameter is passed uninitialized.
리턴 bool

this() 공개 메소드

Gets the IBuilderData lookup of the specified category.
public this ( string category ) : IBuilderData>.IDictionary
category string The category of the requested data items.
리턴 IBuilderData>.IDictionary