Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Collection of the tags.
Different collections could be merged to each other. In case if the Tag instance collides by the key to a tag in merge target collection then collided tag will be updated with the source one via the Tag.MergeTo(Tag) handler.
Public Member Functions | |
TagsDatabase () | |
Empty constructor. | |
TagsDatabase (params Tag[] tags) | |
Creates the collection with defined tags. More... | |
void | MergeTo (TagsDatabase to) |
Cloning the data from the collection to another collection. Colliding tags will be merged via the Tag.MergeTo(Tag) handler. More... | |
void | Clear () |
Clearing tags collection. | |
bool | Contains (string key) |
Looking for tag by the key. More... | |
bool | Contains (Tag item) |
Looking for tag by the key. More... | |
void | CopyTo (Tag[] array, int arrayIndex) |
Copies tags at the data base to array. More... | |
void | CopyTo (string[] array, int arrayIndex) |
Copies tag keys at the data base to array. More... | |
void | Add (string tagKey) |
Generates default tag with defined key. More... | |
void | Add (Tag tag) |
Generates default tag with defined key. More... | |
bool | Remove (string tagKey) |
Removing the tag by the key. More... | |
bool | Remove (Tag tag) |
Looking for the tag with the same name. More... | |
IEnumerator< Tag > | GetEnumerator () |
Returns enumerator of the Tag elements at the collection. More... | |
object | Clone () |
Clones database to new instance. More... | |
int | IndexOf (string tagKey) |
Looking for index of tag with the same Tag.Key value. More... | |
int | IndexOf (Tag tag) |
Looking for index of tag with the same Tag.Key value. More... | |
void | Insert (int index, string tagKey) |
Inserting the tag at the position. More... | |
void | Insert (int index, Tag tag) |
Inserting the tag at the position. More... | |
void | RemoveAt (int index) |
Removing Tag bu index. More... | |
void | MergeTo (IMergeableResource to) |
Redirecting to the MergeTo(TagsDatabase) with safe cast of resource to the TagsDatabase. More... | |
void | MergeTo (T to) |
Sharing itself values to some another merging resource. More... | |
Properties | |
bool | Modified [get] |
True if collection order was changed. More... | |
int | Count [get] |
Count of tags in the collection. | |
bool | IsReadOnly [get] |
Always false | |
Tag | this[int index] [get, set] |
Provides access to Tag instance by the index. More... | |
Events | |
static System.Action< TagsDatabase, string > | TagRemoved |
Occurs when a tag removed from any of databases, Shared values: TagsDatabase: source database. string: is Tag.Key of removed tag. | |
Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.TagsDatabase | ( | params Tag[] | tags | ) |
Creates the collection with defined tags.
tags | Collection of the tags. |
TagAlreadyExistsException | A tag with the same Tag.Key already exists in the collection. |
void Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.Add | ( | string | tagKey | ) |
Generates default tag with defined key.
tagKey | A name for the tag. Must be unique for collection. |
TagAlreadyExistsException | A tag with the same Tag.Key already exists in the collection. |
void Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.Add | ( | Tag | tag | ) |
Generates default tag with defined key.
tag | New tag. |
TagAlreadyExistsException | A tag with the same Tag.Key already exists in the collection. |
object Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.Clone | ( | ) |
Clones database to new instance.
bool Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.Contains | ( | string | key | ) |
bool Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.Contains | ( | Tag | item | ) |
void Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.CopyTo | ( | string[] | array, |
int | arrayIndex | ||
) |
Copies tag keys at the data base to array.
array | Destination array. |
arrayIndex | Start index at the destination array. |
void Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.CopyTo | ( | Tag[] | array, |
int | arrayIndex | ||
) |
Copies tags at the data base to array.
array | Destination array. |
arrayIndex | Start index at the destination array. |
IEnumerator< Tag > Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.GetEnumerator | ( | ) |
Returns enumerator of the Tag elements at the collection.
int Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.IndexOf | ( | string | tagKey | ) |
int Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.IndexOf | ( | Tag | tag | ) |
void Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.Insert | ( | int | index, |
string | tagKey | ||
) |
Inserting the tag at the position.
index | Target position. |
tagKey | Tag key. The tag will created via the Tag.Tag(string) constructor. |
TagAlreadyExistsException | Tag already exists into the database. |
void Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.Insert | ( | int | index, |
Tag | tag | ||
) |
Inserting the tag at the position.
index | Target position. |
tag | The tag to insert. |
TagAlreadyExistsException | Tag already exists into the database. |
void Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.MergeTo | ( | IMergeableResource | to | ) |
Redirecting to the MergeTo(TagsDatabase) with safe cast of resource to the TagsDatabase.
to | Target resource. |
|
inherited |
Sharing itself values to some another merging resource.
to | Target resource that will contains the value merged with stored in this resource. |
void Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.MergeTo | ( | TagsDatabase | to | ) |
Cloning the data from the collection to another collection. Colliding tags will be merged via the Tag.MergeTo(Tag) handler.
to | Target collection. |
bool Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.Remove | ( | string | tagKey | ) |
Removing the tag by the key.
tagKey | Key of the tag for remove. |
bool Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.Remove | ( | Tag | tag | ) |
Looking for the tag with the same name.
tag | The tag for remove. Important only the Tag.Key value. |
void Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabase.RemoveAt | ( | int | index | ) |
Removing Tag bu index.
index | Index to remove. |
|
get |
True if collection order was changed.
In some cases collection can't be considered like a stable when its content modified.
|
getset |
Provides access to Tag instance by the index.
index | Index of tag at database. |