TagCollection

TagCollection class

Represents the collection of tags (user defined pairs of strings)

add

NameDescription
add(String, String)Adds a new tag to collection.

Parameters:

NameTypeDescription
nameStringThe name of the tag.
valueStringThe value of the tag.

Returns: int


clear

NameDescription
clear()Removes all tags from the collection.

contains

NameDescription
contains(String)Determines whether the collection contains a specific name.

Parameters:

NameTypeDescription
nameStringThe key to locate.

Returns: boolean


getNameByIndex

NameDescription
getNameByIndex(int)Returns key of a tag at the specified index.

Parameters:

NameTypeDescription
indexintIndex of a tag to return.

Returns: String


getNamesOfTags

NameDescription
getNamesOfTags()Returns names of tags.

Returns: String


getSyncRoot

NameDescription
getSyncRoot()Returns a synchronization root. Read-only Object.

Returns: Object


getValueByIndex

NameDescription
getValueByIndex(int)Returns value of a tag at the specified index.

Parameters:

NameTypeDescription
indexintIndex of a tag to return.

Returns: String


get_Item

NameDescription
get_Item(String)Returns or sets a key and a value pair of a tag.

Parameters:

NameTypeDescription
nameStringKey of a tag.

Returns: String


indexOfName

NameDescription
indexOfName(String)Returns the zero-based index of the specified key in the collection.

Parameters:

NameTypeDescription
nameStringThe name to locate in the collection.

Returns: int


isSynchronized

NameDescription
isSynchronized()Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

Returns: boolean


iterator

NameDescription
iterator()Returns an enumerator that iterates through the collection.

Returns:


iteratorJava

NameDescription
iteratorJava()Returns a java iterator for the entire collection.

Returns:


remove

NameDescription
remove(String)Removes the tag with a specified name from the collection.

Parameters:

NameTypeDescription
nameStringThe name of tag to remove.

removeAt

NameDescription
removeAt(int)Removes the tag at the specified index.

Parameters:

NameTypeDescription
indexintThe zero-based index of the tag to remove.

set_Item

NameDescription
set_Item(String, String)Returns or sets a key and a value pair of a tag.

Parameters:

NameTypeDescription
nameStringKey of a tag.

size

NameDescription
size()Returns a number of tags in the collectoin. Read-only int.

Returns: int